/* Shared accessible calendar. The original input remains in the form as ISO YYYY-MM-DD. */
.touch-date-control{position:relative;display:flex;min-width:0;width:100%;align-items:stretch}
.touch-date-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}
.touch-date-trigger{display:flex;align-items:center;gap:11px;width:100%;min-width:0;min-height:48px;padding:10px 13px;border:1px solid #cfd4dc;border-radius:10px;background:#fff;color:#252932;text-align:left;font-size:14px;font-weight:600;touch-action:manipulation;transition:border-color .15s,background .15s,box-shadow .15s}
.date-filter .touch-date-control{width:auto;flex:1;min-width:120px}.date-filter .touch-date-trigger{min-height:44px;padding-inline:9px;font-size:12px}.date-filter .touch-date-icon{width:24px;height:24px}
.touch-date-trigger:hover{border-color:#8993a2}.touch-date-trigger:focus-visible{outline:3px solid #ed9da1;outline-offset:2px}.touch-date-trigger:disabled{opacity:.55}.touch-date-icon{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:#f2f3f5;color:#596273;font-size:17px}.touch-date-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.touch-date-trigger:not(.has-value) .touch-date-value{color:#7b8492;font-weight:500}.touch-date-chevron{margin-left:auto;color:#788292;font-size:19px}
dialog.touch-date-dialog{width:min(440px,calc(100vw - 24px));max-width:440px;max-height:calc(100dvh - 24px);padding:0;overflow:auto;border:1px solid #d8dce3;border-radius:22px;background:#fff;color:#222832;box-shadow:0 24px 90px #10182840}
dialog.touch-date-dialog::backdrop{background:#10182880;backdrop-filter:blur(3px)}
.touch-date-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 14px;border-bottom:1px solid #eceef1}.touch-date-eyebrow{display:block;margin-bottom:5px;color:#7a8492;font-size:10px;font-weight:800;letter-spacing:1.25px}.touch-date-heading h2{margin:0;font-size:20px;letter-spacing:-.3px}.touch-date-close{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:14px;background:#f0f2f5;color:#424a56;font-size:27px;touch-action:manipulation}
.touch-date-month-nav{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:10px;padding:16px 20px 12px}.touch-date-month-nav>button{width:52px;height:52px;border:1px solid #e1e4e9;border-radius:15px;background:#f7f8fa;color:#262c35;font-size:30px;line-height:1;touch-action:manipulation}.touch-date-month-picker{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:6px;min-width:0}.touch-date-month-picker select{width:100%;min-width:0;height:52px;padding:0 8px;border:1px solid #e1e4e9;border-radius:12px;background:#f7f8fa;color:#262c35;font-size:15px;font-weight:650;text-align:center;text-transform:capitalize;touch-action:manipulation}
.touch-date-weekdays,.touch-date-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:0 18px}.touch-date-weekdays{margin:4px 0 8px;color:#7c8491;text-align:center;font-size:12px;font-weight:700}.touch-date-days button{width:100%;min-width:0;min-height:44px;aspect-ratio:1;border-radius:13px;background:#f6f7f9;color:#262c35;font-size:15px;font-weight:600;touch-action:manipulation;transition:background .12s,color .12s,transform .12s}.touch-date-days button:hover:not(:disabled){background:#fee9ea}.touch-date-days button:active:not(:disabled){transform:scale(.94)}.touch-date-days button.outside{background:transparent;color:#aab0ba;font-weight:450}.touch-date-days button.today{box-shadow:inset 0 0 0 2px #d41118;color:#b40c12}.touch-date-days button.selected{background:#d41118;color:#fff;box-shadow:none}.touch-date-days button:disabled{opacity:.28}
.touch-date-footer{display:flex;align-items:center;gap:9px;margin-top:14px;padding:14px 18px;border-top:1px solid #eceef1;background:#fafbfc}.touch-date-footer>span{flex:1}.touch-date-footer button{min-height:46px;padding:0 15px;border-radius:12px;font-size:14px;font-weight:650;touch-action:manipulation}.touch-date-today{background:#fceced;color:#b40c12}.touch-date-cancel{background:#edf0f3;color:#3b424c}.touch-date-apply{background:#d41118;color:white}.touch-date-apply:disabled{opacity:.4}
.dark-date-dialog{background:#11171d!important;color:#f1f4f7!important;border-color:#303a46!important}.dark-date-dialog .touch-date-heading,.dark-date-dialog .touch-date-footer{border-color:#2b3540;background:#151c23}.dark-date-dialog .touch-date-eyebrow,.dark-date-dialog .touch-date-weekdays{color:#9ca8b5}.dark-date-dialog .touch-date-month-nav>button,.dark-date-dialog .touch-date-month-picker select,.dark-date-dialog .touch-date-close{border-color:#303a46;background:#1b242d;color:#edf2f6}.dark-date-dialog .touch-date-days button{background:#1a232c;color:#edf2f6}.dark-date-dialog .touch-date-days button.outside{background:transparent;color:#66717e}.dark-date-dialog .touch-date-days button.today{box-shadow:inset 0 0 0 2px #ff4052;color:#ff8290}.dark-date-dialog .touch-date-days button.selected{background:#f42438;color:#fff;box-shadow:none}.dark-date-dialog .touch-date-today{background:#382026;color:#ff9da7}.dark-date-dialog .touch-date-clear{background:#222a33;color:#c5ced8}.dark-date-dialog .touch-date-cancel{background:#222a33;color:#e0e6ec}.dark-date-dialog .touch-date-apply{background:#f42438;color:#fff}
/* Date-range filters use the same generous touch targets. */
.range-month-navigation button{width:46px;height:46px;flex:none;border-radius:12px;font-size:27px;touch-action:manipulation}.range-days button{min-height:42px;border-radius:10px;font-size:14px;touch-action:manipulation}.range-month-title select{min-height:46px;font-size:14px}.range-presets button{min-height:44px}.range-heading>button{width:46px;height:46px;touch-action:manipulation}.range-footer .button{min-height:48px}
@media(max-width:700px){dialog.touch-date-dialog{width:min(440px,calc(100vw - 16px));max-height:calc(100dvh - 16px);border-radius:18px}.touch-date-heading{padding:16px 16px 12px}.touch-date-month-nav{padding:13px 14px 10px;grid-template-columns:48px minmax(0,1fr) 48px}.touch-date-month-nav>button{width:48px;height:48px}.touch-date-month-picker{grid-template-columns:minmax(0,1fr) 78px;gap:4px}.touch-date-month-picker select{height:48px;font-size:13px}.touch-date-weekdays,.touch-date-days{padding-inline:12px;gap:3px}.touch-date-days button{min-height:42px;border-radius:11px}.touch-date-footer{flex-wrap:wrap;padding:12px;gap:6px}.touch-date-footer>span{display:none}.touch-date-footer button{flex:1;padding-inline:9px;font-size:13px}.range-months{grid-template-columns:1fr}.range-days button{min-height:40px}.range-presets button{min-height:44px}}
@media(max-width:360px){.touch-date-heading h2{font-size:18px}.touch-date-month-nav{grid-template-columns:44px 1fr 44px;gap:6px}.touch-date-month-nav button{width:44px;height:44px}.touch-date-weekdays,.touch-date-days{padding-inline:8px;gap:2px}.touch-date-days button{min-height:38px;font-size:14px}.touch-date-footer button{padding-inline:8px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.touch-date-trigger,.touch-date-days button{transition:none}}
