@media screen{
 #longLeaveDialog :is(#longScheduleList,#longScheduleLegacy,#longScheduleEditorTitle)[hidden]{display:none!important}
 body.workspace-ui #longLeaveDialog{width:min(560px,calc(100vw - 28px))}
 body.workspace-ui #longLeaveDialog .employee-form-body{gap:12px}
 body.workspace-ui #longLeaveDialog .long-leave-person{margin:0;font-size:14px;font-weight:550;color:var(--text)}
 .long-schedule-list{display:grid;gap:4px;max-height:180px;min-height:56px;overflow:auto;overscroll-behavior:contain}
 body.workspace-ui #longLeaveDialog [data-edit-long-schedule]{display:flex;align-items:center;gap:10px;min-width:0;width:100%;min-height:52px;padding:8px 10px;border:1px solid transparent;border-radius:10px;background:var(--surface-soft);color:var(--text);text-align:left}
 body.workspace-ui #longLeaveDialog [data-edit-long-schedule][aria-pressed=true]{border-color:color-mix(in srgb,var(--accent) 35%,transparent);background:var(--info-bg)}
 [data-edit-long-schedule]>.long-schedule-number{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:7px;background:var(--surface);color:var(--muted);font-size:11px}
 [data-edit-long-schedule]>span:nth-child(2){display:grid;gap:4px;min-width:0;flex:1}
 [data-edit-long-schedule] strong{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 [data-edit-long-schedule] small{font-size:11px;color:var(--muted)}
 [data-edit-long-schedule]>.ui-icon{width:14px;height:14px;color:var(--muted);flex:none}
 body.workspace-ui #longLeaveDialog #longScheduleEditorTitle{margin:4px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:13px;font-weight:550}
 body.workspace-ui #longLeaveDialog .long-schedule-sheet-field{display:grid;gap:7px;margin:0}
 .long-schedule-sheet-control{position:relative;display:flex;align-items:center;min-width:0;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 75%,transparent);box-shadow:0 1px 2px #00000004;transition:border-color .15s,box-shadow .15s}
 .long-schedule-sheet-control:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}
 .long-schedule-sheet-control>svg{position:absolute;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;color:var(--muted)}
 .long-schedule-sheet-control>.long-schedule-sheet-icon{left:13px}
 .long-schedule-sheet-control>.long-schedule-sheet-chevron{right:12px;width:14px;height:14px}
 body.workspace-ui #longLeaveDialog .long-schedule-sheet-control>select{width:100%;height:48px;min-height:48px;padding:10px 36px 10px 43px;border:0;border-radius:12px;background:transparent;box-shadow:none;appearance:none;-webkit-appearance:none;font-size:14px;font-weight:500;cursor:pointer;overflow:hidden;text-overflow:ellipsis}
 body.workspace-ui #longLeaveDialog .long-schedule-sheet-control>select:focus{outline:0;border:0;background:transparent;box-shadow:none}
 body.workspace-ui #longLeaveDialog .long-schedule-sheet-control>select:disabled{opacity:.5;cursor:default}
 body.workspace-ui #longLeaveDialog .long-schedule-sheet-control option{background:var(--surface);color:var(--text)}
 body.workspace-ui #longLeaveDialog .form-grid{gap:12px}
 body.workspace-ui #longLeaveDialog .hint{margin:0;font-size:11px;line-height:1.6}
 body.workspace-ui #longLeaveDialog .employee-form-actions{gap:7px;flex-wrap:wrap}
 body.workspace-ui #longLeaveDialog .employee-form-actions button{min-height:38px;padding:8px 11px;font-size:12px;white-space:nowrap}
 body.workspace-ui #longLeaveDialog #clearLongLeave{margin-right:auto;background:transparent;border-color:transparent;color:var(--red-text)}
 #longLeaveDialog #longLeaveError:empty{display:none}
}
@media(max-width:380px){body.workspace-ui #longLeaveDialog .employee-form-body{padding-inline:16px}body.workspace-ui #longLeaveDialog .employee-form-actions{padding-inline:16px}}

@media(prefers-reduced-motion:reduce){.long-schedule-sheet-control{transition:none}}

/* Shared date calendar inside the modal's top layer. */
@media screen{
 body.workspace-ui #longLeaveDialog .schedule-date-field{display:grid;gap:7px;min-width:0}
 body.workspace-ui #longLeaveDialog .schedule-date-field>label{display:block;margin:0;font-size:12px;font-weight:400}
 body.workspace-ui #longLeaveDialog .schedule-date-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 80%,transparent);color:var(--text);font:400 14px var(--font);text-align:left;box-shadow:0 1px 2px #00000004}
 body.workspace-ui #longLeaveDialog .schedule-date-trigger svg{width:18px;height:18px;color:var(--muted);flex:none}
 body.workspace-ui #longLeaveDialog .schedule-date-trigger.is-empty{color:var(--muted)}
 body.workspace-ui #longLeaveDialog .schedule-date-trigger[aria-expanded=true]{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}
 body.workspace-ui #longLeaveDialog .schedule-date-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
 #longScheduleDatePicker{position:fixed;inset:auto;margin:0;width:304px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain;padding:14px;border:1px solid var(--floating-border);border-radius:18px;background:color-mix(in srgb,var(--surface) 90%,transparent);color:var(--text);box-shadow:0 14px 50px #00000026,inset 0 1px 0 color-mix(in srgb,var(--surface) 80%,transparent);backdrop-filter:blur(28px) saturate(150%);-webkit-backdrop-filter:blur(28px) saturate(150%);font:13px var(--font)}
 #longScheduleDatePicker .schedule-calendar-caption{margin:0 0 5px;padding:0 4px;color:var(--muted);font-size:11px;line-height:1.5}
 body.workspace-ui #longScheduleDatePicker button{display:flex;align-items:center;justify-content:center;min-width:0;width:auto;min-height:32px;padding:5px;border:0;border-radius:9px;background:transparent;color:var(--text);font:400 12px var(--font);box-shadow:none;transition:background .12s,color .12s}
 body.workspace-ui #longScheduleDatePicker button:hover:not(:disabled){background:var(--hover)}
 body.workspace-ui #longScheduleDatePicker button:disabled{opacity:.3;cursor:default}
 body.workspace-ui #longScheduleDatePicker button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
 #longScheduleDatePicker .schedule-calendar-head{display:flex;align-items:center;gap:3px;margin-bottom:10px}
 #longScheduleDatePicker .schedule-calendar-head>div{display:flex;flex:1;min-width:0;gap:1px}
 body.workspace-ui #longScheduleDatePicker [data-schedule-view]{gap:4px;padding:6px;font-weight:550;font-size:13px}
 #longScheduleDatePicker [data-schedule-view] svg{width:11px;height:11px;color:var(--muted)}
 body.workspace-ui #longScheduleDatePicker [data-schedule-view][aria-pressed=true]{background:var(--info-bg);color:var(--accent)}
 body.workspace-ui #longScheduleDatePicker [data-schedule-step]{flex:none;width:29px;height:30px;min-height:30px}
 #longScheduleDatePicker [data-schedule-step] svg{width:15px;height:15px}
 #longScheduleDatePicker .schedule-calendar-weekdays,#longScheduleDatePicker .schedule-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
 #longScheduleDatePicker .schedule-calendar-weekdays{margin-bottom:5px;color:var(--muted);font-size:10px;text-align:center}
 #longScheduleDatePicker .schedule-calendar-weekdays span{padding:4px 0}
 body.workspace-ui #longScheduleDatePicker [data-schedule-day]{aspect-ratio:1;min-height:32px;padding:0;border-radius:50%;font-size:12px;font-variant-numeric:tabular-nums}
 body.workspace-ui #longScheduleDatePicker [data-schedule-day].outside-month{color:var(--muted);opacity:.5}
 body.workspace-ui #longScheduleDatePicker [aria-current=date]{box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent)}
 body.workspace-ui #longScheduleDatePicker :is([data-schedule-day],[data-schedule-month],[data-schedule-year])[aria-pressed=true]{background:var(--accent);color:var(--on-primary);opacity:1;font-weight:550}
 #longScheduleDatePicker .schedule-calendar-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:7px 0;min-height:222px}
 body.workspace-ui #longScheduleDatePicker .schedule-calendar-choices button{min-height:40px;font-size:12px}
 #longScheduleDatePicker .schedule-calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:9px;border-top:1px solid var(--line)}
 body.workspace-ui #longScheduleDatePicker .schedule-calendar-footer button{padding:6px 9px;font-size:12px;color:var(--accent)}
 @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){#longScheduleDatePicker{background:var(--surface)}}
}
@media(prefers-reduced-motion:reduce){#longScheduleDatePicker button{transition:none!important}}
@media screen{body.workspace-ui #longLeaveDialog .schedule-date-trigger[aria-invalid=true]{border-color:var(--red-text)}}
@media print{#longScheduleDatePicker{display:none!important}}
