/* Freelancito v1337 — polished single-field Jalali calendar */
.fc-pdate,
.fc-pdate *,
.fc-pdate-popover,
.fc-pdate-popover *{box-sizing:border-box}
.fc-pdate{position:relative;display:block;width:100%;max-width:100%;direction:rtl}
.fc-pdate__field{position:relative;width:100%}
.fc-pdate__input{display:block;width:100%;min-width:0;min-height:48px;border:1px solid #d7e0e8;border-radius:12px;background:#fff;color:#102a43;padding-top:10px!important;padding-bottom:10px!important;padding-right:54px!important;padding-left:14px!important;font:inherit;line-height:1.5;outline:0;direction:ltr;text-align:right;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.fc-pdate__input::placeholder{direction:rtl;text-align:right;color:#8a99a8}
.fc-pdate__input:hover{border-color:#b8c5d1}
.fc-pdate__input:focus{border-color:#10a66f;box-shadow:0 0 0 3px rgba(16,166,111,.12)}
.fc-pdate__trigger{position:absolute;right:8px;left:auto;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#0f9f6e;cursor:pointer;padding:0;transition:background .15s ease,color .15s ease}
.fc-pdate__trigger:hover,.fc-pdate__trigger:focus-visible{background:#eafaf3;color:#087b54;outline:0}
.fc-pdate__trigger svg{display:block;width:20px;height:20px}
.fc-pdate.is-invalid .fc-pdate__input{border-color:#dc2626;background:#fff8f8;box-shadow:0 0 0 3px rgba(220,38,38,.08)}
.fc-pdate.is-disabled,.fc-pdate.pc-deadline-locked{opacity:.58}
.fc-pdate.is-disabled .fc-pdate__trigger,.fc-pdate.pc-deadline-locked .fc-pdate__trigger{cursor:not-allowed}
.fc-pdate-error{color:#b91c1c;font-size:12px;font-weight:700;line-height:1.7;margin-top:5px;text-align:right}

.fc-pdate-popover{position:fixed;z-index:2147483000;width:328px;max-width:calc(100vw - 20px);direction:rtl;text-align:right;border:1px solid #dce4eb;border-radius:18px;background:#fff;color:#102a43;box-shadow:0 20px 50px rgba(15,23,42,.20),0 4px 14px rgba(15,23,42,.08);padding:14px;font-family:inherit;line-height:1.5;isolation:isolate;animation:fcPdateIn .14s ease-out}
.fc-pdate-popover[hidden]{display:none!important}
@keyframes fcPdateIn{from{opacity:0;transform:translateY(-4px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.fc-pdate-popover.opens-up{transform-origin:bottom center}
.fc-pdate-popover__header{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:8px;margin-bottom:11px}
.fc-pdate-popover__nav{display:grid;place-items:center;width:36px;height:36px;border:1px solid #e1e8ee;border-radius:11px;background:#fff;color:#2b465d;cursor:pointer;padding:0;transition:background .14s ease,border-color .14s ease,color .14s ease}
.fc-pdate-popover__nav:hover,.fc-pdate-popover__nav:focus-visible{background:#edf9f4;border-color:#bde8d5;color:#078259;outline:0}
.fc-pdate-popover__nav:disabled{opacity:.35;cursor:not-allowed}
.fc-pdate-popover__nav svg{width:18px;height:18px}
.fc-pdate-popover__selectors{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(84px,.9fr);gap:7px}
.fc-pdate-popover__select{display:block;width:100%;min-width:0;height:36px;border:1px solid #e1e8ee;border-radius:10px;background:#f8fafc;color:#17364d;padding:5px 9px;font:inherit;font-size:13px;font-weight:850;outline:0;cursor:pointer;text-align:center}
.fc-pdate-popover__select:focus{border-color:#10a66f;box-shadow:0 0 0 3px rgba(16,166,111,.10)}
.fc-pdate-popover__weekdays,.fc-pdate-popover__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.fc-pdate-popover__weekdays{padding:1px 0 7px;border-bottom:1px solid #edf1f4;margin-bottom:7px}
.fc-pdate-popover__weekdays span{display:grid;place-items:center;height:24px;color:#75879a;font-size:11.5px;font-weight:900}
.fc-pdate-popover__weekdays span.is-friday{color:#dc5f5f}
.fc-pdate-popover__grid{grid-auto-rows:37px}
.fc-pdate-popover__blank{display:block}
.fc-pdate-popover__day{position:relative;display:grid;place-items:center;width:100%;height:37px;border:0;border-radius:10px;background:transparent;color:#1f3a50;padding:0;font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:background .13s ease,color .13s ease,box-shadow .13s ease}
.fc-pdate-popover__day:hover,.fc-pdate-popover__day:focus-visible{background:#eafaf3;color:#087b54;outline:0}
.fc-pdate-popover__day.is-friday:not(.is-selected){color:#c84d4d}
.fc-pdate-popover__day.is-today:not(.is-selected){box-shadow:inset 0 0 0 1.5px #14a66f;color:#087b54}
.fc-pdate-popover__day.is-selected{background:linear-gradient(135deg,#14ad74,#079263);color:#fff;box-shadow:0 7px 16px rgba(10,151,99,.25)}
.fc-pdate-popover__day.is-disabled,.fc-pdate-popover__day:disabled{opacity:.27;cursor:not-allowed;background:transparent;box-shadow:none}
.fc-pdate-popover__footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;padding-top:10px;border-top:1px solid #edf1f4}
.fc-pdate-popover__footer-button{min-height:34px;border:0;border-radius:10px;background:transparent;color:#52697c;padding:5px 11px;font:inherit;font-size:12.5px;font-weight:850;cursor:pointer}
.fc-pdate-popover__footer-button:hover,.fc-pdate-popover__footer-button:focus-visible{background:#f1f5f8;outline:0}
.fc-pdate-popover__footer-button--primary{background:#eafaf3;color:#078259}
.fc-pdate-popover__footer-button--primary:hover,.fc-pdate-popover__footer-button--primary:focus-visible{background:#d9f5e9;color:#056c4b}

[data-theme="dark"] .fc-pdate__input{background:#101a28;border-color:#334155;color:#e5edf5}
[data-theme="dark"] .fc-pdate__input::placeholder{color:#8190a3}
[data-theme="dark"] .fc-pdate-popover{background:#101a28;border-color:#334155;color:#e5edf5;box-shadow:0 22px 55px rgba(0,0,0,.45)}
[data-theme="dark"] .fc-pdate-popover__nav,[data-theme="dark"] .fc-pdate-popover__select{background:#152235;border-color:#334155;color:#e5edf5}
[data-theme="dark"] .fc-pdate-popover__weekdays{border-color:#263548}
[data-theme="dark"] .fc-pdate-popover__weekdays span{color:#93a4b8}
[data-theme="dark"] .fc-pdate-popover__day{color:#dce6ef}
[data-theme="dark"] .fc-pdate-popover__footer{border-color:#263548}
[data-theme="dark"] .fc-pdate-popover__footer-button{color:#aebdcb}

@media(max-width:520px){
  .fc-pdate__input{min-height:46px}
  .fc-pdate-popover{width:min(318px,calc(100vw - 16px));padding:12px;border-radius:16px}
  .fc-pdate-popover__header{grid-template-columns:34px minmax(0,1fr) 34px;gap:6px}
  .fc-pdate-popover__nav{width:34px;height:34px}
  .fc-pdate-popover__selectors{gap:5px}
  .fc-pdate-popover__select{font-size:12.5px;padding-inline:6px}
  .fc-pdate-popover__grid{grid-auto-rows:35px}
  .fc-pdate-popover__day{height:35px;font-size:12.5px}
}

/* v1339 — reserve a fixed RTL text gutter for the calendar icon even when
   project-form input rules use their own padding declarations. */
.fc-pdate .fc-pdate__field > input.fc-pdate__input{
  padding-right:54px!important;
  padding-left:14px!important;
}
.fc-pdate .fc-pdate__field > button.fc-pdate__trigger{
  right:8px!important;
  left:auto!important;
}
