/* Filter kolom ala Excel (js/column-filter.js) */
.cf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-left: 6px; padding: 0;
  vertical-align: middle; cursor: pointer;
  border: 1px solid transparent; border-radius: 4px; background: transparent;
  opacity: .55; line-height: 1;
}
.cf-btn:hover, .cf-btn:focus-visible, .cf-btn[aria-expanded="true"] {
  opacity: 1; background: rgba(148, 163, 184, .28); border-color: rgba(148, 163, 184, .5); outline: none;
}
/* Kolom yang sedang difilter: ikon biru, seperti indikator filter Excel */
.rp-table thead th .cf-btn.is-active,
.rp-table thead th .cf-btn.is-active * { color: #60a5fa !important; }
.cf-btn.is-active { opacity: 1; background: rgba(96, 165, 250, .18); border-color: rgba(96, 165, 250, .6); }
.rp-table thead th.cf-filtered { box-shadow: inset 0 -2px 0 #60a5fa; }

.cf-pop {
  position: fixed; z-index: 10000; width: 260px; box-sizing: border-box;
  padding: 8px; border: 1px solid #c8ccd2; border-radius: 6px;
  background: #fff; color: #1f2937;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .28);
  font: 400 13px 'IBM Plex Sans', system-ui, sans-serif;
}
.cf-pop * { box-sizing: border-box; }
.cf-clear {
  display: block; width: 100%; margin-bottom: 8px; padding: 6px 8px; text-align: left;
  border: 0; border-radius: 4px; background: transparent; color: #1f2937; cursor: pointer; font: inherit;
}
.cf-clear:hover:not(:disabled) { background: #eef2f7; }
.cf-clear:disabled { color: #9aa3af; cursor: default; }
.cf-search {
  width: 100%; margin-bottom: 8px; padding: 6px 8px;
  border: 1px solid #9aa3af; border-radius: 4px; background: #fff; color: #1f2937; font: inherit;
}
.cf-search:focus { outline: 2px solid #3b82f6; outline-offset: -1px; border-color: #3b82f6; }
.cf-list {
  max-height: 220px; overflow: auto; margin-bottom: 8px; padding: 4px 0;
  border: 1px solid #9aa3af; border-radius: 4px; background: #fff;
}
.cf-item { display: flex; align-items: center; gap: 8px; padding: 3px 8px; cursor: pointer; user-select: none; }
.cf-item:hover { background: #eaf2fd; }
.cf-item input { margin: 0; accent-color: #2563eb; }
.cf-item .cf-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-all { font-weight: 600; border-bottom: 1px solid #e5e7eb; margin-bottom: 2px; }
.cf-none { padding: 8px; color: #6b7280; }
.cf-foot { display: flex; justify-content: flex-end; gap: 8px; }
.cf-ok, .cf-cancel {
  min-width: 72px; padding: 6px 14px; border-radius: 4px; cursor: pointer; font: inherit;
  border: 1px solid #9aa3af; background: #f3f4f6; color: #1f2937;
}
.cf-ok { background: #2563eb; border-color: #1d4ed8; color: #fff; font-weight: 600; }
.cf-ok:disabled { opacity: .45; cursor: not-allowed; }
.cf-cancel:hover { background: #e5e7eb; }

/* Tombol hapus semua filter kolom (di baris tab) */
.rp-clear-filters { margin-left: auto; }
.rp-clear-filters[hidden] { display: none !important; }
