/* 회원권 큰 달력 (pass-date-picker.js). 이 파일만으로 독립 동작.
   관리자 CSS(body.manager-page .crm-dialog button 등)에 눌리지 않도록 html body 접두 + 높은 specificity 사용. */
html body .pdp-popover{
  --pdp-bg:#fff;--pdp-fg:#17181c;--pdp-muted:#5d6272;--pdp-line:#cfd3dc;
  --pdp-accent:var(--lime,#ddf878);--pdp-accent-fg:#17181c;--pdp-hover:#f1f2f6;--pdp-focus:#17181c;
  box-sizing:border-box;grid-column:1/-1;width:100%;min-width:min(100%,308px);max-width:420px;
  margin:6px 0 10px;padding:4px;overflow-x:auto;
  background:var(--pdp-bg);color:var(--pdp-fg);border:1px solid var(--pdp-line);border-radius:14px;
  font-size:16px;line-height:1.2;
}
html[data-ws-theme="dark"] body.manager-page .pdp-popover,html[data-theme="dark"] body:not(.manager-page) .pdp-popover{
  --pdp-bg:#1b1d24;--pdp-fg:#f2f3f7;--pdp-muted:#a2a7b6;--pdp-line:#383c48;
  --pdp-accent:var(--lime,#ddf878);--pdp-accent-fg:#17181c;--pdp-hover:#2a2d38;--pdp-focus:var(--lime,#ddf878);
}
html[data-ws-theme="light"] body.manager-page .pdp-popover,html[data-theme="light"] body:not(.manager-page) .pdp-popover{
  --pdp-bg:#fff;--pdp-fg:#17181c;--pdp-muted:#5d6272;--pdp-line:#cfd3dc;
  --pdp-accent:var(--lime,#ddf878);--pdp-accent-fg:#17181c;--pdp-hover:#f1f2f6;--pdp-focus:#17181c;
}
html body .pdp-popover[hidden]{display:none}
html body .pdp-popover *{box-sizing:border-box}
html body button.pdp-trigger{
  width:auto;min-height:44px;min-width:44px;margin:6px 0 0;padding:0 14px;font:inherit;font-size:16px;font-weight:700;line-height:1.2;
  background:transparent;color:inherit;border:1px solid currentColor;border-radius:10px;cursor:pointer;
}
html body button.pdp-trigger:disabled{opacity:.4;cursor:not-allowed}
html body button.pdp-trigger:focus-visible,html body .pdp-popover button:focus-visible{outline:3px solid var(--pdp-focus,#17181c);outline-offset:1px}
html body .pdp-popover .pdp-head{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;min-height:44px;gap:4px}
html body .pdp-popover .pdp-title{text-align:center;font-weight:800;font-size:17px}
html body .pdp-popover button.pdp-nav{
  width:44px;height:44px;min-height:44px;margin:0;padding:0;font:inherit;font-size:24px;line-height:1;
  background:transparent;color:inherit;border:0;border-radius:10px;cursor:pointer;
}
html body .pdp-popover button.pdp-nav:hover,html body .pdp-popover button.pdp-day:not(:disabled):hover,html body .pdp-popover button.pdp-action:not(:disabled):hover{background:var(--pdp-hover)}
html body .pdp-popover .pdp-week,html body .pdp-popover .pdp-grid{display:grid;grid-template-columns:repeat(7,minmax(44px,1fr))}
html body .pdp-popover .pdp-wd{display:flex;align-items:center;justify-content:center;min-height:32px;color:var(--pdp-muted);font-size:16px;font-weight:700}
html body .pdp-popover .pdp-wd:first-child{color:#d0382a}
html body .pdp-popover .pdp-empty{min-height:44px}
html body .pdp-popover button.pdp-day{
  width:100%;min-width:44px;min-height:44px;height:44px;margin:0;padding:0;font:inherit;font-size:16px;font-weight:600;line-height:1.2;
  background:transparent;color:inherit;border:2px solid transparent;border-radius:10px;cursor:pointer;
}
html body .pdp-popover button.pdp-day.is-today{border-color:var(--pdp-fg)}
html body .pdp-popover button.pdp-day.is-selected{background:var(--pdp-accent);color:var(--pdp-accent-fg);border-color:var(--pdp-accent);font-weight:800;box-shadow:inset 0 0 0 1px var(--pdp-accent-fg)}
html body .pdp-popover button.pdp-day:disabled{opacity:.35;cursor:not-allowed;text-decoration:line-through}
html body .pdp-popover .pdp-foot{display:flex;justify-content:space-between;gap:8px;margin-top:4px}
html body .pdp-popover button.pdp-action{
  flex:1;width:auto;min-height:44px;margin:0;padding:0 12px;font:inherit;font-size:16px;font-weight:700;line-height:1.2;
  background:transparent;color:inherit;border:1px solid var(--pdp-line);border-radius:10px;cursor:pointer;
}
html body .pdp-popover button.pdp-action:disabled{opacity:.4;cursor:not-allowed}
@media (max-width:400px){html body .pdp-popover{max-width:100%}}
@media (prefers-reduced-motion:no-preference){html body .pdp-popover button{transition:background .12s}}