/* Unified date/time/duration wheel, desktop dialog + safe-area aware phone sheet. */
.jx-time-field-wrap{position:relative}
.jx-date-wheel-input{cursor:pointer!important;background:var(--jx-ui-surface,#fff)!important;padding-right:12px!important}
.jx-time-field-icon{pointer-events:none;position:absolute;right:13px;bottom:15px;color:var(--jx-ui-muted,#6b91c8);font-size:18px;line-height:1}
.jx-time-overlay,.jx-time-overlay *{box-sizing:border-box}
.jx-time-overlay{position:fixed;inset:0;z-index:15000;display:flex;align-items:center;justify-content:center;max-width:100vw;min-width:0;padding:16px;background:color-mix(in srgb,#132b47 42%,transparent);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);overscroll-behavior:contain;touch-action:none}
.jx-time-panel{position:relative;display:flex;flex-direction:column;flex:0 1 530px;width:min(530px,100%);max-width:100%;min-width:0;max-height:94vh;max-height:94dvh;overflow:hidden;background:var(--jx-ui-surface,#fff);border:1px solid var(--jx-ui-border,#e2eaf3);border-radius:20px;color:var(--jx-ui-text,#233a58);box-shadow:0 25px 75px #0b254a38;touch-action:auto}
.jx-time-head{position:relative;display:flex;align-items:center;min-width:0;min-height:77px;padding:16px 67px 16px 20px;flex:0 0 auto;border-bottom:1px solid var(--jx-ui-border,#e8eef7)}
.jx-time-head>div{min-width:0}.jx-time-head strong{display:block;font-size:17px;line-height:1.35;font-weight:730}.jx-time-head small{display:block;margin-top:5px;font-size:12px;line-height:1.4;color:var(--jx-ui-muted,#7b8d9f)}
.jx-time-overlay .jx-time-close{appearance:none;position:absolute;top:50%;right:16px;transform:translateY(-50%);display:grid;place-items:center;flex:none;width:38px;height:38px;min-width:38px;min-height:38px;padding:0!important;margin:0!important;border:1px solid var(--jx-ui-border,#e0e8f2);border-radius:11px;background:var(--jx-ui-soft,#f2f6fc);color:var(--jx-ui-text,#4f6379);line-height:1!important;cursor:pointer}
.jx-time-close svg{display:block;width:18px;height:18px;overflow:visible}
.jx-time-preview{flex:0 0 auto;padding:17px 12px 10px;text-align:center;font-weight:760;font-size:clamp(16px,4.5vw,23px);font-variant-numeric:tabular-nums;color:var(--jx-ui-accent,#1762c8);overflow-wrap:anywhere}
.jx-time-scrollers{display:grid;grid-template-columns:repeat(var(--jx-wheel-columns,3),minmax(0,1fr));gap:6px;min-width:0;width:100%;min-height:0;padding:6px 15px 0}
.jx-time-column{min-width:0;position:relative;text-align:center}
.jx-time-col-title{font-size:12px;font-weight:700;color:var(--jx-ui-muted,#8494ab);margin:0 0 8px}
.jx-time-column:after{content:"";pointer-events:none;position:absolute;top:var(--jx-wheel-highlight-top,107px);left:1px;right:1px;height:44px;border:1px solid var(--jx-ui-border,#d4e6ff);border-radius:10px;background:var(--jx-ui-soft,#ebf3ff)}
.jx-time-values{height:220px;max-width:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;position:relative;z-index:1;scroll-snap-type:none;scroll-behavior:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;cursor:grab}
.jx-time-values::-webkit-scrollbar{display:none}.jx-time-values:active{cursor:grabbing}.jx-time-padding{height:88px;flex:0 0 auto}
.jx-time-overlay .jx-time-value{appearance:none;display:block;width:100%;height:44px;min-height:44px;min-width:0;margin:0;padding:0!important;border:0;border-radius:8px;background:transparent;text-align:center;color:var(--jx-ui-muted,#8595aa);font-size:17px;font-weight:510;line-height:44px;cursor:pointer;position:relative;z-index:2;scroll-snap-align:none;user-select:none;-webkit-user-select:none;font-variant-numeric:tabular-nums}
.jx-time-overlay .jx-time-value.selected{color:var(--jx-ui-accent,#1466cf);font-weight:800;font-size:20px}
.jx-time-values:focus-visible{outline:2px solid var(--jx-ui-accent,#89b8ff);outline-offset:-2px;border-radius:10px}
.jx-time-status{flex:0 0 auto;min-height:30px;margin:8px 16px 12px;text-align:center;color:var(--jx-ui-muted,#8998aa);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.jx-time-status.invalid{color:var(--jx-ui-danger,#c94d4d)}
.jx-time-overlay .jx-time-footer{box-sizing:border-box;flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:9px;min-height:65px;margin:0;padding:12px 17px;border-top:1px solid var(--jx-ui-border,#e8eef7)}
.jx-time-overlay .jx-time-footer button{appearance:none;flex:0 0 auto;min-width:0;min-height:42px;height:42px;margin:0;padding:0 18px;border-radius:11px;font:inherit;font-size:14px;line-height:1;white-space:nowrap;cursor:pointer}
.jx-time-neutral{border:1px solid var(--jx-ui-border,#dce5f1);background:var(--jx-ui-surface,#fff);color:var(--jx-ui-text,#506782)}.jx-time-footer .jx-time-neutral:first-child{margin-right:auto}
.jx-time-confirm{border:1px solid transparent;background:var(--jx-ui-accent,#216fe7);color:var(--jx-ui-on-accent,#fff);font-weight:680}.jx-time-confirm:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){
 .jx-time-overlay{align-items:flex-end;justify-content:stretch;padding:0!important;width:100%;max-width:100vw;overflow:hidden}
 .jx-time-panel{flex:0 1 auto;width:100%;max-width:100vw;max-height:calc(100vh - env(safe-area-inset-top,0px) - 8px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - 8px);border-radius:22px 22px 0 0;border-bottom:0;min-width:0}
 .jx-time-head{min-height:76px;padding:15px 64px 14px 18px}.jx-time-head strong{font-size:17px}.jx-time-head small{font-size:12px;line-height:1.45}
 .jx-time-overlay .jx-time-close{right:14px;width:40px;height:40px;min-width:40px;min-height:40px}
 .jx-time-preview{padding:13px 8px 7px;font-size:clamp(15px,5vw,21px)}
 .jx-time-scrollers{gap:2px;padding:6px 8px 0}
 .jx-time-col-title{font-size:11px}.jx-time-overlay .jx-time-value{font-size:clamp(12px,3.9vw,17px)}.jx-time-overlay .jx-time-value.selected{font-size:clamp(14px,4.4vw,19px)}
 .jx-time-column:after{border-radius:8px}
 .jx-time-status{font-size:11px;min-height:30px;margin:7px 10px 8px}
 .jx-time-overlay .jx-time-footer{min-height:68px;padding:11px 12px calc(11px + env(safe-area-inset-bottom,0px));gap:8px;justify-content:space-between}
 .jx-time-overlay .jx-time-footer button{min-height:44px;height:44px;min-width:0;padding:0 15px;font-size:15px}
 .jx-date-wheel-input{font-size:16px!important}
}
@media(max-width:350px){.jx-time-scrollers{padding-inline:5px;gap:1px}.jx-time-overlay .jx-time-footer button{padding:0 11px}}
@media(prefers-reduced-motion:reduce){.jx-time-overlay{scroll-behavior:auto!important}.jx-time-values{scroll-behavior:auto!important}}

/* V3.2.16: shared non-blocking ERP date/time surface; no dimming or blurred page. */
.jx-time-overlay{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;pointer-events:none!important}
.jx-time-panel{pointer-events:auto!important;min-width:0;min-height:335px}
.jx-time-head{cursor:move;touch-action:none}
.jx-time-head:active{cursor:move}
/* Reuse the eight existing JXWindow grip classes for the wheel panel. */
.jx-time-panel>.jx-biz-grip{position:absolute;display:block;z-index:30;touch-action:none;user-select:none}
.jx-time-panel>.jx-biz-n,.jx-time-panel>.jx-biz-s{height:8px;left:14px;right:14px;cursor:ns-resize}
.jx-time-panel>.jx-biz-n{top:0}.jx-time-panel>.jx-biz-s{bottom:0}
.jx-time-panel>.jx-biz-e,.jx-time-panel>.jx-biz-w{width:8px;top:14px;bottom:14px;cursor:ew-resize}
.jx-time-panel>.jx-biz-e{right:0}.jx-time-panel>.jx-biz-w{left:0}
.jx-time-panel>.jx-biz-ne,.jx-time-panel>.jx-biz-nw,.jx-time-panel>.jx-biz-se,.jx-time-panel>.jx-biz-sw{width:18px;height:18px}
.jx-time-panel>.jx-biz-ne{right:0;top:0;cursor:nesw-resize}.jx-time-panel>.jx-biz-nw{left:0;top:0;cursor:nwse-resize}
.jx-time-panel>.jx-biz-se{right:0;bottom:0;cursor:nwse-resize}.jx-time-panel>.jx-biz-sw{left:0;bottom:0;cursor:nesw-resize}
@media(max-width:630px){.jx-time-panel>.jx-biz-grip{display:none!important}.jx-time-head{cursor:default;touch-action:auto}}

/* V3.3.0 · Never combine centering transforms with the global hover guard.
   The former top:50%/translateY(-50%) close button jumped 19px on hover. */
.jx-time-overlay .jx-time-head>.jx-time-close,
.jx-time-overlay .jx-time-head>.jx-time-close:hover,
.jx-time-overlay .jx-time-head>.jx-time-close:active{top:19px;transform:none!important;translate:none!important;scale:none!important}
@media(max-width:600px){.jx-time-overlay .jx-time-head>.jx-time-close{top:18px}}
