:root {
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-hover: #f1f5f9;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-border: #bfdbfe;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}

.hidden {
  display: none !important;
}

/* =========================================================
   TOP JOBSITE NAVBAR
   ========================================================= */
.jobsite-header {
  background: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 120;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-dot {
  color: #60a5fa;
}

.brand-sub {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.header-kpis {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.header-kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  color: #e2e8f0;
}

.header-kpi-pill strong {
  color: #ffffff;
  font-weight: 700;
}

.kpi-wpp-pill {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.operator-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  color: #cbd5e1;
  font-size: 12px;
}

.operator-label {
  font-weight: 500;
  color: #94a3b8;
}

.operator-input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  width: 130px;
  outline: none;
}

.operator-input::placeholder {
  color: #64748b;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-header-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-header-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-header-cta {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-header-cta:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-emerald {
  background: var(--emerald);
  color: #ffffff;
}

.btn-emerald:hover {
  background: var(--emerald-dark);
}

.counter-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
}

/* =========================================================
   HERO SEARCH BANNER (JOBSITE STYLE)
   ========================================================= */
.search-hero {
  background: linear-gradient(180deg, #1e293b 0%, #1e3a8a 100%);
  padding: 20px 24px 18px;
  border-bottom: 1px solid #1e3a8a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.search-hero-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-search-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 6px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}

.hero-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-search-icon {
  position: absolute;
  left: 14px;
  color: var(--primary);
  pointer-events: none;
}

.hero-input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 42px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
}

.hero-input-wrap input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.clear-btn {
  position: absolute;
  right: 10px;
  background: #f1f5f9;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.hero-location-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border-light);
  padding-left: 6px;
}

.hero-loc-icon {
  position: absolute;
  left: 16px;
  color: var(--emerald);
  pointer-events: none;
}

.hero-loc-select {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 38px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  background: #f8fafc;
  cursor: pointer;
  outline: none;
}

.hero-loc-select:hover {
  background: #f1f5f9;
}

/* Sector Pills under search bar */
.sector-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.sector-pills-bar::-webkit-scrollbar {
  height: 4px;
}

.sector-pills-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
}

.sector-tab {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 6px 13px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sector-tab:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.sector-tab.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #1e3a8a;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.sector-tab-count {
  font-size: 11px;
  background: rgba(15, 23, 42, 0.25);
  padding: 1px 7px;
  border-radius: 99px;
  color: #cbd5e1;
}

.sector-tab.active .sector-tab-count {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

/* =========================================================
   MAIN 2-COLUMN JOBSITE LAYOUT (SIDEBAR + FEED)
   ========================================================= */
.jobsite-layout {
  max-width: 1600px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px;
  align-items: start;
}

/* =========================================================
   LEFT SIDEBAR FILTERS
   ========================================================= */
.filters-sidebar {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding-right: 2px;
}

.filters-sidebar::-webkit-scrollbar {
  width: 5px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sidebar-header {
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.sidebar-title svg {
  color: var(--primary);
}

.btn-reset-filters {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-reset-filters:hover {
  background: #fee2e2;
}

.sidebar-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-section-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Sidebar Toggle Buttons */
.sidebar-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-toggle {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  transition: all 0.14s ease;
}

.filter-toggle:hover {
  border-color: var(--border-strong);
  background: #ffffff;
}

.toggle-box {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: transparent;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.filter-toggle.active {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: #1e40af;
  font-weight: 600;
}

.filter-toggle.active .toggle-box {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Sidebar City Search & Multi-select List */
.sidebar-city-search input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 12.5px;
  outline: none;
}

.sidebar-city-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.sidebar-city-list {
  max-height: 195px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 4px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.city-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.city-opt-row:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.city-opt-row.selected {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.city-opt-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.city-opt-left input {
  accent-color: var(--primary);
  cursor: pointer;
}

.city-opt-count {
  font-size: 11px;
  color: var(--text-muted);
  background: #ffffff;
  padding: 1px 6px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
}

/* Sidebar Area Radio List */
.sidebar-radio-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 220px;
  overflow-y: auto;
}

.sidebar-area-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all 0.12s;
}

.sidebar-area-item:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.sidebar-area-item.active {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: var(--primary-dark);
  font-weight: 600;
}

.sidebar-area-count {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-area-item.active .sidebar-area-count {
  color: var(--primary-dark);
  font-weight: 700;
}

.sidebar-select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.sidebar-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.sidebar-select.has-val {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

/* =========================================================
   RIGHT COLUMN: TOP TOOLBAR & RESULTS FEED
   ========================================================= */
.results-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.active-tags-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.active-chip {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.active-chip button {
  background: none;
  border: none;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

/* TOP CONTROL BAR */
.results-topbar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.select-page-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.select-page-box input,
.row-chk {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.quick-batch-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.batch-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 2px;
}

.btn-batch-tag {
  height: 29px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
}

.btn-batch-tag:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-batch-tag.danger {
  border-color: #fecaca;
  color: #dc2626;
  background: #fef2f2;
}

.results-summary-pill {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: 99px;
}

.results-summary-pill strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.results-summary-pill small {
  color: var(--text-muted);
  margin-left: 4px;
}

.topbar-control-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.topbar-select {
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: #ffffff;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.segmented-view {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.view-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.top-mini-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-pager-mini {
  width: 24px;
  height: 24px;
  border: none;
  background: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.btn-pager-mini:hover:not(:disabled) {
  background: var(--primary);
  color: #ffffff;
}

.btn-pager-mini:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================================================
   JOBSITE CANDIDATE CARDS (DEFAULT VIEW)
   ========================================================= */
.candidates-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  gap: 14px;
}

.cand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid #3b82f6;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.cand-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
  border-left-color: var(--primary);
}

.cand-card.card-selected {
  border-color: var(--primary);
  border-left: 4px solid var(--primary-dark);
  background: #f8faff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.cand-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.cand-identity {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.cand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
  display: inline-block;
}

.cand-title:hover {
  color: var(--primary);
  text-decoration: underline;
}

.cand-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
}

.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Badges inside Card */
.badges-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.badge-area {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.badge-nivel {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.badge-pcd {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.badge-semexp {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.badge-esc {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

/* Job Application & Experience Box inside Card */
.cand-card-body {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cand-vaga-line {
  font-size: 12.5px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cand-vaga-line strong {
  color: var(--primary-dark);
}

.cand-exp-line {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-top: 1px dashed var(--border-light);
  padding-top: 5px;
}

.cand-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

/* Phone & Actions */
.phone-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 4px 9px;
  border-radius: var(--radius-xs);
}

.phone-mono {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.btn-copy-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
}

.btn-copy-icon:hover {
  color: var(--primary);
}

/* Status Pill Select */
.status-pill-select {
  height: 28px;
  padding: 0 9px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
}

.status-Disponível { background: #f8fafc; color: #334155; border-color: #cbd5e1; }
.status-Contatado { background: #ecfdf5; color: #047857; border-color: #6ee7b7; }
.status-EmProcesso { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.status-Favorito { background: #fefce8; color: #a16207; border-color: #fde047; }
.status-Contratado { background: #dcfce7; color: #15803d; border-color: #86efac; }
.status-Indisponível { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }

.contacted-by-meta {
  font-size: 11px;
  color: var(--emerald-dark);
  font-weight: 600;
  margin-top: 2px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-wpp-row {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  background: var(--emerald);
  border: 1px solid var(--emerald);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.25);
  transition: all 0.14s;
}

.btn-wpp-row:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
}

.btn-profile-row {
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
}

.btn-profile-row:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* =========================================================
   COMPACT TABLE VIEW (OPTIONAL SECONDARY VIEW)
   ========================================================= */
.candidates-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-xs);
}

.candidates-table {
  width: 100%;
  border-collapse: collapse;
}

.candidates-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.candidates-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.candidates-table tr:hover {
  background: #f8fafc;
}

.candidates-table tr.row-selected {
  background: #eff6ff;
}

.loc-city {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.loc-polo {
  font-size: 11px;
  color: var(--text-muted);
}

.vaga-clean-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-clean-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   PAGINATION FOOTER
   ========================================================= */
.pagination-footer {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.pagination-summary {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination-page {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

/* =========================================================
   FLOATING BULK COMMAND BAR
   ========================================================= */
.bulk-command-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 200;
}

.bulk-command-left {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
  border-right: 1px solid #334155;
}

.bulk-selection-count {
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 6px;
}

.bulk-selection-label {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.bulk-command-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-dark-outline {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #334155;
}

.btn-dark-outline:hover {
  background: #334155;
  color: #ffffff;
}

.btn-light-solid {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
}

.btn-light-solid:hover {
  background: #dbeafe;
}

/* =========================================================
   MODALS
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-card.modal-xl {
  max-width: 900px;
}

.modal-head {
  padding: 16px 22px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-icon-close {
  background: #e2e8f0;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.modal-content {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.batch-config-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.config-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-panel label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.btn-group-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.output-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.output-stats {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.output-actions {
  display: flex;
  gap: 8px;
}

.code-textarea,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  background: #f8fafc;
  color: var(--text-main);
  outline: none;
}

.form-textarea {
  font-family: inherit;
  font-size: 13.5px;
  background: #ffffff;
}

.queue-block-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.queue-scroll {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.queue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
}

.variables-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.var-tag {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  padding: 3px 9px;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.profile-stat {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.profile-stat small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.profile-stat strong {
  font-size: 13px;
  color: var(--text-main);
}

.profile-section {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.profile-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

/* LOADING */
.loading-line {
  height: 3px;
  background: #dbeafe;
  border-radius: 99px;
  overflow: hidden;
}

.loading-line-inner {
  width: 30%;
  height: 100%;
  background: var(--primary);
  animation: progressSlide 0.9s infinite ease-in-out;
}

@keyframes progressSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* TOAST */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  border-left: 4px solid #3b82f6;
}

@media (max-width: 1100px) {
  .jobsite-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: static;
    max-height: none;
  }
  .hero-search-box {
    grid-template-columns: 1fr;
  }
  .hero-location-wrap {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
  }
  .candidates-cards-grid {
    grid-template-columns: 1fr;
  }
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}
