.leave-request-dialog{width:min(780px,94vw);max-width:780px}.leave-request-dialog #modal-form{display:flex;flex-direction:column;gap:18px}.leave-request-dialog .form-actions{margin-top:0}.lv-request-section{min-width:0;border:1px solid var(--border);border-radius:12px;padding:17px;background:#fff}.lv-request-section h3{margin-bottom:13px}.lv-request-section .form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px}.lv-request-section .field{min-width:0;margin:0}.lv-request-section select{min-width:0;max-width:100%}.lv-request-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:12px}.lv-request-summary p{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}.lv-request-summary strong{font-size:13px;color:#30445c;overflow-wrap:anywhere}.lv-request-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eef7f3;border-radius:9px;padding:13px 15px;margin-top:13px;font-size:12px;color:#50786c}.lv-request-balance strong{font-size:20px;color:#13785d;white-space:nowrap}.lv-request-balance small{display:block;margin-top:5px;line-height:1.5}.lv-request-section p.dialog-copy{margin-top:10px;line-height:1.7}.lv-approver-row{display:flex;align-items:end;gap:8px;margin-bottom:10px}.lv-approver-row .field{flex:1}.lv-approver-row .button{min-height:39px;flex-shrink:0}.lv-routing-controls{display:flex;align-items:end;gap:8px;margin-top:12px}.lv-routing-controls .field{flex:1}.lv-reference-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.lv-reference-chip{display:inline-flex;align-items:center;gap:7px;background:#f1f5fc;border:1px solid #e0e8f4;border-radius:8px;padding:5px 7px;font-size:12px;max-width:100%;overflow-wrap:anywhere}.lv-reference-chip .button{padding:3px 5px;min-width:0;font-size:10px}.lv-request-quote .inline-note{margin:12px 0 0;white-space:pre-line}.lv-request-quote .button{min-height:39px}.lv-request-warning{color:#ba5b55;font-size:12px;line-height:1.6;margin-top:10px}.lv-routing-detail{border:1px solid var(--border);border-radius:12px;padding:16px;margin:16px 0;min-width:0}.lv-routing-detail h3{margin-bottom:12px}.lv-routing-people{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:12px}.lv-routing-steps{list-style:none;padding:0;margin:14px 0;display:flex;flex-direction:column;gap:7px}.lv-routing-steps li{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid #e7edf5;border-radius:8px;min-width:0}.lv-routing-steps li>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.lv-routing-steps small{display:block;margin-top:4px}.lv-step-number{font-size:11px;color:#537bb7;background:#edf3ff;padding:5px 7px;border-radius:5px;white-space:nowrap}.lv-routing-reference{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.lv-routing-reference span{display:block;color:var(--muted)}.leave-request-dialog [hidden]{display:none!important}.leave-request-dialog .form-error{margin:0}.leave-request-detail-dialog{width:min(1080px,94vw);max-width:1080px}.leave-request-detail-dialog .lv-detail-copy{line-height:1.9;margin:12px 0;overflow-wrap:anywhere}
@media(max-width:600px){.leave-request-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:16px}.lv-request-section{padding:13px}.lv-request-section .form-grid{grid-template-columns:minmax(0,1fr)}.lv-request-summary{grid-template-columns:minmax(0,1fr)}.lv-request-balance strong{font-size:18px}.lv-routing-controls{align-items:end}.lv-approver-row .button{padding-left:8px;padding-right:8px}.lv-routing-steps li{padding:9px 7px;gap:7px}.lv-routing-steps .badge{font-size:9px;padding:4px 5px}}
.lv-substitute-filters{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px;margin:12px 0}.lv-substitute-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lv-substitute-option{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:8px;padding:10px;min-width:0;cursor:pointer}.lv-substitute-option:has(input:checked){border-color:#2163f0;background:#f0f5ff}.lv-substitute-option input{width:16px;height:16px;flex:none}.lv-substitute-option span{min-width:0;overflow-wrap:anywhere}.lv-substitute-option small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.lv-report-toolbar{flex-wrap:wrap;gap:8px;margin:12px 0}.lv-report-toolbar .muted{margin-right:auto}.leave-ledger-dialog{width:min(1180px,96vw);max-width:1180px}.leave-ledger-dialog .table-wrap{max-height:58vh;overflow:auto}.leave-ledger-dialog table{font-size:12px}.leave-ledger-dialog td{white-space:normal;overflow-wrap:anywhere}.leave-ledger-dialog td:first-child{min-width:96px}.leave-ledger-dialog td:last-child{min-width:180px}.leave-settings-dialog .panel .button{margin:4px 4px 4px 0}
@media(max-width:600px){.lv-substitute-filters,.lv-substitute-list{grid-template-columns:minmax(0,1fr)}.lv-report-toolbar .muted{width:100%}.leave-ledger-dialog{width:calc(100vw - 20px);padding:14px}.leave-ledger-dialog .lv-cards{grid-template-columns:minmax(0,1fr)}}
.lv-list-section{display:block;clear:both;min-width:0;margin-top:24px}.lv-list-section+.lv-list-section{margin-top:28px}.lv-list-section>h3{margin:0 0 12px;line-height:1.5}.lv-list-section>.card{margin:0}.lv-list-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;min-width:0;margin-top:12px;position:static}.lv-pagination{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:9px;font-size:12px;color:var(--muted)}.lv-list-footer .lv-report-toolbar{display:flex;justify-content:flex-end;align-items:center;flex:1 1 auto;flex-wrap:wrap;gap:8px;width:auto;margin:0 0 0 auto;min-width:0}.lv-report-toolbar .review-export-button{white-space:nowrap}.lv-request-actions{display:table-cell;vertical-align:middle;text-align:center}.lv-request-actions .lv-inline-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;min-width:140px}.lv-request-submitted{white-space:nowrap;text-align:center}.lv-list-section--requests th:last-child,.lv-list-section--cancellations th:last-child{text-align:center}
@media(max-width:600px){.lv-list-section{margin-top:22px}.lv-list-footer{align-items:flex-start;gap:10px}.lv-list-footer .lv-report-toolbar{flex-basis:100%;justify-content:flex-end}.lv-pagination{width:100%}.lv-request-actions .lv-inline-actions{min-width:128px}}

