/* Scoped to the date chooser; existing page layout and date fields stay intact. */
.marchant-date-popup{position:fixed;z-index:2147483000;width:360px;max-width:calc(100vw - 16px);box-sizing:border-box;overflow:auto;padding:12px;border:1px solid var(--border2,#cbd9ec);border-radius:12px;background:var(--panel,#fff);color:var(--text,#0f2a43);box-shadow:0 12px 36px rgba(15,42,67,.24);font:400 16px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;color-scheme:light;isolation:isolate}
.marchant-date-popup *{box-sizing:border-box}
.marchant-date-popup .marchant-date-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 2px}
.marchant-date-popup h2{margin:0;padding:0;font-size:18px;line-height:1.3;color:inherit}
.marchant-date-popup .marchant-date-caption{margin:0 0 10px;color:var(--muted,#47657f);font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.marchant-date-popup button,.marchant-date-popup select{position:static;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:7px;border:1px solid var(--border2,#cbd9ec);border-radius:7px;background:var(--panel2,#f8fbff);color:var(--text,#0f2a43);box-shadow:none;font:inherit;line-height:1.2;text-transform:none;letter-spacing:normal;cursor:pointer;touch-action:manipulation;transition:none;transform:none}
.marchant-date-popup select{display:block;width:100%;padding:7px 3px}
.marchant-date-popup button:hover:not(:disabled){background:var(--blue2,#dbeafe);border-color:var(--blue,#1c74c4);transform:none}
.marchant-date-popup button:focus-visible,.marchant-date-popup select:focus-visible{outline:3px solid var(--blue,#1c74c4);outline-offset:2px}
.marchant-date-popup button:disabled,.marchant-date-popup option:disabled{opacity:.4;cursor:default}
.marchant-date-popup [hidden]{display:none!important}
.marchant-date-popup .marchant-date-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 78px 44px;gap:5px;align-items:center;margin-bottom:8px}
.marchant-date-popup .marchant-date-nav>button{width:44px;padding:0;font-size:28px}
.marchant-date-popup .marchant-date-grid{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:0;border:0;background:transparent;color:inherit}
.marchant-date-popup .marchant-date-grid tr{background:transparent}
.marchant-date-popup .marchant-date-grid th{height:28px;padding:0;border:0;background:transparent;color:var(--muted,#47657f);font-size:12px;font-weight:600;text-align:center}
.marchant-date-popup .marchant-date-grid td{height:46px;padding:1px;border:0;background:transparent;text-align:center}
.marchant-date-popup .marchant-date-grid button{width:100%;height:44px;min-height:44px;padding:0;border-color:transparent;background:transparent;font-size:16px;font-weight:500}
.marchant-date-popup .marchant-date-grid button[aria-current=date]{border-color:var(--blue,#1c74c4)}
.marchant-date-popup .marchant-date-grid button.marchant-date-selected{background:var(--blue,#1c74c4);color:#fff;font-weight:700}
.marchant-date-popup .marchant-date-grid button.marchant-date-selected:hover:not(:disabled){background:var(--blue,#1c74c4);color:#fff}
.marchant-date-popup .marchant-date-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:9px}
.marchant-date-popup .marchant-date-help{min-height:2.7em;margin:10px 0 0;font-size:12px;line-height:1.35;color:var(--muted,#47657f)}
@media(max-width:380px){.marchant-date-popup{padding:8px}.marchant-date-popup .marchant-date-nav{grid-template-columns:44px minmax(0,1fr) 68px 44px;gap:3px}}
