/* ================================================================
   Employer Job Detail — employer-job.css
   ================================================================ */

.employer-job-body {
  display: flex;
  background: #f8f7f5;
  min-height: 60vh;
}
.employer-job-main {
  flex: 1;
  min-width: 0;
  padding: 24px 28px;
}
.employer-job-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-left: 0.5px solid #e8e2d9;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fdfcfa;
}

/* Back link */
.back-link {
  display: inline-block;
  font-size: 12px;
  color: #888780;
  text-decoration: none;
  margin-bottom: 14px;
}
.back-link:hover { color: #2d4a3e; text-decoration: none; }

/* Title + status pill */
.job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.job-title {
  font-size: 20px;
  font-weight: 500;
  color: #2c2c2a;
  line-height: 1.3;
}
.status-pill {
  font-size: 10px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  flex-shrink: 0;
  margin-top: 4px;
  white-space: nowrap;
}
.status-pill.status-approved { background: #eaf3de; color: #27500A; }
.status-pill.status-pending  { background: #FFF8DC; color: #7B6B00; }
.status-pill.status-draft    { background: #EFEBE9; color: #5D4037; }
.status-pill.status-rejected { background: #FFEBEE; color: #B71C1C; }
.status-pill.status-closed   { background: #F5F5F5; color: #555555; }
.status-pill.status-filled   { background: #e6f1fb; color: #0C447C; }

/* Facts strip */
.facts-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.fact {
  background: #f5f0e8;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 11px;
  color: #5F5E5A;
}

/* Expiry bar */
.expiry-bar {
  background: #fff;
  border: 0.5px solid #e8e2d9;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.expiry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.expiry-label { font-size: 11px; color: #888780; }
.expiry-days  { font-size: 13px; font-weight: 500; color: #2c2c2a; }
.expiry-track { height: 6px; background: #f0ede8; border-radius: 3px; overflow: hidden; }
.expiry-fill--ok   { height: 100%; background: #5DCAA5; border-radius: 3px; }
.expiry-fill--warn { height: 100%; background: #EF9F27; border-radius: 3px; }
.expiry-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
  color: #b4b2a9;
}

/* Stats row — scoped to avoid app.css .stat-card conflict */
.employer-job-body .stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.employer-job-body .stat-card {
  background: #fff;
  border: 0.5px solid #e8e2d9;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  box-shadow: none;
}
.employer-job-body .stat-num { font-size: 22px; font-weight: 500; color: #2d4a3e; }
.employer-job-body .stat-lbl { font-size: 10px; color: #b4b2a9; margin-top: 2px; }

/* Description / requirements */
.section-lbl {
  font-size: 10px;
  font-weight: 500;
  color: #b4b2a9;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.job-desc { font-size: 13px; color: #444441; line-height: 1.7; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li {
  font-size: 13px;
  color: #444441;
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.5;
}
.req-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5DCAA5;
}

/* Sidebar labels */
.sidebar-lbl {
  font-size: 9px;
  font-weight: 500;
  color: #b4b2a9;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Sidebar buttons */
.ej-btn-primary {
  display: block;
  width: 100%;
  padding: 11px;
  background: #2d4a3e;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  font-family: inherit;
}
.ej-btn-primary:hover { background: #3d6b57; color: #fff; text-decoration: none; }

.ej-btn-outline {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #2d4a3e;
  border: 0.5px solid #2d4a3e;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.ej-btn-outline:hover { background: #f5faf7; color: #2d4a3e; text-decoration: none; }

.ej-btn-muted {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #888780;
  border: 0.5px solid #e8e2d9;
  border-radius: 9px;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  font-family: inherit;
}
.ej-btn-muted:hover { border-color: #888780; color: #5F5E5A; text-decoration: none; }

.ej-btn-danger {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #A32D2D;
  border: 0.5px solid #F09595;
  border-radius: 9px;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  font-family: inherit;
}
.ej-btn-danger:hover { background: #FCEBEB; text-decoration: none; }

.action-divider { height: 0.5px; background: #e8e2d9; }

/* Reset form elements inside sidebar */
.employer-job-sidebar form { margin: 0; }
.employer-job-sidebar form button { width: 100%; }

/* Renewal card */
.renew-card {
  background: #eaf3de;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.renew-title { font-size: 12px; font-weight: 500; color: #27500A; }
.renew-sub   { font-size: 10px; color: #3B6D11; line-height: 1.5; }
.btn-renew {
  display: block;
  width: 100%;
  padding: 9px;
  background: #2d4a3e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
}
.btn-renew:hover { background: #3d6b57; }

/* Meta card */
.meta-card {
  background: #fff;
  border: 0.5px solid #e8e2d9;
  border-radius: 10px;
  overflow: hidden;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 0.5px solid #f5f0e8;
  font-size: 11px;
  gap: 8px;
}
.meta-row:last-child { border-bottom: none; }
.meta-label { color: #888780; flex-shrink: 0; }
.meta-val {
  color: #2c2c2a;
  font-weight: 500;
  text-align: right;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Public job detail — apply states */
.apply-done {
  background: #eaf3de;
  color: #27500A;
  border-radius: 9px;
  padding: 11px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.apply-check { margin-right: 6px; }
.apply-closed {
  background: #f5f5f5;
  color: #888780;
  border-radius: 9px;
  padding: 11px;
  font-size: 13px;
  text-align: center;
}
.whatsapp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 0.5px solid #e8e2d9;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12px;
  gap: 8px;
}

/* Mobile */
@media (max-width: 767px) {
  .employer-job-body { flex-direction: column; }
  .employer-job-sidebar {
    width: auto;
    border-left: none;
    border-top: 0.5px solid #e8e2d9;
    padding: 16px;
  }
  .employer-job-main { padding: 16px; }
  .employer-job-body .stats-row { grid-template-columns: repeat(3, 1fr); }
}
