/* 请假模块独立作用域，沿用现有蓝白液态玻璃变量，不改变登录与出差表单。 */
#leave-view,#leave-list-panel,#leave-editor-panel{display:flex;flex-direction:column;gap:13px;min-width:0}
.leave-heading{margin-bottom:0}.leave-heading .button{flex:none}
.leave-list-card{padding:14px 15px}.leave-record-list{max-height:calc(100vh - 240px);overflow:auto;border-radius:14px;background:rgba(236,245,252,.72);padding:8px}
.leave-record-row{display:flex;justify-content:space-between;align-items:center;gap:13px;width:100%;padding:13px 12px;border:0;border-radius:12px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:background 180ms}
.leave-record-row+.leave-record-row{border-top:1px solid var(--line)}.leave-record-row:hover{background:var(--surface-strong)}
.leave-record-main{min-width:0}.leave-record-main strong{font-size:16.5px;font-weight:680;overflow-wrap:anywhere}.leave-record-row small{display:block;margin-top:6px;color:var(--text-2);font-size:13.5px;line-height:1.5}
.leave-record-tail{flex:none;text-align:right}.leave-record-tail small{font-size:12px}
.leave-editor-heading{align-items:flex-start;flex-wrap:wrap}.leave-editor-heading h1{font-size:28px;line-height:1.4;letter-spacing:.02em}.leave-toolbar{display:flex;gap:8px;flex-wrap:wrap}.leave-toolbar .button{white-space:nowrap}
.leave-sheet{padding:20px 22px;background:var(--surface-strong)}.leave-template{width:100%;max-width:1000px;margin:0 auto;border-collapse:collapse;table-layout:fixed;background:var(--surface-strong);color:var(--text);font-size:15px;line-height:1.7}
.leave-template .leave-label-column{width:18%}.leave-template .leave-name-column{width:22%}.leave-template .leave-position-label-column{width:24%}.leave-template .leave-position-column{width:36%}
.leave-template th,.leave-template td{border:1px solid rgba(82,122,153,.4);padding:8px 10px;vertical-align:middle}
.leave-template th{font-size:15px;font-weight:680;text-align:center;background:var(--surface-soft);overflow-wrap:anywhere}.leave-template td{min-width:0}
.leave-template input:not([type=radio]),.leave-template textarea{min-width:0;max-width:100%;background:var(--control);font-size:16.5px}
.leave-template .leave-identity-row input{text-align:center}.leave-template textarea{line-height:1.65;min-height:180px;resize:vertical}
.leave-choices{display:flex;flex-wrap:wrap;gap:3px 15px;padding:4px 0}.leave-choices label{display:inline-flex;align-items:center;gap:7px;min-height:39px;font-size:15px;font-weight:400;cursor:pointer;white-space:nowrap}
.leave-choices input[type=radio]{width:17px;height:17px;min-height:0;padding:0;border-radius:50%;accent-color:var(--blue);flex:none;cursor:pointer}
.leave-dates{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.leave-dates input[type=date]{width:175px;flex:1 1 160px;padding:8px;font-variant-numeric:tabular-nums}.leave-date-separator{color:var(--text-2)}
.leave-day-count{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:15px}.leave-dates .leave-day-count input{width:66px;min-height:40px;padding:8px 4px;border-color:transparent;background:var(--blue-soft);color:var(--text);text-align:center;font-variant-numeric:tabular-nums}
.leave-paper-signature{display:flex;min-height:80px;flex-direction:column;justify-content:flex-end;gap:12px;padding:13px 9%;color:var(--text-2);font-size:14px}.leave-stamp{align-self:flex-end;margin-right:8%}.leave-signature-line{display:flex;justify-content:space-between;gap:13px}
.leave-comp-template .leave-paper-signature{min-height:140px}.leave-cancellation{padding:3px 0;color:var(--text-2);font-size:14px;line-height:1.9}.leave-cancellation p{margin:3px 0}.leave-cancellation-sign{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 15px}.leave-remarks-row{height:54px}
.leave-template-notes,.leave-copy-note{max-width:1000px;margin:14px auto 0;color:var(--text-2);font-size:13px;line-height:1.8}.leave-template-notes summary{cursor:pointer;min-height:39px;display:list-item;align-content:center;font-size:14px;font-weight:680}.leave-template-notes ol{padding-left:22px;margin:3px 0 0}.leave-copy-note{margin-bottom:0}
.leave-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:13px;min-height:20px}.leave-editor-footer span{margin-left:auto;color:var(--text-2);font-size:13.5px}.leave-history{padding:10px 15px}.leave-history summary{cursor:pointer;min-height:39px;align-content:center;font-size:15px;font-weight:680}.leave-history .event-list{margin-top:8px;max-height:260px}.leave-history .event p{overflow-wrap:anywhere}
#leave-message:empty{display:none}
.leave-scope-tabs{display:flex;gap:8px}.leave-scope-tabs button[aria-pressed=true]{background:var(--blue-soft);color:var(--blue);border-color:rgba(36,120,255,.16)}.leave-status-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.leave-flow-note{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);color:var(--text-2);font-size:14px;line-height:1.6}.leave-settings-card input{min-width:0}.leave-settings-card .near-status:empty{display:none}.leave-template input:disabled,.leave-template textarea:disabled{opacity:1;border-color:transparent;background:transparent;cursor:default}.leave-choices input:disabled{opacity:.7;cursor:default}
@media(max-width:1000px){.leave-editor-heading h1{font-size:26px}.leave-sheet{padding:15px 16px}.leave-template th,.leave-template td{padding:7px 8px}.leave-paper-signature{padding-left:4%;padding-right:4%}}
@media(max-width:760px){.leave-editor-heading h1{font-size:24px}.leave-heading h1{font-size:28px}.leave-toolbar{width:100%}.leave-toolbar .button{flex:1;padding:0 10px;font-size:14px}.leave-record-list{max-height:65vh}.leave-sheet{padding:12px}.leave-template{font-size:14px}.leave-template th{font-size:14px}.leave-dates{gap:6px}.leave-choices{gap:3px 12px}.leave-choices label{font-size:14px}.leave-template input:not([type=radio]),.leave-template textarea{font-size:16px}.leave-editor-footer{flex-wrap:wrap}.leave-record-tail small{max-width:100px}.leave-record-row{align-items:flex-start}.leave-record-row small{font-size:12px}}
@media(max-width:540px){.leave-template,.leave-template tbody{display:block}.leave-template caption,.leave-template colgroup{display:none}.leave-template tr{display:grid;grid-template-columns:100px minmax(0,1fr);border-top:1px solid rgba(82,122,153,.4);border-left:1px solid rgba(82,122,153,.4)}.leave-template tr:last-child{border-bottom:1px solid rgba(82,122,153,.4)}.leave-template th,.leave-template td{display:flex;flex-direction:column;justify-content:center;border:0;border-right:1px solid rgba(82,122,153,.4);padding:7px}.leave-template .leave-identity-row th:nth-child(3),.leave-template .leave-identity-row td:nth-child(4){border-top:1px solid rgba(82,122,153,.4)}.leave-choices{gap:3px 9px}.leave-choices label{font-size:13px;gap:5px}.leave-dates{display:grid;grid-template-columns:minmax(0,1fr)}.leave-dates input[type=date]{width:100%;flex:none}.leave-date-separator{text-align:center}.leave-day-count{justify-content:center}.leave-paper-signature{padding:10px 0;min-height:86px;font-size:12px}.leave-signature-line{flex-wrap:wrap;gap:7px}.leave-stamp{margin-right:0}.leave-comp-template .leave-paper-signature{min-height:120px}.leave-cancellation{font-size:12px;line-height:1.9}.leave-cancellation-sign{gap:5px}.leave-template textarea{min-height:180px}.leave-template-notes{font-size:12px}.leave-editor-heading h1{font-size:21px}.leave-record-row{gap:8px}.leave-record-tail small{display:none}.leave-heading .button{font-size:14px;padding:0 10px}}
@media print{#leave-view{display:none!important}}
@media(max-width:540px){.leave-status-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.leave-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.leave-toolbar .button{min-width:0;padding:0 7px}}
