/* Moved out of jobs.php (audit M5) so browsers can cache it */
.filter-bar { display:flex;flex-wrap:wrap;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;margin-bottom:18px;align-items:center; }
.fb-search { position:relative;flex:1;min-width:180px; }
.fb-search input { width:100%;padding:9px 12px 9px 34px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;outline:none;background:var(--bg);font-family:var(--font-body); }
.fb-search input:focus { border-color:var(--primary); }
.filter-bar select { padding:9px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);font-size:13px;outline:none;cursor:pointer;font-family:var(--font-body);color:var(--text); }
.filter-bar select:focus { border-color:var(--primary); }

/* Jobs table */
.jobs-tbl { width:100%;border-collapse:collapse;font-size:13px;min-width:750px; }
.jobs-tbl thead th { background:#f8fafc;padding:10px 14px;text-align:left;font-size:11px;font-weight:700;color:var(--text-muted);border-bottom:2px solid var(--border);white-space:nowrap; }
.jt-th-post { min-width:300px; }
.jt-th-vac  { width:80px;text-align:center; }
.jt-th-date { width:110px; }
.jt-th-exp  { width:90px;text-align:center; }
.jt-th-type { width:110px;text-align:center; }
.jt-th-status { width:90px;text-align:center; }
.jobs-tbl td { padding:11px 14px;border-bottom:1px solid var(--border);vertical-align:middle; }
.jobs-tbl tbody tr:last-child td { border-bottom:none; }
.jt-row { cursor:pointer;transition:background 0.12s; }
.jt-row:hover td { background:#f0f7ff; }
/* Post cell */
.jt-title-row { display:flex;align-items:flex-start;gap:5px;margin-bottom:4px; }
.jt-new { background:#dcfce7;color:#15803d;font-size:9px;font-weight:800;padding:2px 6px;border-radius:4px;white-space:nowrap;flex-shrink:0;margin-top:2px; }
.jt-feat { font-size:12px;flex-shrink:0;margin-top:1px; }
.jt-title { font-size:13px;font-weight:700;color:var(--secondary);line-height:1.35; }
.jt-row:hover .jt-title { color:var(--primary); }
.jt-meta-row { display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11px;color:var(--text-muted); }
.jt-dot { width:7px;height:7px;border-radius:50%;flex-shrink:0; }
.jt-org { font-weight:600; }
.jt-tag { background:var(--bg);border:1px solid var(--border);padding:1px 7px;border-radius:10px;font-size:10px;font-weight:600;white-space:nowrap; }
.jt-tag-state { color:var(--text-muted); }
/* Vac */
.jt-td-vac { text-align:center; }
.jt-vac-n { font-family:var(--font-display);font-size:16px;font-weight:800;color:var(--primary); }
.jt-vac-l { font-size:10px;color:var(--text-muted); }
.jt-na { color:var(--text-muted);font-size:12px; }
/* Date */
.jt-date { font-size:12px;font-weight:600;color:var(--text); }
.jt-date-urgent { color:#dc2626; }
.jt-date-exp { color:#94a3b8; }
.jt-dl-badge { font-size:9px;font-weight:800;padding:2px 6px;border-radius:8px;display:inline-block;margin-top:3px; }
.jt-dl-hot { background:#fee2e2;color:#dc2626; }
.jt-dl-exp { background:#f1f5f9;color:#94a3b8; }
/* Badges */
.jt-td-exp,.jt-td-type { text-align:center; }
.jt-badge { font-size:10px;font-weight:700;padding:3px 8px;border-radius:10px;white-space:nowrap; }
.exp-fresh { background:#dcfce7;color:#15803d; }
.exp-exp   { background:#fef3c7;color:#92400e; }
.exp-both  { background:#dbeafe;color:#1e40af; }
.exp-any   { background:#f1f5f9;color:#64748b; }
.type-perm { background:#dbeafe;color:#1e40af; }
.type-cont { background:#f3e8ff;color:#7c3aed; }
.type-dep  { background:#fce7f3;color:#be185d; }
.type-other { background:#f1f5f9;color:#64748b; }
/* Status */
.jt-td-status { text-align:center; }
.jt-status { font-size:10px;font-weight:700;padding:3px 8px;border-radius:10px;white-space:nowrap; }
.jt-s-open { background:#dcfce7;color:#15803d; }
.jt-s-closed { background:#fee2e2;color:#dc2626; }
.jt-s-result { background:#dbeafe;color:#1e40af; }
.jt-s-admit_card { background:#fef9c3;color:#92400e; }
.jt-s-answer_key { background:#ede9fe;color:#6d28d9; }
.jt-s-cut_off { background:#fce7f3;color:#be185d; }

/* Active filter chip */
.active-filter { background:var(--primary-light);color:var(--primary);font-size:11px;font-weight:600;padding:4px 10px;border-radius:20px;display:inline-flex;align-items:center;gap:4px; }
.active-filter a { color:var(--primary);text-decoration:none;font-size:14px;font-weight:800;line-height:1; }

/* Pagination */
.pagination { display:flex;justify-content:center;gap:4px;flex-wrap:wrap; }
.pg-btn { display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--border);border-radius:8px;text-decoration:none;color:var(--text);font-size:13px;font-weight:600;transition:all 0.15s; }
.pg-btn:hover,.pg-btn.active { background:var(--primary);color:white;border-color:var(--primary); }
.pg-ellipsis { display:flex;align-items:center;color:var(--text-muted);padding:0 4px; }

@media(max-width:768px){
  .filter-bar {
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:8px;
    gap:6px;
    align-items:center;
  }
  .filter-bar::-webkit-scrollbar { display:none; }
  .fb-search {
    flex:0 0 min(260px, 62vw);
    min-width:180px;
  }
  .fb-search input {
    padding:9px 10px 9px 32px;
    font-size:13px;
    min-height:38px;
  }
  .filter-bar select {
    flex:0 0 auto;
    width:auto;
    max-width:150px;
    min-height:38px;
    padding:9px 28px 9px 10px;
    font-size:12px;
  }
  .filter-bar button {
    flex:0 0 auto;
    min-height:38px;
    padding:8px 12px;
    justify-content:center;
  }
  .jt-th-date,.jt-th-exp,.jt-th-type { display:none; }
  .jt-td-date,.jt-td-exp,.jt-td-type { display:none; }
  .jobs-tbl { min-width:0; }
  .jt-th-post { min-width:200px; }
  .jt-th-vac { width:70px; }
  .jt-th-status { width:80px; }
  .jt-title { font-size:12px; }
}
@media(max-width:480px){
  .jt-th-vac,.jt-td-vac { display:none; }
  .jt-th-post { min-width:150px; }
  .pg-btn { width:32px; height:32px; font-size:12px; }
}
