:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#14223b;background:#edf2f9}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.65}.desktop-shell{min-height:100dvh;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.card-preview{background:#fff;width:360px;border-radius:18px;box-shadow:0 14px 65px #162a511b;min-height:600px;overflow:hidden;align-self:center}.headbar{background:#deebff;padding:20px;font-weight:800;color:#0063ed;font-size:16px}.headbar span{float:right;font-weight:500;color:#92a0b5;font-size:12px}.prev-date{text-align:center;padding:20px}.branch-preview{margin:12px 16px;border:1px solid #ebeff5;border-radius:10px;padding:18px}.branch-preview span{float:right;font-size:11px;color:#11a369}.branch-preview p{font-weight:700}.branch-preview small{color:#4b607d}.prev-pill{margin-top:20px;padding:12px;border-radius:28px;background:#f0f2f6;text-align:center;color:#1670ea;font-weight:700}.shade{position:absolute;inset:0;background:#182c49a6;backdrop-filter:blur(3px)}.sheet{position:relative;background:white;max-width:480px;width:100%;height:min(94vh,950px);height:min(94dvh,950px);border-radius:24px;box-shadow:0 20px 70px #12274445;display:flex;flex-direction:column;overflow:hidden}.grip{width:40px;height:4px;background:#d7dfeb;border-radius:8px;align-self:center;margin:12px 0 0}header{display:flex;align-items:center;justify-content:space-between;padding:22px 24px 12px}h1{font-size:22px;letter-spacing:-.7px;margin:6px 0}header p{margin:0;color:#63748c;font-size:13px}.eyebrow{font-size:10px;letter-spacing:1.2px;color:#0074ef;font-weight:800}.xbutton{background:#f0f4f9;color:#62728a;border:0;width:34px;height:34px;border-radius:50%;font-size:26px;line-height:1}.banner{padding:11px 15px;background:#f4f8ff;color:#557091;font-size:12px;margin:6px 24px 16px;border-radius:10px}.dot{display:inline-block;background:#27b96a;width:7px;height:7px;border-radius:100%;margin-right:7px}.selectors{display:flex;gap:14px;padding:0 24px 16px}.selectors label{font-size:12px;color:#68809b;display:flex;flex:1;flex-direction:column;gap:6px;font-weight:600}.selectors select,.selectors input{width:100%;border-radius:10px;border:1px solid #dae4f1;padding:9px 10px;background:#fff;color:#243950;font-size:14px;outline-color:#1677ff}.version{padding:9px 24px 12px;font-size:12px;color:#6d7e93;border-top:1px solid #e8edf4}.employees{overflow:auto;flex:1;padding:0 24px 8px}.employee{padding:17px 0 20px;border-bottom:1px solid #e8edf4}.person{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;font-size:15px}.person strong{font-size:15px}.person span{color:#0b74ef;font-weight:700}.choices{display:flex;gap:9px}.choices button{flex:1;padding:12px 5px;border:1px solid #e6ecf5;border-radius:11px;background:#f3f6fa;font-weight:700;color:#1174eb;transition:.15s}.choices button[aria-pressed=true]{background:#e6f0ff;border:1.5px solid #1677ff;color:#0565d6;box-shadow:0 0 0 2px #1677ff0a}.reason{width:100%;border:1px solid #e0e7f1;background:#fff;border-radius:11px;margin-top:12px;padding:11px 13px;font-size:13px;color:#14223b;outline-color:#1677ff}.reason::placeholder{color:#a9b7c8}.footer{padding:17px 24px 18px;box-shadow:0 -6px 22px #15345b0b;background:#fff}.total{display:flex;justify-content:space-between;padding-bottom:15px;font-weight:700;font-size:14px}.total strong{color:#126fff;font-size:21px}.actions{display:flex;gap:11px}.actions button{padding:13px;border-radius:12px;border:0;font-weight:800;font-size:14px}.cancel{background:#edf1f6;color:#52657e;min-width:115px}.confirm{background:#1677ff;color:#fff;flex:1;box-shadow:0 6px 18px #176eff31}.hint{color:#8393a7;font-size:11px;margin:12px 0 0;text-align:center}#notice{margin:8px 0 0;color:#0a8f53;font-size:12px;text-align:center;min-height:17px}#notice.error{color:#d0474b}@media(max-width:620px){.desktop-shell{align-items:flex-end;min-height:100dvh}.card-preview{position:absolute;inset:0;width:auto;min-height:100%;border-radius:0}.shade{background:#15284490}.sheet{height:83dvh;max-width:none;border-radius:22px 22px 0 0;box-shadow:0 -6px 30px #172c5437}.grip{margin-top:9px}header{padding-top:12px}h1{font-size:20px}.banner{margin-bottom:11px}.employee{padding:13px 0 15px}.employees{padding-bottom:15px}.reason{margin-top:9px}}
/* DingTalk is itself a half-panel; do not draw another nested 83% sheet inside it. */
html.embedded,html.embedded body{height:100%;background:#fff}
html.embedded .desktop-shell{min-height:100dvh;max-height:100dvh;display:block;overflow:hidden}
html.embedded .card-preview,html.embedded .shade{display:none}
html.embedded .sheet{height:100dvh;max-height:100dvh;width:100%;max-width:none;border-radius:0;box-shadow:none}
html.embedded .grip{display:none}
html.embedded header{padding-top:14px}
html.embedded .banner{margin-top:2px}
html.embedded .footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}
/* Ensure small mobile heights keep the employee list scrollable. */
@media(max-width:620px){html.embedded .sheet{height:100dvh;border-radius:0}html.embedded .desktop-shell{min-height:100dvh}}
