/* an_datepicker.css — 사이트 공용 날짜 피커 (js/an_datepicker.js) (2026-08-23)
   PC/관리자 = 팝오버(.andp--pop), 모바일 = 하단 시트(.andp--sheet). 색은 사이트 토큰(라이트=코랄·다크=노랑)만 쓴다.
   🔴 --andp-* 로컬 토큰만 참조 → 다크는 body.dark/html.dark 에서 로컬 토큰만 갈아끼운다(검색옵션·게시판처럼 --mff-* 없는 화면도 안전). */
.andp{
	--andp-bg:var(--color-bg-white, #fff);
	--andp-ink:var(--color-text-primary, #0f0f0f);
	--andp-sub:var(--color-text-secondary, #555);
	--andp-mute:var(--color-text-tertiary, #9a9a9a);
	--andp-line:var(--color-border-light, #e4e4e4);
	--andp-soft:var(--color-bg-light, #f5f5f5);
	--andp-accent:var(--ui-action, #D84841);
	--andp-accent-ink:var(--ui-action-text, #fff);
	--andp-sun:#d64545; --andp-sat:#3b6fd6;
	position:fixed; z-index:100001; background:var(--andp-bg); color:var(--andp-ink); display:flex; flex-direction:column; overflow:hidden;
	font-family:inherit; font-size:14px; line-height:1.4; box-sizing:border-box; -webkit-tap-highlight-color:transparent;
}
.andp *, .andp *::before, .andp *::after{ box-sizing:border-box; }
.andp[hidden], .andp-dim[hidden]{ display:none !important; }
.andp-dim{ position:fixed; inset:0; background:var(--modal-dim, rgba(22,14,13,.5)); z-index:100000; }
/* 시트(모바일) */
.andp--sheet{ left:0; right:0; bottom:0; max-width:var(--m-canvas, 640px); margin:0 auto; border-radius:18px 18px 0 0; box-shadow:0 -8px 26px rgba(0,0,0,.2); touch-action:pan-y; }
/* 팝오버(PC) */
.andp--pop{ position:absolute; width:312px; border:1px solid var(--andp-line); border-radius:14px; box-shadow:0 12px 32px rgba(0,0,0,.16); }
.andp--pop .andp-grab, .andp--pop .andp-hd, .andp--pop .andp-ft{ display:none; }
.andp--pop .andp-days{ min-height:0; padding-bottom:8px; }
.andp--pop .andp-days button{ height:38px; font-size:14px; }
.andp--pop .andp-grid{ max-height:232px; }
.andp--pop .andp-grid button{ height:38px; font-size:13.5px; }

.andp-grab{ width:40px; height:4px; border-radius:2px; background:var(--andp-line); margin:8px auto 4px; flex:none; }
.andp-hd{ display:flex; align-items:center; gap:8px; padding:6px 14px 10px; border-bottom:1px solid var(--andp-line); flex:none; }
.andp-hd b{ font-size:16px; font-weight:800; }
.andp-x{ margin-left:auto; width:34px; height:34px; margin-right:-6px; border:0; background:none; font:inherit; font-size:17px; color:var(--andp-sub); display:inline-flex; align-items:center; justify-content:center; border-radius:8px; cursor:pointer; }
.andp-nav{ display:flex; align-items:center; padding:8px 8px 2px; flex:none; }
.andp-nav button{ border:0; background:none; font:inherit; color:var(--andp-ink); cursor:pointer; border-radius:10px; }
.andp-nav button:hover{ background:var(--andp-soft); }
.andp-pm{ width:44px; height:40px; font-size:22px; color:var(--andp-sub); }
.andp-pm:disabled{ opacity:.25; cursor:default; background:none !important; }
.andp-ym{ flex:1; height:40px; font-size:16px; font-weight:800; letter-spacing:-.01em; }
.andp-ym small{ font-size:11px; font-weight:500; color:var(--andp-mute); margin-left:6px; }
.andp-dow, .andp-days{ display:grid; grid-template-columns:repeat(7,1fr); padding:0 10px; }
.andp-dow span{ text-align:center; font-size:11.5px; color:var(--andp-mute); padding:4px 0; }
.andp-dow span:first-child{ color:var(--andp-sun); } .andp-dow span:last-child{ color:var(--andp-sat); }
.andp-days{ padding-bottom:6px; min-height:270px; align-content:start; }
.andp-days button{ height:44px; border:0; background:none; font:inherit; font-size:15px; color:var(--andp-ink); border-radius:50%; position:relative; font-variant-numeric:tabular-nums; cursor:pointer; }
.andp-days button:hover:not(:disabled):not(.sel){ background:var(--andp-soft); }
.andp-days button.oth{ color:var(--andp-mute); opacity:.5; }
.andp-days button.sun{ color:var(--andp-sun); } .andp-days button.sat{ color:var(--andp-sat); }
.andp-days button:disabled{ color:var(--andp-mute); opacity:.3; cursor:default; }
.andp-days button.today::after{ content:""; position:absolute; left:50%; bottom:5px; width:4px; height:4px; border-radius:50%; background:var(--andp-accent); transform:translateX(-50%); }
.andp-days button.sel{ background:var(--andp-accent); color:var(--andp-accent-ink); font-weight:800; }
.andp-days button.sel::after{ background:var(--andp-accent-ink); }
.andp-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; padding:6px 14px 10px; max-height:316px; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.andp-grid button{ height:44px; border:1px solid var(--andp-line); border-radius:12px; background:var(--andp-bg); color:var(--andp-ink); font:inherit; font-size:14.5px; font-variant-numeric:tabular-nums; cursor:pointer; }
.andp-grid button:hover:not(:disabled){ border-color:var(--andp-accent); }
.andp-grid button.on{ border-color:var(--andp-accent); color:var(--andp-accent); font-weight:800; background:color-mix(in srgb, var(--andp-accent) 12%, transparent); }
.andp-grid button:disabled{ opacity:.3; cursor:default; }
.andp-ft{ display:flex; gap:10px; padding:11px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border-top:1px solid var(--andp-line); flex:none; }
.andp-clr{ height:50px; padding:0 16px; border:1px solid var(--andp-line); border-radius:12px; background:var(--andp-bg); color:var(--andp-sub); font:inherit; font-weight:700; font-size:14px; cursor:pointer; }
.andp-done{ flex:1; height:50px; border:0; border-radius:12px; background:var(--andp-accent); color:var(--andp-accent-ink); font:inherit; font-weight:800; font-size:15.5px; cursor:pointer; }
.andp-done:disabled{ opacity:.4; cursor:default; }
.andp-done[hidden]{ display:none; }
/* 다크: 로컬 토큰만 교체 (코랄→노랑, 노랑 위 글씨는 어둡게) */
body.dark .andp, html.dark .andp{
	--andp-bg:var(--dark-bg-secondary, #232323); --andp-ink:var(--dark-text-primary, #ECECEC); --andp-sub:var(--dark-text-secondary, #B5B5B5);
	--andp-mute:#8C8C8C; --andp-line:var(--dark-border-light, #3a3a3a); --andp-soft:var(--dark-bg-tertiary, #2A2A2A);
	--andp-accent:var(--dark-ui-action, #FF9F1C); --andp-accent-ink:var(--dark-ui-action-text, #2A1F0A);
	--andp-sun:#ff7b7b; --andp-sat:#8fb0ff;
}
body.dark .andp-dim, html.dark .andp-dim{ background:rgba(0,0,0,.6); }
@media (prefers-reduced-motion: no-preference){
	.andp--sheet{ animation:andp-up .18s ease-out; }
	.andp--pop{ animation:andp-fade .12s ease-out; }
	@keyframes andp-up{ from{ transform:translateY(24px); opacity:.6; } to{ transform:none; opacity:1; } }
	@keyframes andp-fade{ from{ transform:translateY(-4px); opacity:0; } to{ transform:none; opacity:1; } }
}
