/* Reference: today's-work history calendar, shared without page-specific overrides. */
.unified-date-field { position:relative;display:inline-flex;min-width:0;max-width:100%;vertical-align:middle; }
.unified-date-range { min-width:min(280px,100%);grid-column:1 / -1; }
.unified-date-source { position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;padding:0!important;pointer-events:none!important;overflow:hidden!important; }
.unified-date-trigger { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;width:100%;padding:8px 11px;border:1px solid #dbe6ee;border-radius:10px;background:#fff;color:#526579;font:inherit;font-size:13px;font-weight:700;cursor:pointer; }
.unified-date-trigger svg { width:18px;height:18px;flex:none;fill:currentColor;color:#079ab7; }
.unified-date-trigger[aria-expanded="true"] { border-color:#9ccfdf;box-shadow:0 0 0 3px #09abc910; }
.unified-date-calendar { position:fixed;z-index:2147483000;display:block;box-sizing:border-box;width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:10px;border:1px solid #d6edf4;border-radius:15px;background:#fff;color:#526579;box-shadow:0 20px 44px #14415830,0 5px 14px #099dbb14;font:700 12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.unified-date-calendar header { display:grid;grid-template-columns:32px 1fr 32px;align-items:center;min-height:40px;gap:8px; }
.unified-date-calendar header strong { text-align:center;font-size:14px;color:#27364c; }
.unified-date-calendar button { box-sizing:border-box;display:grid;place-items:center;min-width:0;border:1px solid #dbe6ee;border-radius:8px;padding:0;background:#fff;color:#526579;font:inherit;cursor:pointer;box-shadow:none; }
.unified-date-calendar header button { width:32px;height:32px;font-size:21px; }
.unified-date-calendar .unified-date-hint { margin:2px 0 8px;text-align:center;color:#73879a;font-size:11px; }
.unified-date-week,.unified-date-grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px; }
.unified-date-week span { display:grid;place-items:center;height:27px;color:#728296;font-size:11px; }
.unified-date-grid button { aspect-ratio:1; }
.unified-date-calendar button:hover:not(:disabled) { background:#edf9fc;border-color:#9bcbdc; }
.unified-date-calendar button:focus-visible,.unified-date-trigger:focus-visible { outline:2px solid #397bab;outline-offset:2px; }
.unified-date-calendar button.outside { color:#8291a2; }
.unified-date-calendar button.today { border-color:#91c9d9; }
.unified-date-calendar button.selected { color:#fff;background:#079ab7;border-color:#079ab7; }
.unified-date-calendar button.in-range { background:#e2f8fc;border-color:#d4edf4;color:#087f98; }
.unified-date-calendar button:disabled { opacity:.4;cursor:default; }
.unified-date-calendar footer { display:flex;justify-content:space-between;gap:8px;margin-top:7px;border-top:1px solid #e5edf2;padding-top:8px; }
.unified-date-calendar footer>div { display:flex;gap:6px; }
.unified-date-calendar footer button { min-height:32px;padding:0 10px; }
.unified-month-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px; }
.unified-month-grid button { min-height:42px; }
.unified-date-time { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px; }
.unified-date-time input { min-width:0;border:1px solid #dbe6ee;border-radius:8px;padding:7px;background:inherit;color:inherit;font:inherit; }
html[data-app-theme="night"] .unified-date-calendar,html[data-app-theme="night"] .unified-date-trigger { background:#202d3e;color:#e2edf7;border-color:#3c5065; }
html[data-app-theme="night"] .unified-date-calendar button { background:#202d3e;color:#e2edf7;border-color:#3c5065; }
html[data-app-theme="night"] .unified-date-calendar header strong { color:#e2edf7; }
html[data-app-theme="night"] .unified-date-calendar button.selected { background:#087f98; }
html[data-app-theme="night"] .unified-date-calendar button.in-range,html[data-app-theme="night"] .unified-date-calendar button:hover:not(:disabled) { background:#2a4560; }
/* Keep the reference palette above the application's broad light-theme button rules. */
html[data-app-theme="light"] body .unified-date-calendar { background:#fff!important;border-color:#d6edf4!important;box-shadow:0 20px 44px #14415830,0 5px 14px #099dbb14!important; }
html[data-app-theme="light"] body .unified-date-trigger,
html[data-app-theme="light"] body .unified-date-calendar button { color:#526579!important;-webkit-text-fill-color:currentColor!important;background:#fff!important;border-color:#dbe6ee!important;box-shadow:none!important; }
html[data-app-theme="light"] body .unified-date-calendar button.selected { background:#079ab7!important;color:#fff!important;border-color:#079ab7!important; }
html[data-app-theme="light"] body .unified-date-calendar button.in-range { background:#e2f8fc!important;color:#087f98!important;border-color:#d4edf4!important; }
html[data-app-theme="light"] body .unified-date-calendar button:hover:not(:disabled):not(.selected) { background:#edf9fc!important;border-color:#9bcbdc!important; }
html[data-app-theme="light"] body .unified-date-calendar button.today:not(.selected) { border-color:#91c9d9!important; }
.unified-date-time { white-space:nowrap; }
.unified-date-time input { width:140px!important;flex:0 1 140px; }
