/* A quiet, tactile calendar. Native inputs remain editable and usable without JS. */
.op .op-date-field{display:block;position:relative;margin-top:7px;min-width:0;font-weight:400}
.op .op-date-field input[type=date]{margin:0;padding:10px 14px 10px 54px;min-height:54px;background:#fff;cursor:text}
.op .op-date-enhanced::-webkit-calendar-picker-indicator{display:none}
.op .op-date-field input.op-date-enhanced:not(:focus){color:transparent}
.op .op-date-readable{position:absolute;inset-inline:14px 55px;top:0;min-height:54px;display:flex;align-items:center;color:#173b4d;font-size:15px;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.op .op-date-field.is-empty .op-date-readable{color:#687e88}
.op .op-date-field input:focus~.op-date-readable{visibility:hidden}
.op .op-date-trigger{position:absolute;inset-inline-end:5px;top:5px;width:44px;height:44px;border:0;border-radius:9px;display:grid;place-items:center;color:#82602e;background:#f6f0e5;cursor:pointer}
.op .op-date-trigger svg{width:22px;height:22px}
.op .op-date-trigger:hover{background:#ecdfc5;color:#5f4119}
.op .op-date-field:focus-within input{border-color:#9c793f}
.op .op-date-field input[aria-invalid=true]{border-color:#a84432;background:#fffaf6}
.op .op-date-dialog{padding:0;border:1px solid #d7dace;border-radius:24px;width:min(760px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 40px);overflow:auto;color:#102d3e;background:#fffdfa;box-shadow:0 28px 100px #061f3666;font-family:inherit}
.op .op-date-dialog::backdrop{background:#061f368a;backdrop-filter:blur(5px)}
.op-date-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 28px 20px;background:#f5f1e9;border-bottom:1px solid #e4ddd0}
.op .op-date-dialog-header h2{font-size:25px;line-height:1.4;margin:3px 0 0;letter-spacing:-.5px}
.op .op-date-eyebrow{font-size:11px;color:#805c28;font-weight:700;letter-spacing:.4px}
.op .op-date-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #d7d5ca;border-radius:50%;color:#294958;background:#fffdfa;font-size:27px;line-height:1;cursor:pointer}
.op .op-date-close:hover{background:#eae4d8}
.op .op-date-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:20px 28px 0}
.op .op-date-pair button{min-height:70px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px;border:1px solid #dce1df;border-radius:12px;padding:11px 15px;text-align:start;color:#46606c;background:#fffdfa;cursor:pointer}
.op .op-date-pair button[aria-pressed=true]{border-color:#b38b4f;background:#fbf4e8;box-shadow:inset 0 -3px #b38b4f}
.op .op-date-pair span{font-size:12px;font-weight:400}
.op .op-date-pair strong{font-size:15px;font-weight:700;color:#102d3e}
.op-date-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 23px 0}
.op .op-date-navigation button{width:44px;height:44px;min-height:44px;display:grid;place-items:center;flex-shrink:0;border:1px solid #dce1df;border-radius:50%;background:#fffdfa;color:#264b5c;padding:10px;cursor:pointer}
.op .op-date-navigation button:hover:not(:disabled){background:#edf2f0;border-color:#91a7a9}
.op-date-navigation button svg{width:20px;height:20px}
.op .op-date-month-announcement{font-size:13px;color:#5b7078;text-align:center;font-weight:400}
.op .op-date-months{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0 22px 18px}
.op .op-date-month{min-width:0;padding:0 6px}
.op .op-date-month h3{font-size:18px;text-align:center;font-weight:700;margin:7px 0 13px;line-height:1.5;color:#153748}
.op .op-date-grid{width:100%;table-layout:fixed;border-collapse:collapse;direction:rtl}
.op .op-date-grid th{height:32px;padding:0;font-size:11px;font-weight:400;color:#526973;text-align:center;border:0;background:none}
.op .op-date-grid td{padding:0;text-align:center;border:0;background:none;height:44px;vertical-align:middle}
.op .op-date-grid td.is-in-range,.op .op-date-grid td.is-range-start,.op .op-date-grid td.is-range-end{background:linear-gradient(transparent 4px,#f1e8d7 4px,#f1e8d7 calc(100% - 4px),transparent calc(100% - 4px))}
.op .op-date-grid td.is-range-start{border-radius:0 50% 50% 0}
.op .op-date-grid td.is-range-end{border-radius:50% 0 0 50%}
.op .op-date-grid button{display:grid;place-items:center;width:100%;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;color:#183b4c;background:transparent;font-size:14px;font-weight:400;cursor:pointer;position:relative}
.op .op-date-grid button:hover:not(:disabled){background:#e8efec}
.op .op-date-grid button[aria-current=date]::after{content:'';position:absolute;width:4px;height:4px;bottom:5px;border-radius:50%;background:#9b7434}
.op .op-date-grid button[aria-pressed=true]{color:#fffdfa;background:#102f40;font-weight:700;box-shadow:0 3px 8px #102f4025}
.op .op-date-grid button[aria-pressed=true]::after{background:#e5c38d}
.op .op-date-grid button:focus-visible{outline:2px solid #9b7434;outline-offset:-3px}
.op .op-date-grid button:disabled{color:#a4afaf;opacity:1;cursor:not-allowed}
.op .op-date-grid button:disabled[aria-pressed=true]{background:#d9dfdc;color:#536b74;box-shadow:none}
.op-date-dialog-footer{padding:17px 28px 20px;border-top:1px solid #e3e4da;background:#f8f7f1}
.op .op-date-dialog-footer>p{font-size:12px;line-height:1.75;color:#5b717a;margin:0}
.op-date-dialog-footer>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.op .op-date-dialog-footer button{min-height:44px;border:1px solid #d8ddd7;border-radius:9px;padding:10px 19px;font-size:13px;font-weight:700;cursor:pointer;background:#fffdfa;color:#254958}
.op .op-date-dialog-footer .op-date-done{background:#102f40;border-color:#102f40;color:#fffdfa;min-width:95px}
.op .op-date-dialog-footer .op-date-keyboard{margin-top:13px;font-size:11px;color:#526973}
body:has(.op-date-dialog[open]){overflow:hidden}
@media(max-width:760px){
 .op .op-date-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:calc(100dvh - 12px);border:0;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
 .op-date-dialog-header{padding:19px 18px 16px}
 .op .op-date-dialog-header h2{font-size:22px}
 .op .op-date-pair{padding:15px 12px 0;gap:8px}
 .op .op-date-pair button{padding:10px 12px;min-height:67px}
 .op .op-date-pair strong{font-size:14px}
 .op-date-navigation{padding:10px 12px 0}
 .op .op-date-month-announcement{font-size:12px}
 .op .op-date-months{grid-template-columns:minmax(0,1fr);padding:0 0 13px;gap:0}
 .op .op-date-month{padding:0 6px}
 .op .op-date-month h3{font-size:18px;margin:3px 0 8px}
 .op .op-date-grid button{height:44px;min-height:44px;font-size:15px}
 .op-date-dialog-footer{padding:14px 18px 17px}
 .op .op-date-dialog-footer .op-date-keyboard{display:none}
}
@media(prefers-reduced-motion:reduce){.op-date-dialog::backdrop{backdrop-filter:none}}
@media print{.op .op-date-dialog,.op .op-date-trigger{display:none!important}.op .op-date-field input.op-date-enhanced:not(:focus){color:inherit}.op .op-date-readable{display:none!important}}
