/* Dr Coaching isolated Jalali Wheel Date Picker */
.drc-date-field{
  position:relative;
  width:100%;
  display:block;
  font-family:"Vazirmatn",Vazirmatn,Tahoma,Arial,sans-serif;
}
.drc-date-field>.plugin-date-picker{
  padding-left:50px!important;
  cursor:pointer;
  text-align:right;
  direction:rtl;
  font-family:"Vazirmatn",Vazirmatn,Tahoma,Arial,sans-serif!important;
}
.drc-date-trigger{
  position:absolute;
  left:7px;
  top:50%;
  transform:translateY(-50%);
  width:37px;
  height:37px;
  border:0;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:#f2efff;
  color:#6840dd;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
  z-index:2;
}
.drc-date-trigger:hover,.drc-date-trigger:focus-visible{
  background:#e9e2ff;
  box-shadow:0 7px 18px rgba(99,54,232,.18);
  outline:none;
}
.drc-date-trigger:active{transform:translateY(-50%) scale(.94)}
.drc-date-trigger svg,.drc-wheel-calendar-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.drc-wheel-date-overlay,
.drc-wheel-date-overlay *,
.drc-wheel-date-overlay button{
  box-sizing:border-box;
  font-family:"Vazirmatn",Vazirmatn,Tahoma,Arial,sans-serif!important;
}
.drc-wheel-date-overlay{
  position:fixed;
  inset:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(16,22,49,.58);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease,visibility .2s ease;
  direction:rtl;
}
.drc-wheel-date-overlay.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.drc-wheel-date-popup{
  width:min(520px,100%);
  max-height:min(720px,calc(100vh - 32px));
  overflow:auto;
  background:#fff;
  color:#1a2037;
  border:1px solid rgba(231,233,242,.95);
  border-radius:26px;
  padding:23px;
  box-shadow:0 34px 100px rgba(12,18,45,.30);
  transform:translateY(14px) scale(.98);
  transition:transform .22s cubic-bezier(.2,.8,.2,1);
  overscroll-behavior:contain;
}
.drc-wheel-date-overlay.is-open .drc-wheel-date-popup{transform:translateY(0) scale(1)}
.drc-wheel-date-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding-bottom:17px;
}
.drc-wheel-date-kicker{
  display:block;
  color:#6c42df;
  font-size:11px;
  font-weight:800;
  line-height:1.8;
}
.drc-wheel-date-header h3{
  margin:5px 0 0;
  font-size:20px;
  line-height:1.6;
  letter-spacing:-.35px;
  font-weight:850;
}
.drc-wheel-date-x{
  flex:0 0 auto;
  width:38px;
  height:38px;
  border:0;
  border-radius:12px;
  background:#f3f4f8;
  color:#70778b;
  cursor:pointer;
  font-size:24px;
  line-height:1;
  display:grid;
  place-items:center;
  transition:.18s ease;
}
.drc-wheel-date-x:hover,.drc-wheel-date-x:focus-visible{background:#ebe7fa;color:#5430c8;outline:none}
.drc-wheel-date-today{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid #e9e3ff;
  border-radius:15px;
  background:linear-gradient(135deg,#faf8ff,#f5f7ff);
  margin-bottom:17px;
}
.drc-wheel-calendar-icon{
  flex:0 0 auto;
  width:39px;
  height:39px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#6d3df1;
  color:#fff;
  box-shadow:0 9px 22px rgba(109,61,241,.22);
}
.drc-wheel-date-today small,.drc-wheel-date-today strong,
.drc-wheel-date-preview small,.drc-wheel-date-preview strong{display:block}
.drc-wheel-date-today small{font-size:10px;color:#7d8498}
.drc-wheel-date-today strong{font-size:13px;margin-top:4px;color:#332368}

.drc-wheel-date-grid{
  --drc-wheel-row:46px;
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);
  grid-template-areas:"year month day";
  grid-template-rows:1fr;
  grid-auto-flow:column;
  align-items:stretch;
  gap:9px;
  direction:ltr;
  border:1px solid #eceef4;
  border-radius:19px;
  padding:12px;
  background:#fbfbfd;
  overflow:hidden;
}
.drc-wheel-column{min-width:0;direction:rtl;position:relative;z-index:2;width:100%;display:block}
/* One physical row is mandatory: right = day, middle = month, left = year. */
.drc-wheel-day{grid-area:day}
.drc-wheel-month{grid-area:month}
.drc-wheel-year{grid-area:year}
.drc-wheel-label{
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#747c91;
  font-size:10px;
  font-weight:800;
}
.drc-wheel-list{
  position:relative;
  height:230px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scroll-snap-type:y mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding-block:92px;
  outline:none;
  mask-image:linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
}
.drc-wheel-list::-webkit-scrollbar{display:none}
.drc-wheel-option{
  width:100%;
  height:var(--drc-wheel-row);
  min-height:var(--drc-wheel-row);
  border:0;
  border-radius:10px;
  padding:0 5px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:#959bad;
  font-size:13px;
  font-weight:650;
  cursor:pointer;
  scroll-snap-align:center;
  transition:color .16s ease,font-size .16s ease,font-weight .16s ease,transform .16s ease;
  white-space:nowrap;
}
.drc-wheel-option.is-selected{
  color:#2b2053;
  font-size:16px;
  font-weight:900;
  transform:scale(1.03);
}
.drc-wheel-list:focus-visible{border-radius:12px;box-shadow:inset 0 0 0 2px rgba(109,61,241,.18)}
.drc-wheel-center-line{
  position:absolute;
  z-index:1;
  right:12px;
  left:12px;
  top:calc(12px + 30px + 92px);
  height:46px;
  border-top:1px solid #ddd5ff;
  border-bottom:1px solid #ddd5ff;
  background:linear-gradient(90deg,rgba(109,61,241,.035),rgba(109,61,241,.085),rgba(109,61,241,.035));
  border-radius:12px;
  pointer-events:none;
}
.drc-wheel-date-preview{
  margin-top:14px;
  padding:13px 15px;
  background:#f7f5ff;
  border-radius:14px;
  text-align:center;
}
.drc-wheel-date-preview small{font-size:9px;color:#858b9d}
.drc-wheel-date-preview strong{font-size:15px;color:#5d35d6;margin-top:5px;font-weight:900}
.drc-wheel-date-actions{
  display:grid;
  grid-template-columns:1fr 1.7fr;
  gap:10px;
  margin-top:17px;
}
.drc-wheel-date-actions button{
  min-height:46px;
  border:0;
  border-radius:13px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.drc-wheel-date-actions button:active{transform:scale(.98)}
.drc-wheel-date-cancel{background:#f1f2f6;color:#60687c}
.drc-wheel-date-cancel:hover,.drc-wheel-date-cancel:focus-visible{background:#e8eaf0;outline:none}
.drc-wheel-date-confirm{
  background:linear-gradient(135deg,#6d3df1,#8555f4);
  color:#fff;
  box-shadow:0 12px 28px rgba(109,61,241,.25);
}
.drc-wheel-date-confirm:hover,.drc-wheel-date-confirm:focus-visible{box-shadow:0 15px 32px rgba(109,61,241,.32);outline:none}

@media (max-width:600px){
  .drc-wheel-date-overlay{align-items:flex-end;padding:0}
  .drc-wheel-date-popup{
    width:100%;
    max-height:92vh;
    border-radius:25px 25px 0 0;
    padding:19px 15px max(16px,env(safe-area-inset-bottom));
    transform:translateY(28px);
  }
  .drc-wheel-date-header h3{font-size:18px}
  .drc-wheel-date-grid{--drc-wheel-row:44px;gap:5px;padding:9px}
  .drc-wheel-list{height:220px;padding-block:88px}
  .drc-wheel-center-line{right:9px;left:9px;top:calc(9px + 30px + 88px);height:44px}
  .drc-wheel-option{font-size:12px;padding-inline:2px}
  .drc-wheel-option.is-selected{font-size:14px}
  .drc-wheel-date-actions{grid-template-columns:1fr 1.5fr}
}

@media (max-width:370px){
  .drc-wheel-date-popup{padding-inline:11px}
  .drc-wheel-date-grid{gap:2px;padding-inline:5px}
  .drc-wheel-center-line{right:5px;left:5px}
  .drc-wheel-option{font-size:11px}
  .drc-wheel-option.is-selected{font-size:13px}
}

@media (prefers-reduced-motion:reduce){
  .drc-wheel-date-overlay,.drc-wheel-date-popup,.drc-date-trigger,.drc-wheel-option,.drc-wheel-date-actions button{transition:none!important;scroll-behavior:auto!important}
}

/* 1.9.0: never stack wheel columns, including narrow mobile screens. */
.drc-wheel-date-grid>.drc-wheel-column{float:none!important;clear:none!important;margin:0!important;max-width:none!important}
@media (max-width:600px){.drc-wheel-date-grid{display:grid!important;grid-template-columns:minmax(0,.88fr) minmax(0,1.24fr) minmax(0,.88fr)!important;grid-template-areas:"year month day"!important;grid-template-rows:1fr!important;grid-auto-flow:column!important}.drc-wheel-date-grid>.drc-wheel-column{display:block!important;width:100%!important;min-width:0!important}}


/* Financial month mode: same Wheel Picker, without an unnecessary day column. */
.drc-wheel-date-overlay.is-month-only .drc-wheel-date-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-areas:"year month"}
.drc-wheel-date-overlay.is-month-only .drc-wheel-day{display:none}
.drc-wheel-date-overlay.is-month-only .drc-wheel-center-line{right:12px;left:12px}
