/* UI-20261103-014: only the existing leave form overlay, no new form or workflow. */
@media screen{
html body.leave-style #leave-modal{padding:18px;background:rgba(26,50,72,.28);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body.leave-style #leave-modal>.modal{width:min(760px,100%)!important;max-width:100%;padding:0!important;overflow:hidden!important;border:1px solid #91b5d1!important;border-radius:22px!important;background:linear-gradient(155deg,#fff 85%,#f8fbff)!important;box-shadow:inset 0 1px 0 #fff,0 18px 56px #173a5c33!important;box-sizing:border-box}
html body.leave-style #leave-modal #leave-form{padding:0!important;max-height:calc(100dvh - 40px);min-height:0;display:flex;flex-direction:column}
html body.leave-style #leave-modal .modal-head{align-items:center;gap:12px;margin:0!important;padding:16px 20px!important;border-bottom:1px solid #caddeb;background:linear-gradient(145deg,#fff,#f2f8fd);flex:none}
html body.leave-style #leave-modal #form-mode{display:none}
html body.leave-style #leave-modal #form-title{font-size:21px;line-height:1.3;margin:0;color:#173f5c}
html body.leave-style #leave-modal .modal-head .close-modal{border-radius:50%!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;flex:none;border:1px solid #b2cce0!important;background:#fff!important;color:#3e6685!important;box-shadow:inset 0 1px 0 #fff,0 2px 5px #244f7412!important}
html body.leave-style #leave-modal .leave-form-scroll{padding:14px 20px 16px!important;overflow-y:auto;min-height:0;scrollbar-gutter:stable;overscroll-behavior:contain;scroll-padding-block:12px;box-sizing:border-box}
html body.leave-style #leave-modal .leave-start-guide{display:none}
html body.leave-style #leave-modal #leave-live-checks{margin:0 0 13px;padding:9px 12px;border:1px solid #bed3e4;border-radius:12px;background:#f5f9fd;line-height:1.55;font-size:12px;color:#486982}
html body.leave-style #leave-modal #leave-live-checks p{margin:2px 0}
html body.leave-style #leave-modal #leave-live-checks.has-error{border-color:#d9a0ab;background:#fff9fa}
html body.leave-style #leave-modal #leave-live-checks .check-error{color:#a33247;font-weight:650}
html body.leave-style #leave-modal #leave-live-checks .check-balance{font-weight:600;color:#456382}
html body.leave-style #leave-modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
html body.leave-style #leave-modal .form-grid>label{font-size:12px;font-weight:650;gap:5px;min-width:0;margin:0}
html body.leave-style #leave-modal .form-grid>label>span{font-weight:650;color:#496b84}
html body.leave-style #leave-modal .form-grid small{font-size:11px;font-weight:400;line-height:1.5;color:#71879a;overflow-wrap:anywhere}
html body.leave-style #leave-modal .form-grid small:empty{display:none}
html body.leave-style #leave-modal :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){width:100%;min-width:0;max-width:100%;box-sizing:border-box;border:1px solid #abc7dd!important;border-radius:10px!important;background:#fff!important;padding:7px 10px!important;min-height:37px;font-size:13px!important;color:#25465e!important;box-shadow:inset 0 1px 2px #244f7405!important}
html body.leave-style #leave-modal textarea{min-height:66px;resize:vertical}
html body.leave-style #leave-modal :is(input,select,textarea):focus-visible{outline:2px solid #448cbd!important;outline-offset:2px;border-color:#83b2d3!important}
html body.leave-style #leave-modal #duration-unit-wrap:not(.hidden):not([hidden]){grid-column:1/-1;display:grid;grid-template-columns:74px 115px minmax(0,1fr);align-items:center;gap:10px}
html body.leave-style #leave-modal .day-result{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px 14px;border:1px solid #bcd3e5;border-radius:12px;background:#f5f9fd;padding:9px 12px;min-height:0}
html body.leave-style #leave-modal .day-result strong{font-size:23px;line-height:1.2;color:#285b82;margin:0}
html body.leave-style #leave-modal .day-result :is(span,small){font-size:11px;color:#607e94}
html body.leave-style #leave-modal .day-result p{margin:0;font-size:11px;line-height:1.45;color:#6d8396}
html body.leave-style #leave-modal label:has(#spring-festival){padding:8px 10px;border:1px solid #d0dfea;border-radius:10px;background:#fafcfe;box-sizing:border-box}
html body.leave-style #leave-modal label:has(#spring-festival)>span{display:flex;align-items:center;gap:7px}
html body.leave-style #leave-modal input[type=checkbox]{width:16px!important;height:16px;flex:none;margin:0;accent-color:#397cae}
html body.leave-style #leave-modal #leave-attachments{font-size:12px;color:#6a8195;max-width:100%}
html body.leave-style #leave-modal input[type=file]::file-selector-button{border:1px solid #abc7dd;border-radius:9px;padding:6px 12px;background:#f6faff;color:#346788;font-size:12px;min-height:34px}
html body.leave-style #leave-modal #form-error{border:1px solid #d8a9b1;border-radius:10px;padding:8px 10px;background:#fff7f8;color:#a33247;font-size:12px}
html body.leave-style #leave-modal #leave-form>.modal-actions{margin:0!important;padding:12px 20px!important;display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #c8dce9;background:#fcfdff;flex:none}
html body.leave-style #leave-modal .modal-actions button{min-width:104px;min-height:36px;height:auto;border-radius:10px!important;border:1px solid #abc7dd!important;padding:7px 15px!important;font-size:13px!important;box-shadow:inset 0 1px 0 #fff,0 2px 5px #244f740c!important;background:#fff!important;color:#426580!important}
html body.leave-style #leave-modal .modal-actions #submit-leave{background:#e5f1fc!important;border-color:#82add0!important;color:#145c92!important;font-weight:700}
html body.leave-style #leave-modal .modal-actions #submit-leave:disabled{background:#eef2f6!important;color:#8295a5!important;border-color:#d1dce5!important;box-shadow:none!important}
@media(max-width:600px){html body.leave-style #leave-modal{padding:9px}html body.leave-style #leave-modal>.modal{border-radius:18px!important}html body.leave-style #leave-modal #leave-form{max-height:calc(100dvh - 20px)}html body.leave-style #leave-modal .modal-head{padding:13px 14px!important}html body.leave-style #leave-modal .leave-form-scroll{padding:12px 14px!important}html body.leave-style #leave-modal #leave-form>.modal-actions{padding:10px 14px!important}html body.leave-style #leave-modal .form-grid{gap:11px;grid-template-columns:repeat(2,minmax(0,1fr))}html body.leave-style #leave-modal .form-grid>label:has(#leave-type),html body.leave-style #leave-modal .form-grid>label:has(#leave-source-code){grid-column:1/-1}html body.leave-style #leave-modal #duration-unit-wrap:not(.hidden):not([hidden]){grid-template-columns:65px minmax(0,1fr)}html body.leave-style #leave-modal #duration-policy-help{grid-column:1/-1}html body.leave-style #leave-modal .form-grid>label.full{grid-column:1/-1}html body.leave-style #leave-modal :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){min-height:42px}html body.leave-style #leave-modal .modal-actions button{min-height:42px;min-width:100px}}
@media(max-width:520px){html body.leave-style #leave-modal #leave-form .form-grid{grid-template-columns:minmax(0,1fr)!important}html body.leave-style #leave-modal .form-grid>*{grid-column:1!important}}
}
@media screen{
html body.leave-style #leave-modal label.full:is(:has(#leave-note),:has(#leave-attachments)){grid-template-columns:auto minmax(0,1fr);column-gap:6px}
html body.leave-style #leave-modal label.full:is(:has(#leave-note),:has(#leave-attachments))>span:first-child{grid-area:1/1}
html body.leave-style #leave-modal label.full:is(:has(#leave-note),:has(#leave-attachments))>span:nth-child(2){grid-area:1/2;justify-self:start;font-size:11px;font-weight:400;color:#7a8d9d}
html body.leave-style #leave-modal label.full:is(:has(#leave-note),:has(#leave-attachments))>:not(span){grid-column:1/-1}
}
