/* Native inputs keep their values, validation and keyboard entry; only the popup is enhanced. */
.date-picker-field { position: relative; display: block; min-width: 0; width: 100%; }
.date-picker-field > input.date-picker-input { width: 100%; min-width: 0; padding-right: 43px !important; }
.date-picker-input::-webkit-calendar-picker-indicator { display: none; }
.date-picker-field > .date-picker-toggle { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); display: grid; place-items: center; width: 34px; min-width: 0; height: 32px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; background: #edf5f2; color: var(--primary, #176e63); cursor: pointer; }
.date-picker-toggle svg { width: 18px; height: 18px; }
.date-picker-field > .date-picker-toggle:hover { background: #dceee7; }
.date-picker-field > .date-picker-toggle:disabled { opacity: .4; cursor: default; }
.date-picker-popup { position: fixed; inset: auto; box-sizing: border-box; width: 330px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: 0; padding: 0; overflow: auto; border: 1px solid #cfddd8; border-radius: 15px; background: #fff; color: #263b33; box-shadow: 0 14px 48px #183d3029, 0 2px 8px #183d3012; font: 14px/1.5 "Segoe UI", Arial, sans-serif; z-index: 10000; }
.date-picker-popup[hidden] { display: none; }
.date-picker-popup [hidden] { display: none !important; }
.date-picker-popup::backdrop { background: transparent; pointer-events: none; }
.date-picker-popup button { box-sizing: border-box; display: inline-grid; place-items: center; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.date-picker-popup button:hover { background: #eaf4ef; }
.date-picker-popup button:disabled { opacity: .3; cursor: default; }
.date-picker-popup button:focus-visible, .date-picker-popup select:focus-visible, .date-picker-popup input:focus-visible, .date-picker-toggle:focus-visible { outline: 2px solid #176e63; outline-offset: 2px; }
.date-picker-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px 4px; background: #f3f8f5; }
.date-picker-top strong { color: #4b6a5c; font-size: 12px; font-weight: 600; }
.date-picker-popup .date-picker-close { width: 30px; height: 30px; font-size: 23px; }
.date-picker-navigation { display: flex; align-items: center; gap: 6px; padding: 5px 12px 14px; background: #f3f8f5; border-bottom: 1px solid #e1ebe5; }
.date-picker-navigation > button { flex: none; width: 32px; height: 34px; font-size: 26px; }
.date-picker-month-year { display: flex; justify-content: center; flex: 1; gap: 4px; min-width: 0; }
.date-picker-popup .date-picker-month-year select, .date-picker-popup .date-picker-month-year input { box-sizing: border-box; width: auto; min-width: 0; min-height: 34px; margin: 0; padding: 4px 5px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #244f3d; font: 600 16px/1.3 "Segoe UI", Arial, sans-serif; }
.date-picker-popup .date-picker-month-year select:hover, .date-picker-popup .date-picker-month-year input:hover { border-color: #c9dcd1; background: #fff; }
.date-picker-popup .date-picker-month-year input { width: 72px; }
.date-picker-popup .date-picker-days { table-layout: fixed; width: calc(100% - 24px); margin: 10px 12px; border: 0; border-collapse: separate; border-spacing: 2px; background: transparent; box-shadow: none; }
.date-picker-days th, .date-picker-days td { height: auto; margin: 0; padding: 0; border: 0; background: transparent; text-align: center; }
.date-picker-days th { padding: 5px 0 7px; color: #738579; font-size: 11px; font-weight: 600; }
.date-picker-days button { position: relative; width: 100%; height: 36px; font-size: 14px; font-weight: 500; }
.date-picker-days button.is-outside { color: #87978e; }
.date-picker-days button.is-today:not(.is-selected) { color: #176e63; box-shadow: inset 0 0 0 1px #8db6a2; font-weight: 700; }
.date-picker-days button.is-selected, .date-picker-days button.is-selected:hover { background: #176e63; color: #fff; box-shadow: 0 3px 8px #176e6329; font-weight: 700; }
.date-picker-popup .date-picker-selection { margin: 0; padding: 0 16px 12px; color: #577264; font-size: 12px; }
.date-picker-time { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 16px; border-top: 1px solid #e4ece7; color: #395848; font-size: 13px; }
.date-picker-popup .date-picker-time input { box-sizing: border-box; width: 120px; min-width: 0; height: 38px; margin: 0; padding: 6px 9px; border: 1px solid #cfddd5; border-radius: 7px; background: #f7faf8; color: #263b33; font: inherit; }
.date-picker-popup .date-picker-error { margin: 0; padding: 0 16px 12px; color: #a32c3c; font-size: 12px; }
.date-picker-footer { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px; border-top: 1px solid #e4ece7; background: #fbfcfb; }
.date-picker-popup .date-picker-footer button { min-height: 36px; padding: 6px 10px; color: #176e63; font-size: 13px; font-weight: 600; }
.date-picker-popup .date-picker-footer .date-picker-apply { margin-left: auto; background: #176e63; color: #fff; }
.date-picker-popup .date-picker-footer .date-picker-apply:hover { background: #10564d; }
@media (max-width: 480px) { .date-picker-days button { height: 40px; } }
