@charset "UTF-8";
/** MES Redesign — jobs directory (component styles from the approved prototype). */
.mes-jobs2 {
  color: #263946;
  font-family: Arial, Helvetica, sans-serif;
}

.mes-j2-hero {
  background: linear-gradient(135deg, #202b36 0%, #202b36 72%, #0072b8 72%, #005f99 100%);
  color: #fff;
}

.mes-j2-inner, .mes-j2-shell {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
}

.mes-j2-inner {
  padding: 56px 0 60px;
}

.mes-j2-eyebrow {
  margin: 0 0 9px;
  color: #6cc4ed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.mes-j2-hero h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: 45px;
  line-height: 1.12;
  letter-spacing: -0.7px;
}

.mes-j2-hero p:not(.mes-j2-eyebrow) {
  max-width: 760px;
  margin: 17px 0 25px;
  color: #d7e2e8;
  font-size: 17px;
  line-height: 1.55;
}

.mes-j2-shell {
  padding: 32px 0 62px;
}

.mes-j2-tools {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(520px, 1.4fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 16px;
  padding: 23px 25px;
  border: 1px solid #dce6eb;
  border-radius: 12px;
  background: #fff;
}

.mes-j2-tools h2 {
  margin: 0;
  color: #202b36;
  font-size: 22px;
}

.mes-j2-tools p {
  margin: 5px 0 0;
  color: #647783;
  font-size: 14px;
}

.mes-j2-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.65fr);
  gap: 12px;
}

.mes-j2-controls span {
  display: block;
  margin-bottom: 6px;
  color: #405560;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mes-j2-controls input, .mes-j2-controls select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #bdd0da;
  border-radius: 7px;
  background: #fff;
  color: #202b36;
  font-size: 14px;
  outline: none;
}

.mes-j2-controls input:focus, .mes-j2-controls select:focus {
  border-color: #0072b8;
  box-shadow: 0 0 0 3px rgba(0, 114, 184, 0.13);
}

.mes-j2-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 2px 18px;
  color: #647783;
  font-size: 13px;
}

.mes-j2-meta strong {
  color: #405560;
}

.mes-j2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mes-j2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #d8e4ea;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(24, 48, 63, 0.06);
  overflow: hidden;
}

/* Employer/company badge — MES recruiters/admins only. Top-right, understated,
   consistent with .mes-j2-tag. Truncates so long names don't break the card. */
.mes-j2-employer {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  max-width: 52%;
  padding: 5px 9px;
  border-radius: 5px;
  background: #eef4f7;
  color: #4a6472;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mes-j2-card:hover {
  border-color: #b7d0dc;
  box-shadow: 0 12px 30px rgba(24, 48, 63, 0.11);
  transform: translateY(-1px);
}

.mes-j2-main {
  flex: 1;
  padding: 25px 26px 21px;
}

.mes-j2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.mes-j2-tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 5px;
  background: #f1f6f8;
  color: #607581;
  font-size: 11px;
  font-weight: 800;
}

.mes-j2-tag-ref {
  background: #e7f3fa;
  color: #0069a8;
}

.mes-j2-card h2 {
  margin: 0 0 13px;
  color: #202b36;
  font-size: 21px;
  line-height: 1.3;
}

.mes-j2-summary {
  color: #405560;
  font-size: 14px;
  line-height: 1.55;
}

.mes-j2-summary p {
  margin: 0;
}

.mes-j2-actions {
  padding: 16px 26px 19px;
  border-top: 1px solid #e0e9ed;
  background: #fbfcfd;
}

.mes-j2-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  min-height: 44px;
  padding: 12px 18px;
  text-decoration: none;
  display: flex;
  border-radius: 6px;
  background: #0072b8;
  color: #fff !important;
}

.mes-j2-apply:hover, .mes-j2-btn:hover {
  background: #005f99;
}

.mes-j2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  min-height: 44px;
  padding: 12px 18px;
  text-decoration: none;
  border: 1px solid #0072b8;
  border-radius: 6px;
  background: #0072b8;
  color: #fff !important;
  cursor: pointer;
}

.mes-j2-empty {
  grid-column: 1/-1;
  padding: 45px;
  border: 1px dashed #b9ccd6;
  border-radius: 11px;
  background: #fff;
  color: #647783;
  text-align: center;
}

.mes-j2-cta {
  margin-top: 29px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 12px;
  background: #202b36;
  color: #fff;
}

.mes-j2-cta h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.mes-j2-cta p {
  margin: 6px 0 0;
  color: #d5e0e6;
  font-size: 14px;
}

.mes-j2-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

@media (max-width: 900px) {
  .mes-j2-tools {
    grid-template-columns: 1fr;
  }
  .mes-j2-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .mes-j2-inner, .mes-j2-shell {
    width: calc(100% - 24px);
  }
  .mes-j2-inner {
    padding: 39px 0 43px;
  }
  .mes-j2-hero h1 {
    font-size: 33px;
  }
  .mes-j2-tools {
    padding: 20px;
  }
  .mes-j2-controls {
    grid-template-columns: 1fr;
  }
  .mes-j2-meta {
    flex-direction: column;
    gap: 4px;
  }
  .mes-j2-main {
    padding: 22px 20px 19px;
  }
  .mes-j2-actions {
    padding: 15px 20px 18px;
  }
  .mes-j2-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }
  .mes-j2-cta-actions, .mes-j2-cta-actions .mes-j2-btn {
    width: 100%;
  }
}
