/* ===== KPI CARDS (with alignment + icon chip) ===== */
.kpi-board{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
@media (max-width:1024px){ .kpi-board{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){  .kpi-board{ grid-template-columns:1fr; } }

.kpi-card{ background:#fff; border:1px solid #e6eaf2; border-radius:14px; padding:14px 16px 12px; box-shadow:0 1px 2px rgba(16,24,40,.04); }
.kpi-head{ display:flex; align-items:center; justify-content:space-between; min-height:34px; gap:8px; }
.kpi-title{ margin:0; line-height:1.2; display:flex; align-items:center; font-size:14px; font-weight:600; color:#2a3447; }
.kpi-ico{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:10px; background:#eef4ff; border:1px solid #e6ebf7; box-shadow:0 1px 2px rgba(16,24,40,.04); color:#1e293b; font-size:18px; }
.kpi-ico.dashicons::before{ display:block; line-height:1; }
.kpi-val{ font-size:30px; line-height:1.1; font-weight:700; color:#151b28; margin:2px 0 6px; }
.kpi-sub{ font-size:13px; font-weight:600; }
.kpi-sub.good{ color:#10b981; } .kpi-sub.info{ color:#1c7f67; } .kpi-sub.bad{ color:#ef4444; }

/* ===== TABLE HEAD ===== */
.att-head{ display:flex; align-items:center; justify-content:flex-start; margin:12px 0 10px; }
.att-search{ position:relative; width: min(520px, 100%); }
.att-search .dashicons{ position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#8a93a7; }
.att-search input{
  width:100%; height:42px; padding:0 12px 0 36px; border:1px solid #e6eaf2; border-radius:999px; outline:0;
  background:#fff; color:#1f2a44; font-size:14px;
}
.att-search input:focus{ border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.15); }

/* ===== TABLE ===== */
.att-table{ width:100%; border-collapse:separate; border-spacing:0; border:1px solid #e6eaf2; border-radius:10px; overflow:hidden; background:#fff; }
.att-table thead th{
  text-align:left; font-weight:600; font-size:13px; color:#506179; background:#f7f9fc;
  padding:12px 14px; border-bottom:1px solid #e6eaf2;
}
.att-table tbody td{ padding:12px 14px; border-bottom:1px solid #eef2f8; vertical-align:middle; color:#1f2a44; font-size:14px; }
.att-table tbody tr:last-child td{ border-bottom:0; }

/* Name cell */
.att-person{ display:flex; align-items:center; gap:10px; min-width:220px; }
.att-avatar{ width:36px; height:36px; border-radius:50%; background:#eef1f7; display:inline-grid; place-items:center; font-weight:700; color:#4b5563; }
.att-avatar.is-img{ background-size:cover; background-position:center; }
.att-pmeta .att-name{ font-weight:600; color:#111827; }
.att-pmeta .att-email{ font-size:12px; color:#6b7280; }

/* Badges */
.att-badge{
  display:inline-flex; align-items:center; height:26px; padding:0 10px; border-radius:8px;
  font-size:12px; font-weight:600; border:1px solid transparent;
}
.ct-full-time{ background:#eef4ff; color:#2647a4; border-color:#dbe6ff; }
.ct-part-time{ background:#ffeef6; color:#a42c78; border-color:#ffd8ea; }
.ct-internship{ background:#f3f0ff; color:#5b3fb1; border-color:#e5dcff; }
.ct-freelance{ background:#fff3e8; color:#a4541b; border-color:#ffe3c6; }

.st-present{ background:#e9fbf2; color:#0f7f4a; border-color:#c9f4df; }
.st-absent{  background:#feecef; color:#a3363e; border-color:#ffd6dc; }
.st-on-leave{ background:#eefaf7; color:#1c7f67; border-color:#def0ea; }
.st-late{     background:#fff5e6; color:#9a5b00; border-color:#ffe6bd; }

/* ===== FOOTER / PAGER ===== */
.att-footer{ display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
.att-results{ color:#5f6b86; font-size:14px; }
.att-pagination{ display:flex; gap:10px; }
.pager-btn{
  display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 12px; border-radius:10px;
  border:1px solid #dbe2ef; background:#fff; color:#1f2a44; cursor:pointer;
}
.pager-btn:disabled{ opacity:.5; cursor:not-allowed; }
.pager-btn--prev::before,
.pager-btn--next::after{
  content:''; display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:50%; border:1px solid #dbe2ef; background:#fff; color:#1f2a44; font-weight:700; font-size:14px;
}
.pager-btn--prev::before{ content:'‹'; }
.pager-btn--next::after{ content:'›'; }

/* Theme header nudge (if needed) */
body.hrjtek-portal .entry-header{ display:none !important; }

/* ===== CONTROLS ROW ===== */
.att-controls{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin:12px 0 10px;
}
.att-controls-left, .att-controls-right{ display:flex; align-items:center; gap:10px; }

/* Chip buttons (Filter / Date / Export) */
.chip-btn{
  display:inline-flex; align-items:center; gap:8px; height:38px;
  padding:0 12px; border-radius:10px;
  border:1px solid #d1d6e2; background:#fff; color:#1f2a44; cursor:pointer;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.chip-btn .dashicons{ line-height:1; }

/* ===== FILTER POPOVER ===== */
.att-filter-pop{
  position:relative; /* so it can sit under controls */
  margin-top:-4px; /* snugs under the row */
  border:1px solid #e6eaf2; background:#fff; border-radius:12px;
  padding:12px; box-shadow:0 12px 30px rgba(0,0,0,.08);
}
.att-filter-pop[hidden]{ display:none !important; }
.af-section{ display:grid; grid-template-columns: 1fr; gap:6px; margin-bottom:10px; }
.af-title{ font-weight:700; color:#1f2a44; font-size:13px; margin-bottom:6px; }
.af-check{ display:flex; align-items:center; gap:8px; font-size:14px; color:#1f2a44; }
.af-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:6px; }

/* Softer, less-bold chips */
.chip-btn.chip-quiet{
  font-weight: 400 !important;          /* cut the boldness, override theme */
  color: #1f2a44;                        /* normal text color */
  border-color: #d1d6e2;                 /* subtle border */
  background: #fff;
  -webkit-font-smoothing: antialiased;   /* reduce visual “thickness” */
  -moz-osx-font-smoothing: grayscale;
}
.chip-btn.chip-quiet .dashicons{
  color: #4b5563;                         /* softer icon tint */
  line-height: 1;                         /* avoid extra vertical weight */
}
.chip-btn.chip-quiet:hover{
  border-color: #c9cfdb;
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
}

.att-date-native{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid #d9e1ef;
  border-radius: 14px;
  background: #fff;
  color: #1e2a3b;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  min-height: 48px;
  box-sizing: border-box;
}

.att-date-native .dashicons{
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 18px;
}
/* Reuse your existing .btn and .btn.primary from portal CSS */
.att-date-native{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border:1px solid #d9e1ef;
  border-radius:14px;
  background:#fff;
  color:#1e2a3b;
  font-size:16px;
  font-weight:500;
  line-height:1;
  cursor:pointer;
  min-height:48px;
  box-sizing:border-box;
  user-select:none;
}

.att-date-native .dashicons{
  font-size:18px;
  width:18px;
  height:18px;
  line-height:18px;
}

