/* xLocums DE-88: job archive / specialty search card.
   Hide Post Date, number every visible field in order, free-text location,
   light grey dropdown hover (same as profession list). No yellow.
   Do not put angle brackets in comments. */

#jobbank_search_form,
.xl-job-selector__form{counter-reset:xlstep}

/* Site snippet and this plugin add .xl-step to the field container. */
#jobbank_search_form .form-group.xl-step,
#jobbank_search_form .ep_search_field.xl-step,
.xl-job-selector__field.xl-step{
  display:flex;
  align-items:center;
  gap:8px;
  counter-increment:xlstep;
}
#jobbank_search_form .form-group.xl-step>select,
#jobbank_search_form .form-group.xl-step>.xl-ss,
#jobbank_search_form .form-group.xl-step>input[type=text],
#jobbank_search_form .ep_search_field.xl-step>select,
#jobbank_search_form .ep_search_field.xl-step>.xl-ss,
#jobbank_search_form .ep_search_field.xl-step>input[type=text],
.xl-job-selector__field.xl-step>select,
.xl-job-selector__field.xl-step>.xl-ss,
.xl-job-selector__field.xl-step>input[type=text]{
  flex:1 1 auto;
  min-width:0;
  width:auto;
}

/* If the site script tagged the wrap after searchable-select ran, do not
   draw a second number on .xl-ss. */
.xl-ss.xl-step::before{content:none!important;display:none!important}

/* Number on the field, unless the empty-archive card already has a badge span. */
#jobbank_search_form .form-group.xl-step:not(:has(.xl-job-selector__num))::before,
#jobbank_search_form .ep_search_field.xl-step:not(:has(.xl-job-selector__num))::before,
.xl-job-selector__field.xl-step:not(:has(.xl-job-selector__num))::before{
  content:counter(xlstep);
  flex:0 0 22px;
  width:22px;
  height:22px;
  line-height:22px;
  border-radius:50%;
  background:#4169E1;
  color:#fff;
  font-size:12px;
  font-weight:600;
  text-align:center;
  font-family:"Work Sans",Helvetica,Arial,sans-serif;
}

/* Empty-archive card: reuse the existing badge, replace hardcoded 1-5. */
.xl-job-selector__field.xl-step .xl-job-selector__num{
  flex:0 0 22px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#4169E1;
  color:#fff;
  font-size:0;
  text-align:center;
}
.xl-job-selector__field.xl-step .xl-job-selector__num::before{
  content:counter(xlstep);
  font:600 12px/22px "Work Sans",Helvetica,Arial,sans-serif;
}

