/* Scoped to Leave Management; other HR screens retain their existing layout. */
#hrLeavePage #hrLeaveWorkspace[hidden],#hrLeavePage [hidden]{display:none!important}
body.app-ready main #hrLeavePage{overflow-x:hidden}
body.app-ready main #hrLeavePage>.bc-hr-pro{width:100%;max-width:none;box-sizing:border-box;padding:18px 24px 24px}
body.app-ready main #hrLeavePage .bc-hr-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
body.app-ready main #hrLeavePage .bc-hr-page-head h2{font-size:26px;line-height:1.25;margin:0 0 6px}
body.app-ready main #hrLeavePage .bc-hr-page-head p{font-size:13px;line-height:1.5;margin:0;color:#738395}
body.app-ready main #hrLeavePage .bc-hr-eyebrow{font-size:10px;margin-bottom:7px}
body.app-ready main #hrLeavePage button,body.app-ready main #hrLeavePage input,body.app-ready main #hrLeavePage select,body.app-ready main #hrLeavePage textarea{font-family:inherit;box-sizing:border-box;letter-spacing:normal;text-transform:none;box-shadow:none}
body.app-ready main #hrLeavePage button{font-size:12px;line-height:1.35;min-height:34px;border:1px solid #d6e1eb;border-radius:7px;background:#fff;color:#305474;padding:7px 11px;cursor:pointer;white-space:normal}
body.app-ready main #hrLeavePage button:disabled{opacity:.5;cursor:default}
body.app-ready main #hrLeavePage button:focus-visible,body.app-ready main #hrLeavePage input:focus-visible,body.app-ready main #hrLeavePage select:focus-visible,body.app-ready main #hrLeavePage textarea:focus-visible{outline:2px solid #2785bd;outline-offset:2px}
body.app-ready main #hrLeavePage #hrLeaveAdd,body.app-ready main #hrLeavePage .bcl-primary{background:#193f67;color:#fff;border-color:#193f67}
body.app-ready main #hrLeavePage #hrLeaveAdd{flex:0 0 auto;min-height:38px;padding:9px 15px}
#hrLeaveWorkspace{min-width:0;color:#29445f}
#hrLeavePage .bcl-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px;max-width:1120px}
body.app-ready main #hrLeavePage .bcl-kpis button{display:flex;align-items:center;gap:10px;min-width:0;min-height:58px;padding:10px 14px;text-align:left;border-color:#dce6ee}
body.app-ready main #hrLeavePage .bcl-kpis button[aria-pressed="true"]{border-color:#86b6d7;background:#f2f8fc}
#hrLeavePage .bcl-kpis strong{font-size:20px;font-weight:650;margin-left:auto;color:#1d4266}
#hrLeavePage .bcl-kpi-icon{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:7px;font-size:18px;background:#eef5fb;color:#426d90}
#hrLeavePage .bcl-kpi-icon.pending{background:#fff6e3;color:#a77727}
#hrLeavePage .bcl-kpi-icon.approved{background:#e9f4ed;color:#41825c}
#hrLeavePage .bcl-kpi-icon.rejected{background:#faf0f0;color:#a66b6b}
#hrLeavePage .bcl-toolbar{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(4,minmax(120px,1fr)) auto;align-items:center;gap:10px;margin-bottom:14px;min-width:0}
#hrLeavePage .bcl-toolbar label{display:block;margin:0;min-width:0}
body.app-ready main #hrLeavePage .bcl-toolbar :is(input,select){display:block;width:100%;max-width:100%;height:38px;min-height:38px;border:1px solid #d5e1ec;border-radius:7px;background:#fff;color:#33526e;font-size:13px;padding:8px 10px;margin:0}
#hrLeavePage .bcl-content{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:16px;min-width:0}
#hrLeavePage .has-details .bcl-content{grid-template-columns:minmax(0,1fr) 300px}
#hrLeavePage .bcl-register{min-width:0;border:1px solid #dce6ee;border-radius:9px;background:#fff;overflow:hidden}
body.app-ready main #hrLeavePage .bcl-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto!important;overscroll-behavior-inline:contain;border:0;margin:0;padding:0;background:#fff}
body.app-ready main #hrLeavePage table.bcl-table{display:table!important;width:100%!important;min-width:640px!important;max-width:none!important;table-layout:auto!important;border-collapse:collapse;border:0;margin:0;background:#fff}
body.app-ready main #hrLeavePage .bcl-table thead{display:table-header-group!important}
body.app-ready main #hrLeavePage .bcl-table tbody{display:table-row-group!important}
body.app-ready main #hrLeavePage .bcl-table tr{display:table-row!important}
body.app-ready main #hrLeavePage .bcl-table :is(th,td){display:table-cell!important;width:auto!important;min-width:0!important;max-width:none!important;padding:11px 13px!important;font-size:12px!important;line-height:1.5!important;text-align:left;vertical-align:middle!important;border:0;border-bottom:1px solid #e6edf3;white-space:normal!important;overflow-wrap:anywhere;background:transparent}
body.app-ready main #hrLeavePage .bcl-table th{font-weight:650;color:#31526f;background:#f3f7fa}
body.app-ready main #hrLeavePage .bcl-table td::before{display:none!important}
body.app-ready main #hrLeavePage .bcl-table :is(th,td):nth-child(1){width:26%!important;min-width:160px!important}
body.app-ready main #hrLeavePage .bcl-table :is(th,td):nth-child(3){min-width:180px!important}
body.app-ready main #hrLeavePage .bcl-table :is(th,td):last-child{width:44px!important;text-align:center;padding-left:3px!important;padding-right:3px!important}
body.app-ready main #hrLeavePage .bcl-table tr.is-selected{background:#edf6fd}
body.app-ready main #hrLeavePage .bcl-table tr.is-selected td:first-child{box-shadow:inset 3px 0 #3d96ca}
body.app-ready main #hrLeavePage .bcl-table tr:hover{background:#f5f9fc}
body.app-ready main #hrLeavePage .bcl-table tr:last-child td{border-bottom:0}
body.app-ready main #hrLeavePage .bcl-person{font-size:12px;font-weight:600;color:#244b70;padding:0;border:0;background:transparent;text-align:left;min-height:28px}
#hrLeavePage .bcl-table small{display:block;font-size:11px;color:#7c8a97;margin-top:2px}
body.app-ready main #hrLeavePage .bcl-open{display:inline-grid;place-items:center;width:32px;min-height:32px;padding:0;border:0;background:transparent;font-size:23px;color:#4a7394}
#hrLeavePage .bcl-status{display:inline-block;font-size:11px;line-height:1.4;font-weight:600;border-radius:6px;padding:4px 7px;white-space:nowrap;background:#eef2f6;color:#6d7e8e}
#hrLeavePage .bcl-status.pending{background:#fff5df;color:#956b26}
#hrLeavePage .bcl-status.approved{background:#edf6ef;color:#407859}
#hrLeavePage .bcl-status.rejected{background:#fbefef;color:#9a5c5c}
#hrLeavePage .bcl-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 14px;border-top:1px solid #e5edf3;font-size:12px;color:#6b8194}
#hrLeavePage .bcl-footer>div{display:flex;align-items:center;gap:9px;white-space:nowrap}
body.app-ready main #hrLeavePage .bcl-footer button{min-width:32px;padding:4px 9px;font-size:18px}
body.app-ready main #hrLeavePage .bcl-empty{text-align:center;padding:32px 18px!important;color:#75889a}
body.app-ready main #hrLeavePage #hrLeaveDetails{position:sticky;top:12px;width:300px;max-width:100%;max-height:calc(100dvh - 145px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #dce6ee;border-radius:9px;box-shadow:0 4px 16px #24496d08;min-width:0;z-index:2}
#hrLeavePage #hrLeaveDetails>header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid #e6edf3;background:#fff;z-index:1}
#hrLeavePage #hrLeaveDetails h3{font-size:15px;line-height:1.4;margin:0;color:#24496d}
body.app-ready main #hrLeavePage [data-leave-close]{min-width:30px;min-height:30px;font-size:22px;padding:0;border:0;background:transparent}
#hrLeavePage .bcl-detail-body{padding:16px}
#hrLeavePage .bcl-detail-person{display:flex;align-items:start;gap:8px;justify-content:space-between;flex-wrap:wrap}
#hrLeavePage .bcl-detail-person h4{font-size:17px;line-height:1.4;color:#224b70;margin:0;overflow-wrap:anywhere}
#hrLeavePage .bcl-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 12px;margin:20px 0 8px}
#hrLeavePage dt{font-size:11px;color:#7a8c9c;margin-bottom:4px}
#hrLeavePage dd{font-size:12px;color:#31516c;margin:0;line-height:1.5;overflow-wrap:anywhere}
#hrLeavePage .bcl-detail-section{padding:16px 0;border-top:1px solid #e6edf3}
#hrLeavePage .bcl-detail-section h4{font-size:12px;margin:0 0 8px;color:#355671}
#hrLeavePage .bcl-detail-section p{font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
#hrLeavePage .bcl-day-note,#hrLeavePage .bcl-muted{font-size:11px;color:#7a8c9d;line-height:1.5;margin:7px 0 15px}
#hrLeavePage .bcl-submission{font-size:12px;margin-bottom:16px;border-top:1px solid #e6edf3;padding-top:12px}
#hrLeavePage .bcl-submission summary{cursor:pointer;color:#52748f}
#hrLeavePage .bcl-submission dl>div,#hrLeavePage .bcl-review-meta>div{margin-top:12px}
#hrLeavePage .bcl-review-label{display:block;margin:2px 0 7px;font-size:12px;font-weight:600;color:#345472}
#hrLeavePage .bcl-review-label span{font-size:11px;font-weight:400;color:#8092a0}
body.app-ready main #hrLeavePage #hrLeaveReviewNote{display:block;width:100%;min-height:85px;max-height:200px;resize:vertical;border:1px solid #d4e0eb;border-radius:7px;padding:10px;font-size:13px;line-height:1.5;background:#fff;color:#31516c}
#hrLeavePage .bcl-review-actions{display:flex;gap:10px;margin:14px 0 8px}
#hrLeavePage .bcl-review-actions button{flex:1}
body.app-ready main #hrLeavePage .bcl-reject{color:#a25757;border-color:#dfc1c1;background:#fff}
#hrLeavePage .bcl-save-status{font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:#58748b}
#hrLeavePage .bcl-save-status:empty{display:none}
#hrLeavePage .bcl-close-hint{margin:12px 0 0}
#hrLeavePage .bcl-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}
@media(max-width:1100px){
 #hrLeavePage .has-details .bcl-content{grid-template-columns:minmax(0,1fr)}
 #hrLeavePage .bcl-toolbar{grid-template-columns:repeat(4,minmax(0,1fr)) auto}
 #hrLeavePage .bcl-search{grid-column:1/-1}
 body.app-ready main #hrLeavePage #hrLeaveDetails{position:fixed;inset:0 0 0 auto;width:min(380px,94vw);max-width:94vw;max-height:100dvh;height:100dvh;border-radius:0;border:0;box-shadow:-12px 0 40px #19364e29;z-index:11022}
 body.app-ready main #hrLeavePage #hrLeaveBackdrop{display:block;position:fixed;inset:0;width:100vw;height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#17324d55;z-index:11021}
 body.bcp-leave-panel-open{overflow:hidden}
}
@media(max-width:680px){
 body.app-ready main #hrLeavePage>.bc-hr-pro{padding:14px 12px 20px}
 body.app-ready main #hrLeavePage .bc-hr-page-head{align-items:flex-start;flex-wrap:wrap;gap:12px}
 body.app-ready main #hrLeavePage .bc-hr-page-head h2{font-size:23px}
 #hrLeavePage .bcl-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.app-ready main #hrLeavePage .bcl-kpis button{padding:9px 10px;gap:7px;min-height:55px}
 #hrLeavePage .bcl-kpis strong{font-size:18px}
 #hrLeavePage .bcl-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #hrLeavePage .bcl-toolbar>[data-leave-reset]{grid-column:2;justify-self:end}
 #hrLeavePage .bcl-footer{flex-wrap:wrap}
}
@media(pointer:coarse),(max-width:767px){
 body.app-ready main #hrLeavePage :is(button,.bcl-open,.bcl-person,[data-leave-close]){min-height:44px}
 body.app-ready main #hrLeavePage .bcl-open,body.app-ready main #hrLeavePage [data-leave-close]{min-width:44px}
 body.app-ready main #hrLeavePage .bcl-toolbar :is(input,select),body.app-ready main #hrLeavePage #hrLeaveReviewNote{font-size:16px;min-height:44px}
 body.app-ready main #hrLeavePage .bcl-table :is(th,td){font-size:13px!important}
 body.app-ready main #hrLeavePage .bcl-person{font-size:13px}
}