/* Individual leave dates and the server-confirmed balance stay above the reason. */
.leave-request-dialog .lv-date-calendar{margin-top:16px;min-width:0}
.leave-request-dialog .lv-date-toolbar{display:grid;grid-template-columns:40px minmax(0,1fr) 40px auto;align-items:center;gap:8px;margin-bottom:14px}
.leave-request-dialog .lv-date-toolbar .button{height:40px;min-height:40px;padding:7px 11px;margin:0;white-space:nowrap}
.leave-request-dialog .lv-date-month-button{font-size:24px;line-height:1}
.leave-request-dialog .lv-date-month{display:block;min-width:0;margin:0}
.leave-request-dialog .lv-date-month input{width:100%;min-width:0;height:40px;text-align:center;font-size:14px;font-weight:600}
.leave-request-dialog .lv-date-weekdays,.leave-request-dialog .lv-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.leave-request-dialog .lv-date-weekdays{margin-bottom:6px;font-size:11px;color:var(--muted);text-align:center}
.leave-request-dialog .lv-date-weekdays span{padding:6px 0}
.leave-request-dialog .lv-date-day,.leave-request-dialog .lv-date-empty{min-width:0;height:42px}
.leave-request-dialog .lv-date-day{border:1px solid #e4eaf2;background:#fff;border-radius:8px;font:inherit;font-size:13px;color:#30445c;cursor:pointer;position:relative;padding:6px}
.leave-request-dialog .lv-date-day:hover:not(:disabled){border-color:#81a7ed;background:#f3f7ff}
.leave-request-dialog .lv-date-day.is-sunday{color:#b44d55}
.leave-request-dialog .lv-date-day.is-saturday{color:#326db8}
.leave-request-dialog .lv-date-day.is-selected{background:#2163f0;border-color:#2163f0;color:#fff;font-weight:700;box-shadow:0 2px 5px #2163f01f}
.leave-request-dialog .lv-date-day[aria-current=date]::after{content:'';position:absolute;bottom:5px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:currentColor}
.leave-request-dialog .lv-date-day:disabled{opacity:.36;cursor:not-allowed;background:#f7f8fa}
.leave-request-dialog .lv-date-day:focus-visible,.leave-request-dialog .lv-selected-date:focus-visible{outline:2px solid #174fc5;outline-offset:2px}
.leave-request-dialog .lv-date-help{font-size:11px}
.leave-request-dialog .lv-selected-dates{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:12px;min-height:30px}
.leave-request-dialog .lv-selected-date{display:inline-flex;align-items:center;gap:9px;max-width:100%;min-height:32px;padding:5px 9px;border:1px solid #d9e5ff;border-radius:7px;background:#f1f5ff;color:#234c8d;font-size:12px;cursor:pointer}
.leave-request-dialog .lv-selected-date span{font-size:16px;line-height:1;color:#5d78a2}
.leave-request-dialog .lv-request-impact{min-width:0;border:1px solid #dbe6f5;border-radius:12px;padding:16px;background:#f8faff}
.leave-request-dialog .lv-request-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}
.leave-request-dialog .lv-request-totals .lv-card{margin:0;min-width:0;padding:14px 12px;border:1px solid #e0e8f4;border-radius:10px;background:#fff;box-shadow:none;display:flex;flex-direction:column;gap:8px}
.leave-request-dialog .lv-request-totals .lv-card small{color:#62748b;font-size:11px;font-weight:600}
.leave-request-dialog .lv-request-totals .lv-card strong{font-size:22px;line-height:1.25;color:#244a82;overflow-wrap:anywhere}
.leave-request-dialog .lv-request-totals .lv-card:last-child{border-color:#bcd5fa;background:#edf5ff}
.leave-request-dialog .lv-request-totals .lv-card:last-child strong{color:#195ecf}
.leave-request-dialog .lv-request-totals .lv-card span{font-size:10px;line-height:1.6;color:#6c7c92;overflow-wrap:anywhere}
.leave-request-dialog .lv-request-impact>.dialog-copy{margin:12px 0;font-size:11px;line-height:1.7}
.leave-request-dialog .lv-request-impact .lv-request-quote{display:flex;align-items:flex-start;gap:10px;min-width:0}
.leave-request-dialog .lv-request-impact .lv-request-quote>.button{flex:none;min-height:36px;margin:0}
.leave-request-dialog .lv-request-impact .lv-request-quote>.inline-note{flex:1;min-width:0;margin:0;padding:9px 11px;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){
 .leave-request-dialog .lv-date-toolbar{grid-template-columns:40px minmax(0,1fr) 40px}
 .leave-request-dialog .lv-date-toolbar [data-lv-dates-clear]{grid-column:1/-1;justify-self:end}
 .leave-request-dialog .lv-date-weekdays,.leave-request-dialog .lv-date-grid{gap:4px}
 .leave-request-dialog .lv-date-day,.leave-request-dialog .lv-date-empty{height:38px}
 .leave-request-dialog .lv-request-impact{padding:12px}
 .leave-request-dialog .lv-request-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .leave-request-dialog .lv-request-totals .lv-card:first-child{grid-column:1/-1}
 .leave-request-dialog .lv-request-totals .lv-card{padding:12px 10px}
 .leave-request-dialog .lv-request-totals .lv-card strong{font-size:20px}
 .leave-request-dialog .lv-request-impact .lv-request-quote{flex-direction:column;gap:8px}
 .leave-request-dialog .lv-request-impact .lv-request-quote>.inline-note{width:100%}
}

.leave-request-dialog .lv-date-month .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
