/* Leave workspace presentation only. Existing controls, status, visibility and motion stay owned by their modules. */
@media screen {
body.leave-style{--ink:#16324e;--muted:#657d92;--line:#d8e2eb;--paper:#fff;--wash:#eef2f6;--blue:#0754b4;--blue-soft:#eaf2fa;background:#eef2f6!important;color:#16324e}
body.leave-style #app-shell .main{background:#eef2f6!important}
body.leave-style #app-shell .view{border:1px solid #cad6e1;border-radius:6px;background:#fff;margin:12px 0;padding:20px;min-width:0}
body.leave-style #app-shell .page-head{padding:0 0 18px;gap:12px;flex-wrap:wrap;align-items:center}
body.leave-style #app-shell .page-head h1{font-size:26px;line-height:1.35;letter-spacing:0;color:#16324e}
body.leave-style #app-shell .eyebrow{font-size:12px;color:#657d92;margin:0 0 6px}
body.leave-style #app-shell :is(.card,.panel,.review-card){background:#fff!important;border:1px solid #cddae5!important;border-radius:4px!important;box-shadow:none!important;backdrop-filter:none!important}
body.leave-style #app-shell :is(.card,.panel){min-width:0}
body.leave-style :is(#app-shell .main,#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#password-modal,#auth-modal,#image-preview-modal) :where(button,.export-actions a,.account-action):where(:not(.oa-close-control)){font-family:inherit!important;font-size:13px!important;line-height:1.35!important;min-height:32px;padding:6px 12px!important;border:1px solid #cddde9!important;border-radius:4px!important;background:#fff!important;color:#16324e!important;box-shadow:none!important;text-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;white-space:nowrap;word-break:keep-all;flex-shrink:0;transform:none!important}
body.leave-style :is(#app-shell .main,#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#password-modal,#auth-modal) :is(button,.export-actions a):where(:not(.oa-close-control)):hover:not(:disabled){filter:brightness(.97)}
body.leave-style :is(#app-shell .main,#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#password-modal,#auth-modal) :is(button,.export-actions a):focus-visible{outline:2px solid #2978cb!important;outline-offset:2px}
body.leave-style :is(#app-shell .main,#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#password-modal,#auth-modal) button:disabled{background:#f0f3f6!important;color:#657d92!important;border-color:#e0e6eb!important;opacity:1!important;cursor:default}
body.leave-style :is(#app-shell .main,#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#password-modal,#auth-modal) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea){font-family:inherit!important;font-size:13px!important;line-height:1.4;border:1px solid #cddde9!important;border-radius:4px!important;background:#fff!important;color:#16324e!important;box-shadow:none!important;min-height:34px;padding:6px 9px;max-width:100%;box-sizing:border-box}
body.leave-style :is(#app-shell .main,#leave-modal,#detail-modal,#note-modal,#confirmation-modal) :is(input,select,textarea):focus-visible{outline:2px solid #2978cb;outline-offset:2px}
body.leave-style :is(#app-shell .main,#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#auth-modal,#password-modal) .primary-button{background:#0754b4!important;color:#fff!important;border-color:#0754b4!important}
/* Retain the shared red / yellow / green action meanings without the glass effect. */
body.leave-style :is(#app-shell .main,#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#password-modal) :is(.danger-button,.danger,.oa-action-cancel,.danger-action){background:#fff0f2!important;color:#9f2f40!important;border-color:#dfb0ba!important}
body.leave-style :is(#app-shell .main,#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#password-modal) :is(.oa-action-withdraw,.return){background:#fff5df!important;color:#805116!important;border-color:#dcc18d!important}
body.leave-style :is(#app-shell .main,#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#password-modal) .oa-action-confirm{background:#e8f4ec!important;color:#205e47!important;border-color:#9dc7af!important}
/* Month view: quiet bands and compact entries, with original status colours. */
body.leave-style #app-shell .dashboard-grid{grid-template-columns:minmax(0,1fr) 250px;gap:16px}
body.leave-style #app-shell .calendar-card{padding:0 12px 12px;overflow:hidden}
body.leave-style #app-shell .calendar-toolbar{margin:0 -12px 0;padding:9px 12px;background:#eaf1f7;border-bottom:1px solid #cddae5}
body.leave-style #app-shell .calendar-toolbar strong{font-size:15px}
body.leave-style #app-shell .calendar-toolbar button{min-width:32px;width:32px;height:32px;padding:0!important;font-size:22px!important}
body.leave-style #app-shell .weekday-row{padding:10px 0;background:#f7f9fb;font-size:12px}
body.leave-style #app-shell .day-cell{padding:6px;min-height:124px;border-color:#e1e9f0}
body.leave-style #calendar-grid :is(button.leave-bar,button.subordinate-summary){border-radius:3px!important;box-shadow:none!important;min-height:22px;height:22px;min-width:0;width:100%;padding:2px 5px!important;font-size:11px!important;line-height:1.3!important;text-align:left;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.leave-style #calendar-grid button.leave-bar.pending{background:#fff2dc!important;color:#9b610d!important;border-color:#e7c895!important}
body.leave-style #calendar-grid button.leave-bar.approved{background:#e6f3ed!important;color:#176367!important;border-color:#b6d6c8!important}
body.leave-style #calendar-grid button.leave-bar.returned{background:#fdeeee!important;color:#a64242!important;border-color:#e2b5bd!important}
body.leave-style #calendar-grid button.leave-bar.cancelled{background:#edf0f2!important;color:#74808b!important;border-color:#c7d4dc!important}
body.leave-style #calendar-grid button.subordinate-summary{background:#eaf2fa!important;color:#245c95!important;border-color:#bed3e6!important}
body.leave-style #calendar-grid button.subordinate-name.pending{border-left:3px solid #d58a22!important}
body.leave-style #calendar-grid button.subordinate-name.approved{border-left:3px solid #2c6dad!important}
body.leave-style #app-shell .calendar-legend{gap:12px;flex-wrap:wrap;padding-top:12px;font-size:12px}
body.leave-style #app-shell .summary-column{gap:12px}
body.leave-style #app-shell :is(.summary-card,.upcoming-card){padding:14px}
body.leave-style #app-shell .summary-card p{font-size:13px;margin:0 0 10px}
body.leave-style #app-shell .summary-card strong{font-size:28px}
body.leave-style #app-shell .section-title h2{font-size:14px}
body.leave-style #app-shell .table-card{padding:0!important;overflow:hidden}
/* Query, review and manager tabs share the announcement tab treatment. */
body.leave-style #app-shell :is(.leave-list-tabs,.manager-leave-tabs){gap:0;padding:0;margin:0 0 14px;flex-wrap:wrap;background:#f5f8fb;border:1px solid #d8e2eb;border-bottom-color:#bacbdc;border-radius:4px 4px 0 0}
body.leave-style #app-shell :is(.leave-list-tabs,.manager-leave-tabs) button{border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:transparent!important;min-height:40px;padding:8px 14px!important;font-weight:600}
body.leave-style #app-shell :is(.leave-list-tabs,.manager-leave-tabs) button:is(.active,[aria-pressed=true],[aria-selected=true]){background:#eaf2fa!important;color:#0754b4!important;border-bottom-color:#0754b4!important}
body.leave-style #app-shell .table-toolbar{background:#eaf1f7;border-bottom:1px solid #cddae5;padding:10px 12px;gap:10px;flex-wrap:wrap}
body.leave-style #app-shell .filters{gap:6px}
body.leave-style #app-shell .filters .filter.active{background:#e0ecf8!important;border-color:#8eb4d5!important;color:#0754b4!important}
body.leave-style #app-shell .history-query{margin:12px;gap:8px;align-items:flex-end;flex-wrap:wrap}
body.leave-style #app-shell .history-query label{font-size:12px;gap:5px}
body.leave-style #app-shell .history-query button{min-height:34px}
body.leave-style #app-shell #history-search-apply{background:#0754b4!important;color:white!important;border-color:#0754b4!important}
body.leave-style #app-shell :is(.leave-advanced-query,.leave-range-summary,.history-custom-dates){margin-left:12px;margin-right:12px}
body.leave-style #app-shell .leave-advanced-query{border-color:#d8e2eb}
body.leave-style #app-shell .leave-advanced-query summary{font-size:12px}
body.leave-style #app-shell .history-pagination{margin:0;padding:12px;border-top:1px solid #dde5ed;font-size:12px;gap:10px}
body.leave-style #app-shell #history-list .record-row{background:#fff!important;box-shadow:none!important;border:0!important;border-bottom:1px solid #dbe5ee!important;border-radius:0!important;padding:8px 10px!important;min-height:42px;font-size:13px!important}
body.leave-style #app-shell #history-list .record-row:hover{background:#eff5fa!important}
body.leave-style #app-shell .record-table{border-radius:0!important;box-shadow:none!important}
body.leave-style #app-shell .review-card{padding:14px;gap:10px}
body.leave-style #app-shell .review-card h2{font-size:15px}
body.leave-style #app-shell .review-actions{gap:8px}
/* Supervisor transport, reports and Gantt keep their own structures and scrolling. */
body.leave-style #app-shell .leave-embedded .panel{padding:14px;margin-top:12px}
body.leave-style #app-shell .leave-embedded .panel-head{gap:12px;margin-bottom:14px}
body.leave-style #app-shell .leave-embedded .panel-head h2{font-size:15px}
body.leave-style #app-shell :is(.transport-controls,.report-range-controls,.gantt-pan-controls){padding:10px 12px;border:1px solid #d8e2eb;border-radius:4px;background:#f7f9fb;gap:8px}
body.leave-style #app-shell .transport-controls input[type=search]{flex:1 1 220px;width:auto;min-width:180px}
body.leave-style #app-shell .transport-controls select{flex:0 1 240px;width:auto;min-width:200px}
body.leave-style #app-shell #manager-transport-app .panel>p{font-size:13px;line-height:1.6;color:#657d92}
body.leave-style #app-shell #manager-transport-app table{font-size:13px}
body.leave-style #app-shell :is(#manager-transport-app,.leave-embedded) th{background:#eaf1f7;color:#36566f;font-size:12px;padding:9px 10px}
body.leave-style #app-shell :is(#manager-transport-app,.leave-embedded) td{font-size:13px;padding:9px 10px;border-bottom-color:#dbe5ee}
body.leave-style #app-shell .leave-embedded :is(.report-name,.report-date){font-size:13px}
body.leave-style #app-shell #manager-transport-app .transport-form{border:1px solid #cddae5;border-radius:4px;background:#f7f9fb}
body.leave-style #app-shell .gantt-month{padding:14px;margin:12px 0}
body.leave-style #app-shell .gantt-month h2{font-size:15px}
/* Timeline bars are data marks, not white workspace buttons. */
body.leave-style #app-shell #manager-gantt-view button.gantt-bar{height:22px!important;min-height:22px!important;min-width:0!important;min-inline-size:0!important;padding:0!important;line-height:20px!important;font-size:11px!important;border-radius:4px!important;background:#278469!important;border:1px solid #17694f!important;color:#fff!important;box-shadow:none!important;transform:none!important;transition:none!important;filter:none!important}
body.leave-style #app-shell #manager-gantt-view button.gantt-bar.gantt-trip{background:#286fb5!important;border-color:#19558e!important;color:#fff!important}
body.leave-style #app-shell #manager-gantt-view button.gantt-bar:hover{background:#1d7158!important}
body.leave-style #app-shell #manager-gantt-view button.gantt-bar.gantt-trip:hover{background:#1e5e9b!important}
body.leave-style #app-shell #manager-gantt-view .legend-leave{background:#278469;border-color:#17694f}
body.leave-style #app-shell #manager-gantt-view .legend-trip{background:#286fb5;border-color:#19558e}
body.leave-style #app-shell #manager-gantt-view .gantt-tracks{background:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / var(--days) - 1px),#ccdfec calc(100% / var(--days) - 1px),#ccdfec calc(100% / var(--days)))}
/* Reuse the confirmation dialog for a scannable application summary. */
body.leave-style #confirmation-modal:has(.leave-confirm-summary) .modal{width:min(640px,100%);max-height:calc(100dvh - 32px);overflow-y:auto}
body.leave-style .leave-confirm-summary{margin:0;white-space:normal;font-size:13px;border:1px solid #d8e2eb;border-radius:4px}
body.leave-style .leave-confirm-summary>div{display:grid;grid-template-columns:94px minmax(0,1fr);border-bottom:1px solid #d8e2eb}
body.leave-style .leave-confirm-summary>div:last-child{border-bottom:0;background:#edf4fa}
body.leave-style .leave-confirm-summary dt{padding:9px 10px;background:#f3f7fa;color:#536c80}
body.leave-style .leave-confirm-summary dd{margin:0;padding:9px 10px;color:#213c50;white-space:pre-wrap;overflow-wrap:anywhere}
body.leave-style .leave-submission-time{display:block;margin-top:5px;font-size:11px;color:#536c80;font-weight:400;line-height:1.5}
body.leave-style #app-shell #history-list .record-progress{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 8px;align-items:center;white-space:normal}
body.leave-style #app-shell #history-list .record-progress .leave-submission-time{grid-column:1/-1;margin:0;white-space:normal}
/* Workflow messages must remain readable for long names and returned requests. */
body.leave-style #app-shell #history-list .record-progress .leave-next-step{min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5}
body.leave-style #detail-content :is(.oa-detail-summary,.timeline-item,.detail-note){min-width:0;overflow-wrap:anywhere;white-space:normal}
body.leave-style #detail-content .oa-detail-summary p{line-height:1.5;margin:8px 0}
body.leave-style #detail-content .timeline-item time{line-height:1.5;margin-bottom:4px}
body.leave-style #leave-live-checks{padding:9px 11px;margin:0 0 12px;border:1px solid #cddde9;border-radius:4px;background:#f3f7fa;font-size:12px;line-height:1.6;color:#36566f;overflow-wrap:anywhere}
body.leave-style #leave-live-checks p{margin:2px 0}
body.leave-style #leave-live-checks.has-error{border-color:#e7b9b9}
body.leave-style #leave-live-checks .check-error{color:#a73232}
body.leave-style #leave-live-checks .check-warning{color:#8a5a20}
body.leave-style #leave-live-checks .check-balance{font-weight:600}
body.leave-style #leave-form .leave-return-guidance{padding:11px 12px;margin:0 0 12px;border:1px solid #cddde9;border-left:3px solid #c58b3a;border-radius:4px;background:#f3f7fa;color:#36566f;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
body.leave-style #leave-form .leave-return-guidance h3{font-size:14px;color:#8a5a20;margin:0 0 6px}
body.leave-style #leave-form .leave-return-guidance p{margin:5px 0}
body.leave-style #leave-form .leave-return-guidance .leave-return-reason{white-space:pre-wrap;color:#213c50;font-weight:600}
body.leave-style #leave-form .leave-return-guidance .leave-return-meta{font-size:11px;color:#536c80}
/* Existing overlay geometry and Genie animation remain intact. */
body.leave-style :is(#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#password-modal,#auth-modal) .modal{background:#fff!important;border:1px solid #cddae5!important;border-radius:6px!important;box-shadow:0 18px 52px #18365033!important;backdrop-filter:none!important}
body.leave-style :is(#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#password-modal,#auth-modal) .modal-head{margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #d8e2eb}
body.leave-style :is(#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#password-modal,#auth-modal) h2{font-size:20px}
body.leave-style #leave-form .form-grid{gap:12px}
body.leave-style #leave-form label{font-size:13px;gap:5px;min-width:0}
body.leave-style :is(#leave-modal,#detail-modal) :is(.leave-start-guide,.day-result,.detail-meta>div,.detail-note,.leave-flight-panel){background:#f7f9fb;border:1px solid #d8e2eb;border-radius:4px;box-shadow:none}
body.leave-style :is(#leave-modal,#detail-modal) :is(.modal-actions,.detail-actions,.flight-actions){gap:8px}
body.leave-style :is(#leave-modal,#detail-modal) input[type=file]::file-selector-button{font:inherit;font-size:13px;padding:6px 12px;min-height:32px;border:1px solid #cddde9;border-radius:4px;background:#fff;color:#16324e;box-shadow:none}
@media(max-width:1050px){body.leave-style #app-shell .dashboard-grid{grid-template-columns:minmax(0,1fr)}body.leave-style #app-shell .summary-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body.leave-style #app-shell .upcoming-card{grid-column:1/-1}}
@media(max-width:700px){body.leave-style #app-shell .view{padding:12px;margin:6px 0}body.leave-style #app-shell .page-head h1{font-size:23px}body.leave-style #app-shell .history-query{margin:10px}body.leave-style #app-shell .history-search-label{flex-basis:100%}body.leave-style #app-shell .day-cell{padding:3px;min-height:112px}body.leave-style #calendar-grid :is(button.leave-bar,button.subordinate-summary){font-size:10px!important;padding:2px 3px!important}body.leave-style #app-shell .summary-column{grid-template-columns:1fr}body.leave-style #app-shell :is(.leave-list-tabs,.manager-leave-tabs) button{min-height:44px}body.leave-style :is(#leave-modal,#detail-modal,#note-modal,#confirmation-modal) button:where(:not(.oa-close-control)){min-height:40px}}
}

/* Inline translated balance labels retain the original compact caption. */
@media screen{body.leave-style #leave-balance-caption>span{display:inline!important}}
