/* Themed dropdowns + date picker for the public site (same as the workspace) */
.csel, .csel-pop, .dp, .dp-pop {
    --line: #e6edf7; --line-2: #d9deea; --ink: #0b1e4a; --ink-2: #33456e; --muted: #5f6b86; --blue: #1673e6; --blue-50: #eef5ff;
    --red: #e0413a; --orange: #f26a12; --grad-blue: linear-gradient(150deg, #2b8cf0 0%, #1673e6 45%, #0f4fb3 100%);
}
.csel .i, .csel-pop .i, .dp .i, .dp-pop .i { width: 18px; height: 18px; flex: none; }
.csel .i.xs, .csel-pop .i.xs { width: 14px; height: 14px; }
.csel-pop button, .dp-pop button, .csel-btn, .dp-btn { font: inherit; }
/* ---------- Themed select ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.csel { position: relative; min-width: 0; }
.csel-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.csel-btn {
    width: 100%; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; text-align: left;
    background: #fff; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); cursor: pointer;
    transition: border-color .2s, box-shadow .2s; font-weight: 500;
}
.csel-btn:hover { border-color: #b9cde9; }
.csel-btn:focus-visible, .csel.open .csel-btn { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 115, 230, .12); }
.csel-btn .csel-val { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csel-btn .csel-val.ph { color: #8a97b3; font-weight: 400; }
.csel-btn .i { color: var(--muted); transition: transform .2s; }
.csel.open .csel-btn .i { transform: rotate(180deg); color: var(--blue); }
.csel.invalid .csel-btn { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 65, 58, .12); }
.csel-sm .csel-btn, .csel-filter .csel-btn { height: 40px; border-radius: 10px; }
.filters .csel-filter { flex: 0 1 220px; }
.csel-pop {
    position: fixed; z-index: 120; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
    box-shadow: 0 24px 50px -20px rgba(11, 30, 74, .45), 0 2px 6px rgba(11, 30, 74, .06); max-width: min(420px, calc(100vw - 16px));
    animation: popIn .14s ease-out;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } }
.csel-list { max-height: 280px; overflow-y: auto; display: grid; gap: 2px; scrollbar-width: thin; }
.csel-search { width: 100%; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; margin-bottom: 6px; background: #f8fbff; }
.csel-search:focus { outline: none; border-color: var(--blue); background: #fff; }
.csel-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--ink-2); font-size: .93rem; }
.csel-opt span { flex: 1; }
.csel-opt .i { opacity: 0; color: var(--blue); }
.csel-opt.ph { color: #8a97b3; }
.csel-opt.is-act { background: var(--blue-50); color: var(--blue); }
.csel-opt.sel { color: var(--blue); font-weight: 700; }
.csel-opt.sel .i { opacity: 1; }
.csel-opt.dis { opacity: .45; cursor: not-allowed; }

/* ---------- Date picker ---------- */
.dp { position: relative; display: flex; align-items: center; min-width: 0; }
.dp .dp-in { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 44px 0 14px; background: #fff; font-variant-numeric: tabular-nums; }
.dp .dp-in:focus, .dp.open .dp-in { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 115, 230, .12); }
.dp.invalid .dp-in { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 65, 58, .12); }
.dp-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 9px; border: 0; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; cursor: pointer; }
.dp-btn:hover, .dp.open .dp-btn { background: var(--grad-blue); color: #fff; }
.filters .dp { flex: 0 0 180px; }
.filters .dp .dp-in { height: 40px; border-radius: 10px; }
.dp-pop { position: fixed; z-index: 120; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 24px 50px -20px rgba(11, 30, 74, .45), 0 2px 6px rgba(11, 30, 74, .06); animation: popIn .14s ease-out; }
.dp-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.dp-head .dp-nav { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.dp-head .dp-nav:hover { color: var(--blue); border-color: #cfe0f7; background: var(--blue-50); }
.dp-title { border: 0; background: none; font-weight: 700; font-size: .98rem; color: var(--ink); padding: 6px 8px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.dp-title:first-of-type { margin-left: auto; }
.dp-title.yr { margin-right: auto; color: var(--blue); }
.dp-title:hover { background: var(--blue-50); }
.dp-title.static { margin: 0 auto; cursor: default; }
.dp-title.static:hover { background: none; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow span { text-align: center; font-size: .72rem; font-weight: 700; color: #8a97b3; padding: 4px 0; text-transform: uppercase; }
.dp-day { height: 36px; border: 0; background: none; border-radius: 10px; font-size: .9rem; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-day:hover { background: var(--blue-50); color: var(--blue); }
.dp-day.out { color: #b8c2d6; }
.dp-day.sun { color: #c46b00; }
.dp-day.out.sun { color: #e8c9a3; }
.dp-day.today { box-shadow: inset 0 0 0 2px var(--orange); font-weight: 700; }
.dp-day.sel { background: var(--grad-blue); color: #fff; font-weight: 700; box-shadow: 0 6px 14px -8px rgba(22, 115, 230, .9); }
.dp-months, .dp-years { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dp-cell { height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.dp-cell:hover { border-color: #cfe0f7; background: var(--blue-50); color: var(--blue); }
.dp-cell.today { border-color: var(--orange); }
.dp-cell.sel { background: var(--grad-blue); color: #fff; border-color: transparent; }
.dp-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.dp-link { border: 0; background: none; color: var(--blue); font-weight: 700; font-size: .86rem; cursor: pointer; padding: 6px 4px; }
.dp-link.muted { color: var(--muted); }
.dp-type { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 10px; font-size: .86rem; }
.dp-type:focus { outline: none; border-color: var(--blue); }
.dp-type.bad { border-color: var(--red); }


/* match the public form fields */
.field .csel-btn { min-height: 48px; height: auto; padding: 12px 14px; border: 1.5px solid #d9deea; border-radius: var(--r-sm, 10px); font-size: 1rem; font-weight: 400; color: var(--ink); }
.field .csel-btn .csel-val.ph { color: #8a97b3; }
.field .csel-btn:focus-visible, .field .csel.open .csel-btn { border-color: #1673e6; box-shadow: 0 0 0 4px rgba(22, 115, 230, .15); }
.field .dp .dp-in { min-height: 48px; height: auto; padding: 12px 48px 12px 14px; border: 1.5px solid #d9deea; border-radius: var(--r-sm, 10px); font-size: 1rem; }
.field .dp .dp-in:focus, .field .dp.open .dp-in { border-color: #1673e6; box-shadow: 0 0 0 4px rgba(22, 115, 230, .15); }
.dp-btn { display: grid; place-items: center; }
.dp-pop { font-family: var(--font-body, "Helvetica Neue", Helvetica, Arial, sans-serif); }
.csel-pop { font-family: var(--font-body, "Helvetica Neue", Helvetica, Arial, sans-serif); }
