/* riwayat nonaktif tetap berada pada filter Employee, bukan menu baru. */
.employee-panel .hris-inactive-summary{display:flex;gap:8px 18px;align-items:center;flex-wrap:wrap;padding:12px 25px;background:#f5fbf7;border-bottom:1px solid #e0ece5;color:#436456;font-size:12px}
.employee-panel .hris-inactive-summary span{white-space:nowrap}
.employee-panel .hris-inactive-summary b{color:#08764f;font-size:15px;margin-right:4px}
.hris-inactive-table{width:100%;table-layout:fixed;min-width:870px}
.hris-inactive-table .inactive-code{width:10%}
.hris-inactive-table .inactive-name{width:22%}
.hris-inactive-table .inactive-position{width:25%}
.hris-inactive-table .inactive-date{width:17%}
.hris-inactive-table .inactive-reason{width:26%}
.hris-inactive-table tbody td{vertical-align:middle;overflow-wrap:anywhere}
.hris-inactive-table .inactive-position-cell strong{display:block;color:#244a3b;font-size:13px;font-weight:750;line-height:1.4}
.hris-inactive-table .inactive-position-cell small{display:block;margin-top:3px;color:#72867e;font-size:11px;line-height:1.45}
.hris-inactive-table .inactive-date-text{font-variant-numeric:tabular-nums;color:#2b4d44;font-weight:650}
.hris-inactive-table .inactive-reason-label{display:inline-block;padding:5px 9px;border-radius:8px;background:#edf7f2;color:#237257;font-weight:700;font-size:12px}
.hris-inactive-table .inactive-detail{display:block;margin-top:5px;font-size:11px;line-height:1.4;color:#647c74}
.hris-inactive-table .inactive-unrecorded{color:#9aaba5;font-size:12px}
/* The regular HRIS modal/backdrop/form styles own the visual treatment. */
.modal-backdrop.hris-inactive-modal-backdrop{z-index:110000!important}
.hris-reason-modal{width:min(470px,96vw)!important;max-height:min(90vh,700px);overflow:visible!important}
.hris-reason-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:19px 21px 7px}
.hris-reason-fields label{min-width:0}
.hris-reason-fields select,.hris-reason-fields textarea{width:100%}
.hris-reason-fields textarea{resize:vertical;min-height:80px}
.hris-reason-fields .hris-required{color:#cc4e4e}
.hris-reason-fields .hris-required-label{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;line-height:1.35}
.hris-reason-fields .hris-required-label .hris-required{display:inline!important;margin:0!important;line-height:inherit;vertical-align:baseline}
.hris-reason-actions{margin:10px 21px 18px!important;padding-top:14px}
/* Dashboard nonaktif summary is navigable without changing the global KPI design. */
.db86-summary-grid button.db86-inactive-link{font:inherit;text-align:left;cursor:pointer;min-width:0;transition:background-color .15s,border-color .15s}
.db86-summary-grid button.db86-inactive-link:hover,.db86-summary-grid button.db86-inactive-link:focus-visible{background:#eff9f3;border-color:#9bcab1}
@media(max-width:640px){.employee-panel .hris-inactive-summary{padding:11px 14px;gap:6px 12px}.hris-reason-fields{padding:15px 16px 5px}.hris-reason-actions{margin:8px 16px 14px!important}}


/* inactive Employee uses 's exact reusable work-information row.
   Preserve five inactive columns, existing date/reason cells, and actions.
   Full job/department/company/vendor text stays available in hover titles. */
.app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table{
  table-layout:fixed!important;min-width:1000px!important;width:100%!important;
}
.app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-code{width:13%!important}
.app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-name{width:21%!important}
.app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-position{width:42%!important}
.app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-date{width:12%!important}
.app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-reason{width:12%!important}
.app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table td.ui-inactive-work-cell{
  min-width:0!important;text-align:left!important;padding:8px 11px!important;
  overflow-wrap:normal!important;
}
.app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .ui-work-line{
  overflow:visible!important;white-space:normal!important;
}
@media(max-width:767px){
  .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table{min-width:960px!important}
}

/* Employee Nonaktif multi-selection: one canonical, responsive toolbar.
   Keep the standard five-column table; selection stays inside KODE. */
#app .app-shell .workspace .employee-workspace .hris-inactive-bulk-toolbar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  flex-wrap:nowrap!important;gap:16px!important;
  padding:12px 18px!important;margin:0!important;min-height:68px!important;
  background:#fafdfe!important;border:0!important;border-bottom:1px solid #e3ece8!important;
  box-sizing:border-box!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-bulk-leading{
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;
  flex:1 1 auto!important;min-width:0!important;gap:8px 16px!important;
}
#app .app-shell .workspace .employee-workspace label.hris-inactive-select-all{
  display:inline-flex!important;align-items:center!important;flex-flow:row nowrap!important;
  flex:0 0 auto!important;gap:10px!important;min-height:40px!important;
  padding:0!important;margin:0!important;white-space:nowrap!important;
  font-size:12.5px!important;line-height:1.4!important;font-weight:650!important;color:#355c4b!important;
  cursor:pointer!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-select-caption{display:inline!important;line-height:1.4!important}
#app .app-shell .workspace .employee-workspace input.hris-inactive-select-checkbox{
  appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block!important;
  position:static!important;float:none!important;flex:0 0 16px!important;
  width:16px!important;min-width:16px!important;max-width:16px!important;
  height:16px!important;min-height:16px!important;max-height:16px!important;
  margin:0!important;padding:0!important;transform:none!important;box-shadow:none!important;
  accent-color:#169b70!important;cursor:pointer!important;vertical-align:middle!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-bulk-status{
  display:inline-flex!important;align-items:center!important;flex:0 1 auto!important;
  min-width:0!important;white-space:nowrap!important;line-height:1.4!important;
  margin:0!important;padding:0!important;font-size:11.5px!important;color:#71887b!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-bulk-count{
  display:inline-flex!important;align-items:center!important;gap:4px!important;
  padding:6px 10px!important;border:1px solid #dcebe2!important;border-radius:9px!important;
  background:#edf7f1!important;color:#416956!important;white-space:nowrap!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-bulk-count b{font-weight:750!important;color:#207852!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-bulk-actions{
  display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;
  flex:0 0 auto!important;flex-wrap:nowrap!important;gap:9px!important;
  width:auto!important;margin:0!important;padding:0!important;min-width:0!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-bulk-actions button.btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;gap:8px!important;width:auto!important;max-width:none!important;
  min-width:0!important;height:38px!important;min-height:38px!important;
  margin:0!important;padding:0 14px!important;border-radius:9px!important;
  line-height:1!important;font-size:12px!important;font-weight:700!important;
  letter-spacing:0!important;white-space:nowrap!important;box-shadow:none!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-bulk-cancel{
  background:#fff!important;border:1px solid #d9e6df!important;color:#526d5f!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-bulk-cancel:hover{
  background:#f5f9f6!important;border-color:#bdd9c9!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-bulk-delete{
  background:#fff1ef!important;border:1px solid #eaccc8!important;color:#aa4e46!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-bulk-delete:hover{
  background:#fee8e5!important;border-color:#e2b7b2!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table{
  display:table!important;width:100%!important;min-width:1000px!important;table-layout:fixed!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-code{width:13%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-position{width:42%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table tbody td.inactive-code-cell{
  display:table-cell!important;vertical-align:middle!important;text-align:left!important;
  min-width:0!important;padding:9px 12px!important;overflow:visible!important;
  background-clip:padding-box!important;
}
#app .app-shell .workspace .employee-workspace label.hris-inactive-code-label{
  display:inline-flex!important;align-items:center!important;flex-flow:row nowrap!important;
  gap:8px!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:0!important;white-space:nowrap!important;
  cursor:pointer!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-code-label code{display:inline-block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table tbody tr.is-picked td{background-color:#f2faf5!important}
@media(max-width:1024px){
 #app .app-shell .workspace .employee-workspace .hris-inactive-bulk-toolbar{flex-wrap:wrap!important;gap:9px!important;padding:12px 14px!important}
 #app .app-shell .workspace .employee-workspace .hris-inactive-bulk-actions{margin-left:auto!important}
}
@media(max-width:640px){
 #app .app-shell .workspace .employee-workspace .hris-inactive-bulk-toolbar{align-items:stretch!important;gap:10px!important}
 #app .app-shell .workspace .employee-workspace .hris-inactive-bulk-leading{width:100%!important;gap:5px 10px!important}
 #app .app-shell .workspace .employee-workspace .hris-inactive-bulk-status{width:100%!important;margin-left:26px!important}
 #app .app-shell .workspace .employee-workspace .hris-inactive-bulk-actions{width:100%!important;justify-content:flex-end!important}
}

/* Karyawan Nonaktif: selection is entered from right-click -> Hapus Beberapa.
   Center only KODE, TANGGAL NONAKTIF, and ALASAN; keep other columns unchanged. */
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table :is(th.inactive-code-head,th.inactive-date-head,th.inactive-reason-head),
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table :is(td.inactive-code-cell,td.inactive-date-cell,td.inactive-reason-cell){
  text-align:center!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table tbody td.inactive-code-cell{
  text-align:center!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .hris-inactive-code-label{
  display:inline-flex!important;justify-content:center!important;align-items:center!important;
  vertical-align:middle!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .inactive-reason-cell .inactive-detail{
  text-align:center!important;
}

/* Mode Hapus Beberapa: checkbox memiliki kolom tersendiri, tanpa memengaruhi
   posisi maupun lebar visual kode karyawan. Kolom hanya muncul saat memilih. */
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-select{width:4%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-code{width:10%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-name{width:20%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-position{width:42%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-date{width:12%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-reason{width:12%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table :is(th.inactive-select-head,td.inactive-select-cell){
  text-align:center!important;vertical-align:middle!important;
  padding:9px 8px!important;box-sizing:border-box!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table td.inactive-select-cell input.hris-inactive-select-checkbox{
  display:block!important;margin:0 auto!important;vertical-align:middle!important;
}

/* Employee Nonaktif: tinggi baris mengikuti Employee Aktif (50px), termasuk baris dengan
   alasan Lainnya dan keterangan tambahan. Jika teks panjang membungkus,
   biarkan baris bertambah tinggi agar isi tidak terpotong. */
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table tbody tr{
  height:50px!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table tbody tr > td{
  height:50px!important;vertical-align:middle!important;box-sizing:border-box!important;
}

/* Employee Nonaktif: proporsi tabel selaras Employee Aktif. ALASAN memakai
   susunan dua baris seperti ID/PIN pada Employee Aktif, tidak memperlebar tabel. */
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .inactive-reason-stack{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;width:100%;min-width:0;line-height:1.15;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .inactive-reason-stack .inactive-reason-label{
  display:inline-block;max-width:100%;box-sizing:border-box;white-space:normal;
  text-align:center;line-height:1.15;padding:3px 7px;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .inactive-reason-stack .inactive-detail{
  display:block;margin:0;max-width:100%;font-size:10px;font-weight:400;
  line-height:1.15;color:#87978f;overflow-wrap:anywhere;text-align:center;
}

/* Employee Nonaktif: enam kolom mengikuti urutan Employee Aktif.
   Proporsi ID/KODE/TGL cukup untuk identitas dan tanggal terpanjang;
   sisa ruang diprioritaskan untuk nama serta informasi pekerjaan. */
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table {
  width:100%!important; min-width:0!important; table-layout:fixed!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-id{width:11%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-name{width:21%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-code{width:9%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-position{width:36%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-date{width:10%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table col.inactive-reason{width:13%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-select{width:4%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-id{width:11%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-name{width:19%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-code{width:9%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-position{width:34%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-date{width:10%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table.is-bulk-selecting col.inactive-reason{width:13%!important}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table :is(th,td){
  box-sizing:border-box!important;min-width:0!important;padding-left:9px!important;padding-right:9px!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .inactive-id-cell .ui-identity-cell{
  min-width:0!important;max-width:100%!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .inactive-id-cell .ui-identity-cell :is(strong,small){
  display:block!important;white-space:nowrap!important;font-variant-numeric:tabular-nums;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .inactive-code-cell code,
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .inactive-date-text{
  white-space:nowrap!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .ui-inactive-work-cell .ui-work-line{
  min-width:0!important;max-width:100%!important;
}
/* Pada layar ringkas, izinkan baris info pekerjaan dan alasan membungkus
   daripada memaksakan lebar tabel yang memunculkan scroll horizontal. */
@media(max-width:1100px){
 #app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .ui-inactive-work-cell .ui-work-line{
   white-space:normal!important;
 }
 #app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table :is(th,td){padding-left:6px!important;padding-right:6px!important}
}
/* Jangan potong informasi pekerjaan: bungkus secara natural saat isi panjang. */
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .ui-inactive-work-cell .ui-work-line{
  overflow:visible!important;white-space:normal!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .ui-inactive-work-cell .ui-work-piece{
  display:inline!important;max-width:none!important;overflow:visible!important;
  text-overflow:clip!important;white-space:normal!important;overflow-wrap:break-word!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .people-name-stack{
  max-width:100%!important;min-width:0!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .people-name button{
  max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important;
}

/* Employee Nonaktif: gunakan tipografi dan badge identik dengan Employee Aktif.
   Berlaku pada tampilan normal maupun mode Hapus Beberapa. */
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table tbody td.inactive-id-cell{
  display:table-cell!important;vertical-align:middle!important;text-align:center!important;
  height:50px!important;padding:8px 8px!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table tbody td.inactive-id-cell .ui-identity-cell{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex-direction:column!important;width:100%!important;gap:4px!important;line-height:1.2!important;
  white-space:nowrap!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table tbody td.inactive-id-cell .ui-identity-cell strong{
  color:#146747!important;font-size:13.5px!important;font-weight:750!important;
  line-height:1.12!important;letter-spacing:.01em!important;text-align:center!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table tbody td.inactive-id-cell .ui-identity-cell small{
  color:#87978f!important;font-size:10px!important;font-weight:400!important;
  line-height:1.12!important;text-align:center!important;margin:0!important;
}
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table tbody td.inactive-code-cell{
  display:table-cell!important;vertical-align:middle!important;text-align:center!important;
  height:50px!important;padding:8px 7px!important;
}
/* KODE Nonaktif memakai class people-code yang sama dengan Employee Aktif. */

/* Detail alasan panjang tetap terbaca tanpa mengubah desain STATUS aktif. */
#app .app-shell .workspace .employee-workspace .hris-inactive-table.ui-compact-inactive-table .inactive-reason-cell .people-contract{
  white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;
}
