/* request audit visibility, proportionate rejection editor, stable history. */
.app-shell .workspace .leave-center-panel table.leave-history-grid.ui-leave-history {min-width:1130px!important;table-layout:fixed!important}
.app-shell .workspace .leave-center-panel .ui-leave-history th:nth-child(1){width:52px!important;min-width:52px!important;max-width:52px!important}
.app-shell .workspace .leave-center-panel .ui-leave-history th:nth-child(2){width:17%!important}
.app-shell .workspace .leave-center-panel .ui-leave-history th:nth-child(3){width:9%!important}
.app-shell .workspace .leave-center-panel .ui-leave-history th:nth-child(4),
.app-shell .workspace .leave-center-panel .ui-leave-history th:nth-child(5){width:12%!important}
.app-shell .workspace .leave-center-panel .ui-leave-history th:nth-child(6){width:21%!important}
.app-shell .workspace .leave-center-panel .ui-leave-history th:nth-child(7){width:10%!important}
.app-shell .workspace .leave-center-panel .ui-leave-history th:nth-child(8){width:17%!important}
.app-shell .workspace .leave-center-panel .ui-leave-history th{text-align:center!important}
.app-shell .workspace .leave-center-panel .ui-history-reason{text-align:left!important}
.ui-history-reason>span{display:block;color:#3f5648;line-height:1.25;overflow-wrap:anywhere}
.ui-history-rejection{display:block;margin-top:2px;color:#a24943;font-size:10.5px;line-height:1.25;overflow-wrap:anywhere}
.ui-history-rejection b{font-weight:750}
.ui-history-badge{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e0e9e4;border-radius:999px;padding:4px 9px;font-size:10px;font-weight:750;line-height:1.2;white-space:nowrap;background:#f3f6f5;color:#577168}
.ui-history-badge.is-approved{color:#19794c;background:#eaf7ee;border-color:#cbe8d5}
.ui-history-badge.is-rejected{color:#a54b43;background:#fff0ee;border-color:#eed6d2}
.ui-history-badge.is-pending{color:#9b6c25;background:#fff7e7;border-color:#ecdfbb}
.ui-history-badge.is-recorded{color:#577168;background:#f1f5f3;border-color:#dde8e1}
.app-shell .workspace .leave-center-panel .ui-history-actors{text-align:left!important}
.ui-history-actors small{display:block;color:#87988d;font-size:10px;line-height:1.2;margin:1px 0 0}
.ui-history-actors b{display:block;color:#355a45;font-size:11px;line-height:1.22;overflow-wrap:anywhere}
.ui-history-tools{gap:9px!important;flex-wrap:wrap}
.ui-history-tools .ui-history-status-filter{height:37px;min-width:145px;flex:0 1 170px;border-radius:9px;border:1px solid #dce9e1;background:#fff;color:#355c47;font-size:11px}
.ui-request-origin{display:flex;align-items:center;gap:8px;color:#718578;font-size:10.5px;line-height:1.4;padding:0 4px}
.ui-request-origin i{color:#69a284;font-size:12px;align-self:flex-start;margin-top:3px}
.ui-request-origin strong{color:#385c47;font-weight:750}
.ui-request-origin small{display:block;font-size:10px;color:#86998c}
.modal-card .ui-requests-modal .ui-reject-editor{display:flex!important;flex-direction:column!important;gap:10px!important;align-items:stretch!important;border:1px solid #eedad6;background:#fffaf9;padding:13px;border-radius:12px;margin:8px 0 4px}
.modal-card .ui-requests-modal .ui-reject-heading{display:flex;gap:9px;align-items:flex-start;color:#874d45}
.modal-card .ui-requests-modal .ui-reject-heading i{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;color:#a8584c;background:#fff0ec;border-radius:8px}
.modal-card .ui-requests-modal .ui-reject-heading strong{display:block;font-size:12px;line-height:1.4}
.modal-card .ui-requests-modal .ui-reject-heading small{display:block;font-size:10.5px;font-weight:400;color:#98746e;line-height:1.45;margin-top:2px}
.modal-card .ui-requests-modal .ui-reject-editor label{display:block!important;margin:0!important;width:100%;min-width:0!important}
.modal-card .ui-requests-modal .ui-reject-editor textarea{display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;min-height:105px!important;resize:vertical!important;padding:11px 12px!important;border:1px solid #e9d3cd!important;border-radius:9px!important;background:#fff!important;color:#493b38;font:inherit!important;font-size:12px!important;line-height:1.55!important;outline:none!important}
.modal-card .ui-requests-modal .ui-reject-editor textarea:focus{border-color:#cd978a!important;box-shadow:0 0 0 3px rgba(187,103,88,.1)!important}
.modal-card .ui-requests-modal .ui-reject-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.modal-card .ui-requests-modal .ui-reject-footer small{font-size:10px;color:#967a75}
.modal-card .ui-requests-modal .ui-reject-footer .btn{height:32px;padding:0 11px;font-size:10.5px}
.ui-leaving-inline-status{display:block;margin-top:5px}
.ui-leaving-inline-status .ui-history-badge{font-size:9.5px}
.ui-leaving-table .ui-leaving-note .ui-history-rejection{font-size:10px;margin-top:3px}
.ui-leaving-user-cell small{display:block;color:#819288;font-size:10px;line-height:1.3;margin-top:3px}
@media(max-width:760px){.ui-history-tools .ui-history-status-filter{flex:1 1 145px}.modal-card .ui-requests-modal .ui-reject-editor{padding:10px}}


/* HRD approval/rejection notifications, persistently scoped per account. */
.employee-alert-tabs:has(button:nth-child(5)){display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;gap:3px;scrollbar-width:thin}
.employee-alert-tabs:has(button:nth-child(5))>button{flex:1 0 auto!important;min-width:66px!important;padding:8px 5px!important;font-size:10px!important}
.ui-notice-item{width:100%;text-align:left;border:0;background:transparent;align-items:flex-start;cursor:pointer}
.ui-notice-item.is-unread{background:#edf8f1}
.ui-notice-status{display:inline-flex;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:750;margin-top:4px}
.ui-notice-status.is-approved{background:#e6f6ec;color:#1c7c4a}
.ui-notice-status.is-rejected{background:#fff0ee;color:#a44d45}
.ui-notice-unread{font-size:9px;color:#18845a;background:#e1f5e9;border-radius:10px;padding:3px 7px}

/* compact audit actor hierarchy; badge "Tercatat" for approved + direct HRD input. */
.ui-history-actors .ui-history-decision-actor{display:block;margin-top:1px!important;font-size:10.2px!important;line-height:1.2!important;color:#83948a!important;font-weight:400!important}
