/* 공용 드롭다운 · 달력 (js/pickers.js) — 홈페이지 · 관리자 공용
   색·크기는 바깥에서 변수로 바꾼다: --ui-h --ui-r --ui-line --ui-accent --ui-ink --ui-muted --ui-fs */
.ui { position: relative; width: 100%; }
.ui-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; padding: 0 !important; }
.ui-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: var(--ui-h, 52px); padding: 0 14px 0 16px;
  border: 1px solid var(--ui-line, #e3e7ee); border-radius: var(--ui-r, 10px); background: #fff; color: var(--ui-ink, #101828);
  font: inherit; font-size: var(--ui-fs, 16px); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ui-field:hover { border-color: #c9d0db; }
.ui-field:focus-visible, .ui.is-open .ui-field { outline: 0; border-color: var(--ui-accent, #2457c5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent, #2457c5) 16%, transparent); }
.ui-val { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-val.is-ph { color: var(--ui-muted, #8a94a6); }
.ui-ic { flex: none; width: 18px; height: 18px; background: currentColor; opacity: .55; transition: transform .22s cubic-bezier(.2,.8,.2,1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.ui.is-open .ui-field--select .ui-ic { transform: rotate(180deg); }
.ui-field--date .ui-ic, .ui-field--datetime .ui-ic {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
/* 테두리 없는 모양 (관리자 상세 칸) */
.ui--plain .ui-field { height: auto; padding: 0; border: 0; background: none; font-weight: 700; font-size: inherit; box-shadow: none !important; }
.ui--plain .ui-field:focus-visible { outline: 2px solid var(--ui-accent, #2457c5); outline-offset: 2px; border-radius: 4px; }

/* 띄우는 상자: 열 때 아래에서 위로 + 페이드, 닫을 때 반대로 */
.ui-pop { box-sizing: border-box; position: fixed; z-index: 400; background: #fff; border-radius: 14px; box-shadow: 0 18px 48px rgba(16,24,40,.18), 0 0 0 1px rgba(16,24,40,.06);
  opacity: 0; transform: translateY(8px); transition: opacity .19s cubic-bezier(.4,0,1,1), transform .19s cubic-bezier(.4,0,1,1); }
.ui-pop.is-up { transform: translateY(-8px); }
.ui-pop.is-in { opacity: 1; transform: none; transition: opacity .24s cubic-bezier(.2,.8,.2,1), transform .24s cubic-bezier(.2,.8,.2,1); }
.ui-pop[hidden] { display: none !important; }
.ui-pop--list { max-height: 300px; overflow: auto; padding: 6px; display: flex; flex-direction: column; overscroll-behavior: contain; }
.ui-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--ui-ink, #101828); font: inherit; font-size: 15px; text-align: left; cursor: pointer; white-space: nowrap; }
.ui-opt:hover, .ui-opt:focus-visible { outline: 0; background: #f2f4f7; }
.ui-opt.is-ph { color: var(--ui-muted, #8a94a6); }
.ui-opt[aria-selected="true"] { font-weight: 800; color: var(--ui-accent, #2457c5); }
.ui-opt[aria-selected="true"]::after { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 달력 */
.ui-pop--cal { padding: 14px 14px 10px; box-sizing: border-box; }
.ui-cal__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ui-cal__hd b { font-size: 16px; font-weight: 800; color: var(--ui-ink, #101828); }
.ui-nav { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f2f4f7; display: grid; place-items: center; cursor: pointer; }
.ui-nav:disabled { opacity: .3; cursor: default; }
.ui-nav i { width: 8px; height: 8px; border-left: 2px solid #344054; border-bottom: 2px solid #344054; transform: translateX(1px) rotate(45deg); }
.ui-nav--next i { transform: translateX(-1px) rotate(-135deg); }
.ui-cal__wd, .ui-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.ui-cal__wd span { font-size: 12px; font-weight: 700; color: #98a2b3; padding: 6px 0; }
.ui-cal__grid { gap: 2px; }
.ui-day { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ui-ink, #101828); cursor: pointer; font-variant-numeric: tabular-nums; position: relative; }
.ui-day:hover:not(:disabled), .ui-day:focus-visible { outline: 0; background: #f2f4f7; }
.is-sun { color: #d92d20 !important; } .is-sat { color: #2457c5 !important; }
.ui-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ui-accent, #2457c5); }
.ui-day[aria-selected="true"] { background: var(--ui-ink, #101828) !important; color: #fff !important; }
.ui-day[aria-selected="true"]::after { background: #fff; }
.ui-day:disabled { color: #d0d5dd !important; cursor: default; }
.ui-cal__times { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 4px; margin-top: 6px; border-top: 1px solid #f0f2f5; scrollbar-width: thin; }
.ui-time { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #e4e7ec; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: #475467; cursor: pointer; }
.ui-time[aria-pressed="true"] { background: var(--ui-ink, #101828); border-color: var(--ui-ink, #101828); color: #fff; }
.ui-cal__ft { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; margin-top: 4px; border-top: 1px solid #f0f2f5; }
.ui-link { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: #667085; padding: 6px 4px; cursor: pointer; }
.ui-link:disabled { opacity: .35; }
.ui-ok { border: 0; border-radius: 9px; background: var(--ui-ink, #101828); color: #fff; font: inherit; font-size: 13.5px; font-weight: 800; padding: 8px 16px; cursor: pointer; }

@media (max-width: 760px) {

  .ui-opt { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .ui-pop, .ui-pop.is-up, .ui-pop.is-in { transform: none !important; }
}
