/* v4.5.69 interactive appointment editing; colors inherit Design Studio. */
.jc-drag-setting{display:inline-flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap;color:var(--crm-text)}
.jc-drag-setting input{accent-color:var(--crm-primary)}
.jc-timed-wrap[data-appointment-index]:not([data-appointment-index="-1"]) .jc-timed-event{cursor:grab;touch-action:none}
.jc-timed-wrap.jc-dragging{z-index:20!important;pointer-events:none;opacity:.84;filter:drop-shadow(0 7px 10px #0005)}
.jc-timed-wrap.jc-dragging .jc-timed-event{cursor:grabbing}
.jc-resize-handle{position:absolute;left:15%;width:70%;height:9px;z-index:7;cursor:ns-resize;touch-action:none;display:none;align-items:center;justify-content:center}
.jc-resize-handle:after{content:'';height:3px;width:30px;max-width:70%;border-radius:8px;background:var(--crm-text);opacity:.8;box-shadow:0 0 1px #000}
.jc-resize-top{top:0}.jc-resize-bottom{bottom:0}
.jc-timed-wrap:hover .jc-resize-handle,.jc-timed-wrap:focus-within .jc-resize-handle{display:flex}
.jc-timed-wrap.jc-dragging .jc-resize-handle{display:none}
.jc-calendar[data-drag-disabled] .jc-resize-handle{display:none!important}
.jc-calendar[data-drag-disabled] .jc-timed-event{cursor:pointer!important;touch-action:auto!important}
.jc-drag-hint{position:fixed;z-index:99999;pointer-events:none;padding:7px 11px;border-radius:7px;background:var(--crm-surface);color:var(--crm-text);border:1px solid var(--crm-primary);box-shadow:0 8px 20px #0005;font-size:12px;font-weight:700;max-width:270px}
@media(prefers-reduced-motion:reduce){.jc-timed-wrap{transition:none!important}}

/* v4.5.70: floating preview avoids clipping by day columns */
.jc-timed-wrap.jc-drag-source{opacity:.23!important;filter:none!important;transform:none!important}
.jc-drag-ghost{box-sizing:border-box;opacity:.94;filter:drop-shadow(0 12px 14px #0008);border-radius:5px;overflow:hidden;cursor:grabbing!important}
.jc-drag-ghost .jc-timed-event{height:100%;width:100%;pointer-events:none}

/* v4.5.71 — theme-aware rescheduling review dialog. Theme variables inherit Design Studio values. */
.jc-reschedule-overlay{position:fixed;inset:0;z-index:100005;background:rgba(0,0,0,.56);display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(3px)}
.jc-reschedule-modal{box-sizing:border-box;width:min(590px,100%);max-height:calc(100vh - 36px);overflow:auto;background:var(--card-bg,var(--panel-bg,var(--surface,#172233)));color:var(--text-primary,var(--text,#eef3fa));border:1px solid var(--border-color,var(--border,#435168));border-radius:16px;padding:24px;box-shadow:0 24px 80px #0008;font-family:inherit}
.jc-reschedule-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:20px}.jc-reschedule-head h2{font-size:21px;line-height:1.3;margin:5px 0 0;color:inherit}.jc-reschedule-kicker{font-size:10px;letter-spacing:1.5px;font-weight:700;color:var(--accent-color,var(--accent,#45a6ff))}.jc-reschedule-x{font-size:28px;border:0;background:transparent;color:inherit;cursor:pointer}
.jc-reschedule-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.jc-reschedule-details>div,.jc-reschedule-times>div:not(.jc-reschedule-arrow){padding:13px;border:1px solid var(--border-color,var(--border,#435168));border-radius:10px;background:var(--surface-secondary,rgba(127,127,127,.07))}.jc-reschedule-modal small{display:block;font-size:11px;opacity:.72;margin-bottom:6px}.jc-reschedule-details strong,.jc-reschedule-times strong{display:block;font-size:14px;line-height:1.5}.jc-reschedule-details span{font-size:12px;opacity:.75}
.jc-reschedule-times{display:grid;grid-template-columns:1fr 20px 1fr;gap:8px;align-items:center}.jc-reschedule-arrow{text-align:center;color:var(--accent-color,var(--accent,#45a6ff));font-size:18px}.jc-reschedule-warning{border:1px solid #d89a3a;border-radius:10px;padding:12px;margin-top:16px;background:rgba(225,156,42,.12)}.jc-reschedule-warning p{font-size:12px;margin:6px 0;line-height:1.6}
.jc-reschedule-notify{display:flex;gap:12px;align-items:flex-start;margin:20px 0;padding:15px;border:1px solid var(--border-color,var(--border,#435168));border-radius:10px;cursor:pointer}.jc-reschedule-notify input{width:18px;height:18px;accent-color:var(--accent-color,var(--accent,#2685ec));margin:2px 0 0;flex-shrink:0}.jc-reschedule-notify strong{display:block;font-size:14px}.jc-reschedule-notify small{line-height:1.5;margin-top:5px}
.jc-reschedule-actions{display:flex;justify-content:flex-end;gap:10px}.jc-reschedule-actions button{font:inherit;font-weight:600;border-radius:9px;padding:11px 17px;cursor:pointer}.jc-reschedule-cancel{color:inherit;background:transparent;border:1px solid var(--border-color,var(--border,#435168))}.jc-reschedule-confirm{color:#fff;background:var(--accent-color,var(--accent,#2679e9));border:1px solid transparent}
@media(max-width:520px){.jc-reschedule-modal{padding:16px}.jc-reschedule-details{grid-template-columns:1fr}.jc-reschedule-times{grid-template-columns:1fr}.jc-reschedule-arrow{transform:rotate(90deg)}.jc-reschedule-actions{flex-direction:column-reverse}.jc-reschedule-actions button{width:100%}}
