/* Shared date picker styles (src/components/ui/date-picker.js). Colours mirror the design tokens in src/config/tailwind.config.js:
   brand #1967FE / #1252D4, brand-soft #EAF1FF, line #DDE2E9, ink #1F2A39, ink-secondary #4F5B6B, muted #5F6B7A. */
.dp { position: relative; width: 100%; }
.dp-input { padding-right: 44px !important; }
.dp-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.dp-trigger { position: absolute; right: 0; top: 0; width: 44px; height: 100%; max-height: 44px; display: grid; place-items: center; color: #1252D4; border-radius: 8px; }
.dp-trigger:hover:not(:disabled) { background: #F0F4FA; } .dp-trigger:disabled { color: #7B8594; cursor: not-allowed; }
.dp-input[aria-expanded="true"] { border-color: #1967FE; box-shadow: 0 0 0 1px #1967FE; }
.dp-msg { margin-top: 4px; font-size: 12px; font-weight: 500; color: #AD3044; }
.dp-rangebtn { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.dp-range-text.is-empty { color: #5F6B7A; } .dp-range-ico { position: absolute; right: 12px; display: grid; color: #1252D4; }

/* popover */
.dp-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; display: flex; width: max-content; max-width: calc(100vw - 16px); border: 1px solid #DDE2E9; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06); }
.dp-pop[hidden] { display: none; }
.dp-pop.dp-right { left: auto; right: 0; } .dp-pop.dp-up { top: auto; bottom: calc(100% + 6px); }
.dp-main { display: flex; flex-direction: column; min-width: 0; }
.dp-months { display: flex; }
.dp-month { width: 308px; padding: 12px 16px 4px; } .dp-month + .dp-month { border-left: 1px solid #E7EBF0; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 40px; }
.dp-nav, .dp-nav-sp { flex: 0 0 32px; width: 32px; height: 32px; }
.dp-nav { display: grid; place-items: center; border-radius: 999px; color: #1F2A39; } .dp-nav:hover { background: #F0F2F5; }
.dp-selects { display: flex; gap: 6px; }
.dp-select { height: 32px; padding: 0 22px 0 8px; border: 1px solid transparent; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%234F5B6B' stroke-width='1.6'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 7px center; font: 600 14px/20px inherit; font-family: inherit; color: #1F2A39; appearance: none; -webkit-appearance: none; cursor: pointer; }
.dp-select:hover { border-color: #CDD4DD; background-color: #F6F7F9; } .dp-select option:disabled { color: #98A3B3; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 4px; }
.dp-wd { display: contents; } .dp-wd span { display: grid; place-items: center; height: 32px; font-size: 12px; font-weight: 600; color: #4F5B6B; }
.dp-cell { position: relative; display: grid; place-items: center; height: 40px; }
.dp-cell.is-mid { background: #EAF1FF; } .dp-cell.is-a { background: linear-gradient(90deg, transparent 50%, #EAF1FF 50%); } .dp-cell.is-b { background: linear-gradient(90deg, #EAF1FF 50%, transparent 50%); }
.dp-day { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; font-size: 14px; font-weight: 500; color: #1F2A39; font-variant-numeric: tabular-nums; }
.dp-day:hover, .dp-day.is-hover { background: #F0F2F5; } .dp-cell.is-mid .dp-day { color: #1252D4; } .dp-cell.is-mid .dp-day:hover { background: #D9E6FF; }
.dp-day.is-out { color: #7B8797; font-weight: 400; }
.dp-day.is-today { box-shadow: inset 0 0 0 1.5px #1967FE; color: #1252D4; font-weight: 600; }
.dp-day.is-sel { background: #1967FE; color: #fff; font-weight: 600; box-shadow: none; } .dp-day.is-sel:hover { background: #1252D4; }
.dp-day.is-off { color: #A9B2BF; text-decoration: line-through; cursor: not-allowed; background: transparent; }
.dp-day:focus-visible, .dp-nav:focus-visible, .dp-select:focus-visible, .dp-link:focus-visible, .dp-btn:focus-visible, .dp-preset:focus-visible { outline: 2px solid #1250D0; outline-offset: 1px; }
.dp-foot { display: flex; align-items: center; gap: 8px; padding: 8px 16px 12px; border-top: 1px solid #E7EBF0; }
.dp-link { min-height: 32px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #1252D4; } .dp-link:hover:not(:disabled) { background: #EAF1FF; } .dp-link:disabled { color: #98A3B3; cursor: not-allowed; }
.dp-foot-range { padding: 12px 16px; } .dp-spacer { flex: 1; }
.dp-box { width: 128px; height: 40px; padding: 0 10px; border: 1px solid #7B8797; border-radius: 8px; font-size: 14px; color: #1F2A39; } .dp-box.is-active, .dp-box:focus { border-color: #1967FE; outline: none; box-shadow: 0 0 0 1px #1967FE; } .dp-box[aria-invalid="true"] { border-color: #AD3044; }
.dp-btn { height: 40px; padding: 0 18px; border: 1px solid #7B8797; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 500; color: #1F2A39; } .dp-btn:hover { background: #F0F4FA; }
.dp-btn-primary { border-color: #1967FE; background: #1967FE; color: #fff; } .dp-btn-primary:hover:not(:disabled) { background: #1252D4; } .dp-btn:disabled { border-color: #DDE2E9; background: #EEF0F3; color: #7B8594; cursor: not-allowed; }
.dp-presets { flex: 0 0 236px; padding: 12px; border-right: 1px solid #E7EBF0; display: flex; flex-direction: column; gap: 2px; }
.dp-preset { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 6px 10px; border-radius: 8px; text-align: left; font-size: 14px; font-weight: 500; color: #1F2A39; }
.dp-preset small { font-size: 12px; font-weight: 400; color: #5F6B7A; } .dp-preset:hover { background: #F0F2F5; }
.dp-preset.is-on { background: #EAF1FF; color: #1252D4; } .dp-preset.is-on small { color: #1252D4; }

@media (max-width: 899px) { .dp-pop-range .dp-month + .dp-month { display: none; } }
@media (max-width: 639px) {
  .dp-pop { max-width: calc(100vw - 32px); } .dp-month { width: min(308px, calc(100vw - 34px)); }
  .dp-pop-range { flex-direction: column; } .dp-pop-range .dp-presets { flex: none; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #E7EBF0; } .dp-preset { width: auto; white-space: nowrap; } .dp-preset small { display: none; }
  .dp-foot-range { flex-wrap: wrap; } .dp-box { width: calc(50% - 14px); }
}
@media (pointer: coarse) { .dp-day { width: 40px; height: 40px; } .dp-cell { height: 44px; } .dp-nav, .dp-select, .dp-link { min-height: 44px; } .dp-nav { width: 44px; flex-basis: 44px; } }
@media (prefers-reduced-motion: no-preference) { .dp-pop:not([hidden]) { animation: dp-in .12s ease-out; } @keyframes dp-in { from { opacity: 0; transform: translateY(-4px); } } }