/* Hidden fields must not take a number. display:none skips CSS counters. */
#jobbank_search_form .form-group:has([name="sfdate_post"]),
#jobbank_search_form .form-group:has(#xl_sfdate_post),
#jobbank_search_form .ep_search_field:has([name="sfdate_post"]),
#jobbank_search_form .ep_search_field:has(#xl_sfdate_post),
.xl-job-selector__field:has([name="sfdate_post"]),
.xl-job-selector__field:has(#xl_sfdate_post),
.xl-sf-date-hidden{
  display:none!important;
  counter-increment:none;
}

.xl-loc-text{
  padding-bottom:1rem;
}
.xl-loc-text input[type=text]{
  height:calc(3em);
  min-height:46px;
  padding:6px 10px;
  border:1px solid #cfd6e2;
  border-radius:10px;
  background:#fff;
  color:#031232;
  font:400 16px/1.3 "Work Sans",Helvetica,Arial,sans-serif;
  box-sizing:border-box;
}
.xl-loc-text input[type=text]:focus{
  outline:0;
  border-color:#3f6ae0;
  box-shadow:0 0 0 4px rgba(63,106,224,.15);
  background:#fff;
}

@media(max-width:767px){
  #jobbank_search_form .form-group.xl-step,
  #jobbank_search_form .ep_search_field.xl-step,
  .xl-job-selector__field.xl-step{gap:6px}
  #jobbank_search_form .form-group.xl-step:not(:has(.xl-job-selector__num))::before,
  #jobbank_search_form .ep_search_field.xl-step:not(:has(.xl-job-selector__num))::before,
  .xl-job-selector__field.xl-step:not(:has(.xl-job-selector__num))::before,
  .xl-job-selector__field.xl-step .xl-job-selector__num{
    flex-basis:20px;
    width:20px;
    height:20px;
  }
  #jobbank_search_form .form-group.xl-step:not(:has(.xl-job-selector__num))::before,
  #jobbank_search_form .ep_search_field.xl-step:not(:has(.xl-job-selector__num))::before,
  .xl-job-selector__field.xl-step:not(:has(.xl-job-selector__num))::before{
    line-height:20px;
    font-size:11px;
  }
  .xl-job-selector__field.xl-step .xl-job-selector__num::before{font-size:11px;line-height:20px}
}

/* =====================================================================
   DE-88 / t422u: empty-archive "No open jobs" card
   More vertical padding, even buttons, no clipped borders, no yellow.
   Card top lines up with the left search box on desktop.
   ===================================================================== */
.xl-empty-jobs-inline{
  margin:0 0 28px;
  padding:32px 28px;
  overflow:visible;
  box-sizing:border-box;
}
.xl-empty-jobs-inline__title{
  margin:0 0 14px;
  font:700 22px/1.3 "Work Sans",sans-serif;
  color:#001233;
}
.xl-empty-jobs-inline__hint{
  margin:0 0 16px;
  font:400 15px/1.55 "Work Sans",sans-serif;
  color:#5b6474;
}
.xl-empty-jobs-inline__actions,
.xl-empty-jobs__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  gap:12px;
  padding:1px;
  box-sizing:border-box;
}
.xl-empty-jobs-inline__actions .xl-empty-jobs__btn,
.xl-empty-jobs__actions .xl-empty-jobs__btn,
.xl-empty-jobs-inline .xl-empty-jobs__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  flex:1 1 0;
  min-width:0;
  min-height:44px;
  height:44px;
  margin:0;
  padding:0 16px;
  border:2px solid #4169e1;
  border-radius:8px;
  font:600 14px/1 "Work Sans",sans-serif;
  text-decoration:none!important;
  text-align:center;
  white-space:nowrap;
  overflow:visible;
  background-clip:padding-box;
  -webkit-appearance:none;
  appearance:none;
  vertical-align:middle;
}
.xl-empty-jobs-inline__actions .xl-empty-jobs__btn--primary,
.xl-empty-jobs__actions .xl-empty-jobs__btn--primary,
.xl-empty-jobs-inline .xl-empty-jobs__btn--primary{
  background:#4169e1!important;
  color:#fff!important;
  border-color:#4169e1;
}
.xl-empty-jobs-inline__actions .xl-empty-jobs__btn--primary:hover,
.xl-empty-jobs__actions .xl-empty-jobs__btn--primary:hover{
  background:#2f54c7!important;
  border-color:#2f54c7;
  color:#fff!important;
}
.xl-empty-jobs-inline__actions .xl-empty-jobs__btn--ghost,
.xl-empty-jobs__actions .xl-empty-jobs__btn--ghost,
.xl-empty-jobs-inline .xl-empty-jobs__btn--ghost{
  background:#fff!important;
  color:#4169e1!important;
  border-color:#4169e1;
}
.xl-empty-jobs-inline__actions .xl-empty-jobs__btn--ghost:hover,
.xl-empty-jobs__actions .xl-empty-jobs__btn--ghost:hover{
  background:#f5f7fb!important;
  color:#4169e1!important;
  border-color:#4169e1;
}

/* Tax-archive empty template: line the intro up with the left selector card. */
@media (min-width:782px){
  body.xl-empty-jobs .xl-empty-jobs__intro{padding-top:0}
}

/* Default: match the 1rem top padding around the left .form-search card
   (#ep_search_fields_all.p-3). JS then fine-tunes to the filter card top. */
@media (min-width:768px){
  #full_grid > #dirpro_directories > .xl-empty-jobs-inline{
    margin-top:1rem;
  }
}

@media (max-width:767px){
  .xl-empty-jobs-inline{padding:28px 18px}
  .xl-empty-jobs-inline__title{font-size:20px}
  .xl-empty-jobs-inline__actions,
  .xl-empty-jobs__actions{flex-direction:column}
  .xl-empty-jobs-inline__actions .xl-empty-jobs__btn,
  .xl-empty-jobs__actions .xl-empty-jobs__btn{flex:1 1 auto;width:100%}
  #full_grid > #dirpro_directories > .xl-empty-jobs-inline{margin-top:0}
}
