/* IDs remain internal; row space goes to the employee's name. */
html body.leave-style #history-view #history-list .record-main>span:not(.sub) {display:none!important;}
@media screen and (min-width:1151px){html body.leave-style #app-shell #history-view #history-list .record-row {grid-template-columns:minmax(210px,1.5fr) 0 200px 165px minmax(140px,1fr) 150px 12px;}}
@media screen and (min-width:761px) and (max-width:1150px){html body.leave-style #app-shell #history-view #history-list .record-row {grid-template-columns:minmax(150px,1fr) 0 190px 165px minmax(140px,1fr) 0 12px;}}
html body.leave-style #detail-modal {position:fixed;inset:0;z-index:35!important;padding:0!important;align-items:stretch!important;justify-content:flex-end!important;background:#18395124!important;backdrop-filter:none!important;overflow:hidden;}
html body.leave-style #detail-modal.hidden {display:none!important;}
html body.leave-style #detail-modal>.detail-modal {display:flex!important;flex-direction:column;align-self:stretch!important;width:min(620px,100%)!important;max-width:100%!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;margin:0!important;padding:0!important;border:1px solid #aec9df!important;border-right:0!important;border-radius:20px 0 0 20px!important;background:#fff!important;box-shadow:-12px 0 36px #23496c24!important;overflow:hidden!important;transform:none;clip-path:none!important;}
html body.leave-style #detail-modal .modal-head {flex:none;margin:0!important;padding:18px 20px 12px!important;border-bottom:1px solid #dce8f1;}
html body.leave-style #detail-modal #detail-title {font-size:20px;overflow-wrap:anywhere;}
html body.leave-style #detail-modal #detail-content {flex:1;min-height:0;overflow:auto;padding:14px 20px;overscroll-behavior:contain;}
html body.leave-style #detail-modal #detail-actions {flex:none;display:flex;flex-wrap:wrap;gap:7px;margin:0!important;padding:12px 16px!important;border-top:1px solid #d7e5f0;background:#f9fcff;}
html body.leave-style #detail-modal #detail-actions button {min-width:96px;min-height:36px;border-radius:10px!important;white-space:nowrap;}
html body.leave-style #detail-modal #leave-person-history {align-self:flex-start;flex:none;margin:12px 20px 0;min-height:36px;border-radius:10px!important;border:1px solid #abc9df;background:#edf6fd;color:#205e87;}
html body.leave-style #history-view #leave-employee-filter {width:max-content;max-width:100%;border:1px solid #abc9df;border-radius:10px!important;padding:5px 11px;margin:0 8px 10px 2px;background:#edf6fd;color:#205e87;font-size:13px;}
html body.leave-style #history-view #leave-employee-filter[hidden] {display:none!important;}
@media(min-width:761px){
 html body.leave-style #detail-modal:not(.hidden){pointer-events:none}
 html body.leave-style #detail-modal>.detail-modal{pointer-events:auto}
}
@media(max-width:600px){html body.leave-style #detail-modal>.detail-modal {border-radius:14px 0 0 14px!important;}html body.leave-style #detail-modal :is(.modal-head,#detail-content){padding:12px!important;}html body.leave-style #detail-modal #detail-actions button{min-height:40px;}}

/* UI021: separate person filter outside the detail card; row density unchanged. */
html body.leave-style #history-view .leave-person-row{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:5px;min-width:0}
html body.leave-style #history-view .leave-person-row .record-row{position:relative;width:100%;min-width:0;z-index:0!important}
html body.leave-style #history-view .leave-person-quick{position:relative;align-self:center;width:26px;height:28px;min-width:0;min-height:28px!important;max-height:28px!important;padding:4px;border:1px solid transparent;border-radius:8px;color:#6487a2;background:transparent;z-index:1;box-shadow:none;transform:none!important;transition:background .15s,border-color .15s!important}
#history-view .leave-person-quick svg{display:block;width:18px;height:18px}
html body.leave-style #history-view .leave-person-quick:hover,html body.leave-style #history-view .leave-person-quick[aria-pressed="true"]{background:#e3f1fc;border-color:#8bb8dc;color:#075391}
#history-view .leave-person-quick:focus-visible{outline:2px solid #075391;outline-offset:2px}

/* UI022: override shared button padding; keep the glyph inside its hit target. */
html body.leave-style #app-shell #history-view #history-list .leave-person-quick{display:grid!important;place-items:center!important;padding:0!important;margin:0!important;box-sizing:border-box!important;border:1px solid transparent!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;color:#63859d!important;line-height:1!important;overflow:hidden!important}
html body.leave-style #app-shell #history-view #history-list .leave-person-quick:hover{border-color:#a9c9e1!important;background:#edf6fd!important;color:#105c92!important}
html body.leave-style #app-shell #history-view #history-list .leave-person-quick[aria-pressed="true"]{border-color:#1a679c!important;background:#1a679c!important;color:#fff!important;box-shadow:0 2px 5px #24649725!important}
html body.leave-style #app-shell #history-view #history-list .leave-person-quick svg{width:16px!important;height:16px!important;margin:0!important;pointer-events:none}

/* Keep the drawer inside the phone safe area without changing its desktop motion. */
@media screen and (max-width:600px){
 html body.leave-style.oa-responsive.oa-responsive #detail-modal {
  padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))!important;
 }
 html body.leave-style.oa-responsive.oa-responsive #detail-modal #detail-actions button {
  min-height:44px!important;
 }
}
