/* Employee Requests: reuse Attendance Today's KPI cards and the existing drawer frame. */
#attendanceRequestWorkspace .request-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.request-summary .request-kpi-pending{--card-accent:#a16a18;--card-soft:#fff3dc}
.request-summary .request-kpi-completed{--card-accent:#27805a;--card-soft:#e9f7ef}
.request-summary .request-kpi-leave{--card-accent:#456bb2;--card-soft:#edf3ff}
.request-summary .request-kpi-permission{--card-accent:#8050bc;--card-soft:#f2ebfc}
.request-summary-scope{margin:0;padding:0 18px 10px;color:#718096;font-size:11px;line-height:1.7}
.request-summary-error{margin:0;padding:0 18px 10px;color:#a05c1b;font-size:12px}
.request-summary-error:empty{display:none}
#attendanceRequestWorkspace .empty-row{height:auto;min-height:0;padding:14px}
.request-empty{display:grid;justify-items:center;gap:5px;padding:16px 12px;color:#718096;text-align:center;white-space:normal}
.request-empty b{font-size:14px;color:#485871}
.request-empty span{font-size:12px;line-height:1.7}
.request-empty.is-error b{color:#a34848}
.request-loading{padding:22px;text-align:center;color:#738095;font-size:13px}
.request-pagination{display:flex;justify-content:center}
.request-pagination:has(button:not([hidden])){padding:12px}
#attendanceRequestWorkspace .attendance-review-table td{padding-block:14px}
#attendanceRequestWorkspace .attendance-review-table td>small{display:block;margin-top:4px;color:#78869a}
#attendanceRequestWorkspace .attendance-review-table td>b{font-size:12px}
#attendanceRequestWorkspace .attendance-employee-copy strong{font-size:14px}
.employee-request-drawer.attendance-review-drawer{width:min(700px,100vw);max-width:100vw}
.employee-request-drawer>header{align-items:flex-start;gap:16px;padding:16px 20px}
.employee-request-drawer>header h2{margin:0 0 9px;font-size:12px;font-weight:650;color:#748196}
.employee-request-drawer .request-header-main{flex:1;min-width:0}
.employee-request-drawer .attendance-employee-avatar{width:46px;height:46px;flex:0 0 46px;border-radius:12px}
.employee-request-drawer .attendance-employee-copy{min-width:0}
.employee-request-drawer .attendance-employee-copy strong{font-size:17px;max-width:none;white-space:normal;overflow:visible;overflow-wrap:anywhere;line-height:1.6}
.employee-request-drawer .attendance-employee-copy small{font-size:12px;margin-top:3px;color:#748196}
.request-header-status{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.employee-request-drawer .attendance-review-drawer-content{display:block;padding:0 20px;scroll-behavior:smooth}
.request-section{padding:17px 0;border-bottom:1px solid #e8edf4}
.request-section:last-child{border-bottom:0}
.request-section h3{margin:0 0 12px;font-size:14px;font-weight:750;color:#26374f}
.request-facts{display:grid;grid-template-columns:1fr 1fr;gap:13px 18px;margin:0}
.request-facts>div{min-width:0}
.request-facts dt,.request-balance dt{font-size:12px;color:#77849a}
.request-facts dd,.request-balance dd{margin:5px 0 0;font-size:14px;font-weight:700;color:#26374f;overflow-wrap:anywhere}
.request-reason{margin-top:15px;padding:11px 13px;background:#f8f9fc;border-radius:9px}
.request-reason>span{font-size:12px;color:#77849a}
.request-reason p{margin:4px 0 0;font-size:13px;color:#42536e;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}
.request-balance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.request-balance>div{padding:11px 12px;border:1px solid #e4e9f0;border-radius:9px;background:#fbfcfe}
.request-balance dd{font-size:17px}
.request-muted{font-size:12px;color:#748196;line-height:1.85;margin:10px 0 0}
.request-history{display:grid;gap:12px;list-style:none;margin:14px 0 0;padding:0}
.request-history li{position:relative;padding-inline-start:17px;border-inline-start:2px solid #e4e9f2}
.request-history li::before{position:absolute;content:"";inset-inline-start:-5px;top:6px;width:8px;height:8px;border-radius:50%;background:#a9b7ca}
.request-history li.is-approved::before{background:#47a17b}
.request-history li.is-rejected::before{background:#c96767}
.request-history b,.request-history span,.request-history time{display:block}
.request-history b{font-size:13px;color:#35465f}
.request-history span{font-size:13px;margin-top:2px;color:#5d6c83}
.request-history time{font-size:11px;color:#8290a2;margin-top:3px}
.request-history p{padding:8px 10px;border-radius:8px;background:#fff6f5;color:#99504a;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0}
.request-section>p{margin:0}
.request-inline-error{padding:9px 11px;border-radius:8px;background:#fff4f2;color:#a54a43;font-size:12px;line-height:1.8}
.request-success{margin:14px 0 0;padding:10px 12px;border-radius:9px;background:#edf8f2;color:#297553;font-size:13px}
.request-drawer-footer{flex:0 0 auto;max-height:45dvh;overflow-y:auto;overscroll-behavior:contain;padding:13px 20px 17px;border-top:1px solid #e4e9f1;background:#fff;box-shadow:0 -4px 16px #1b28400a}
.request-actions{display:flex;gap:10px}
.request-actions button,.request-reject-form button{height:40px;min-width:100px;padding:0 18px;border-radius:9px;font:700 13px plex,Arial,sans-serif;cursor:pointer}
.request-actions .primary-btn{background:#29805a;border:1px solid #29805a;color:white}
.request-actions .review-reject-btn,.request-reject-form button{background:#fff5f3;border:1px solid #e9c7c2;color:#ad5149}
.request-actions button:disabled,.request-reject-form button:disabled{opacity:.55;cursor:wait}
.request-reject-form{display:grid;gap:10px;padding-top:13px}
.request-reject-form label{display:grid;gap:6px;font-size:12px;color:#65748b}
.request-reject-form label b{display:none}
.request-reject-form textarea{width:100%;padding:10px;border:1px solid #dccbc9;border-radius:9px;font:13px plex,Arial,sans-serif;resize:vertical;min-height:68px;max-height:150px}
.request-reject-form button{justify-self:start}
.request-final-status{margin:0;color:#287452;font-size:13px;font-weight:750}
.employee-request-drawer[data-decision-state=rejected] .request-final-status{color:#a34f48}
.employee-request-drawer[data-decision-state=cancelled] .request-final-status{color:#758195}
.request-final-reason{margin:5px 0 0;color:#7c6970;font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}
.employee-request-drawer[hidden],.employee-request-drawer [hidden],#attendanceRequestWorkspace [hidden]{display:none!important}
.employee-request-drawer :focus-visible{outline:3px solid #c8b4f2;outline-offset:2px}
@media(max-width:900px){#attendanceRequestWorkspace .request-summary{grid-template-columns:1fr 1fr}}
@media(max-width:600px){
  .employee-request-drawer.attendance-review-drawer{width:100vw}
  .employee-request-drawer>header{padding:15px 16px}
  .employee-request-drawer .attendance-review-drawer-content{padding-inline:16px}
  .employee-request-drawer .attendance-employee-copy strong{font-size:16px}
  .request-drawer-footer{padding:12px 16px}
  .request-balance{gap:6px}.request-balance>div{padding:10px 8px}.request-balance dt{font-size:11px}.request-balance dd{font-size:15px}
  .request-summary-scope{padding-inline:12px}
}

/* Pending inbox285: existing components, independent submission filters. */
#attendanceRequestWorkspace .attendance-review-filters{grid-template-columns:minmax(220px,2fr) repeat(3,minmax(130px,1fr))}
#attendanceRequestWorkspace td small{display:block;margin-top:5px;color:#64748b;font-size:12px}
.review-status.is-returned_for_correction{background:#fff4d6;color:#845808}
#attendanceRequestWorkspace .request-type-badge.is-attendance_review{background:#f0ebff;color:#6033a8}
@media(max-width:900px){#attendanceRequestWorkspace .attendance-review-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#attendanceRequestWorkspace .attendance-review-filters{grid-template-columns:1fr}}
