/* Menu Daftar Karyawan. Kartu login, tabel, select, search, dropdown, dan pagination memakai design system; sisanya kelas Tailwind di karyawan.html. */

/* Kartu ringkasan status bayar: pola sama dengan #summaryCards di dashboard.css. */
#employeeSummaryCards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* Tabel: lebar kolom tetap dari <colgroup> di karyawan.html, scroll horizontal di dalam wrapper persegi. */

#employeeTableScroll thead tr {
  border-bottom: 1px solid var(--pantau-border) !important;
}

/* Isi tabel netral: batalkan warna kolom nominal dari table.css. */
#employeeTableBody td,
#employeeDetailHistory td {
  color: var(--pantau-text) !important;
}

/* Satu garis penutup di bawah baris terakhir halaman aktif. */
#employeeTableBody > tr:last-child > td {
  border-bottom: 1px solid var(--pantau-border);
}

@media (max-width: 639px) {
  #employeeTableScroll th,
  #employeeTableScroll td {
    padding: 10px 12px !important;
  }
}

/* Filter: badan usaha, status, search. */
#employeeFilters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

#employeeStatusFilter {
  width: 170px;
}

#employeePaidFilter {
  width: 180px;
}

#employeeFilters .pantau-native-select-wrap {
  flex: none;
}

#employeeFilters .employee-filter-search {
  flex: 0 0 18rem;
  width: 18rem;
}

.employee-business-combo {
  position: relative;
  flex: 0 1 220px;
  width: 220px;
  min-width: 180px;
}

/* Tampilan field mengikuti trigger select design system (select-menu.css). */
.employee-business-field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--pantau-border);
  background: #fff;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}

.employee-business-field:focus-within {
  border-color: var(--pantau-green);
  box-shadow: 0 0 0 2px rgba(16,185,129,.18);
}

.employee-business-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1e293b;
}

/* "Semua Badan Usaha" tampil seperti label select (select-menu.css), bukan placeholder abu-abu. */
.employee-business-field input::placeholder {
  color: #000;
  opacity: 1;
}

.employee-business-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  height: 30px;
  color: var(--pantau-muted);
  font-size: 11px;
}

#employeeBusinessDropdown {
  z-index: 80;
}

@media (max-width: 1100px) {
  #employeeFilters {
    flex-wrap: wrap;
  }
  .employee-business-combo {
    flex: 1 1 200px;
  }
}

@media (max-width: 900px) {
  #employeeFilters {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 639px) {
  #employeeFilters .employee-filter-search {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 520px) {
  #employeeFilters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .employee-business-combo {
    min-width: 0;
  }
}


/* Popup detail: daftar identitas di atas tabel riwayat (bentuk popup dari detail-modal.css). */
.employee-detail-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 24px;
  margin: 0;
}

/* Dua kolom: tiap baris satu pasangan (nama | nomor, tagihan | pembayaran). */
@media (min-width: 640px) {
  .employee-detail-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.employee-detail-info dt {
  color: var(--pantau-muted);
  font-size: 12px;
  line-height: 16px;
}

.employee-detail-info dd {
  margin-top: 2px;
  color: var(--pantau-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  overflow-wrap: anywhere;
}
