.search-terms {
    padding: 10px 20px;
    background-color: #fafafc;
    border: 1px solid #ccc;
    white-space: normal !important;
}

.icon-muted {
    opacity: 0.35;
}

.icon {
    width: 32px;
}

.btn-default {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    outline: 0 none #fff;
    border: 1px solid #21bf73;
    border-radius: 18px;
    /* More inner buffer so the label isn't cramped against the edges.
       No fixed height/min-height — let the padding define the button size so
       the vertical buffer is actually visible (a fixed height absorbs it). */
    padding: 11px 30px;
    line-height: 1;
    background-color: #21bf73;
    background-image: linear-gradient(#47c789 50%, #21bf73 50%);
    background-size: 100%;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: box-shadow .2s ease, transform .2s ease;
}

/* Keep the green design on hover — just a subtle lift + shadow, matching the
   global .btn hover. The old rule flipped the whole button to a white
   background with green text, which read as a different (disabled-looking)
   button. */
.btn-default:hover,
.btn-default:focus {
	border: 1px solid #21bf73;
	background-color: #21bf73;
	background-image: linear-gradient(#47c789 50%, #21bf73 50%);
	box-shadow: 0 3px 6px rgba(33, 191, 115, 0.28);
	color: #fff;
	transform: translateY(-1px);
}

/* Force the Search submit's inner buffer regardless of any later/competing
   .btn-default rule from header.css et al. ID + !important wins the cascade
   outright — used here because the plain .btn-default padding wasn't visibly
   taking effect on this button. */
#search_submit.sr-search-submit,
#search_submit.btn-default {
	padding: 12px 32px !important;
	min-height: 0 !important;
	height: auto !important;
	line-height: 1 !important;
}

/* In-flight Search button: dimmed + non-interactive while "Searching..." so
   rapid re-clicks can't fire duplicate searches. */
.btn-default.sr-btn-loading,
.btn-default.sr-btn-loading:hover,
.btn-default.sr-btn-loading:focus {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
	transform: none;
	box-shadow: none;
}

.btn-success {
    padding: 5px 15px;
    background: #47c789;
    margin: 5px 0;
    color: #ffffff;
    border: none;
}

.squared-circle {
    border-radius: 5%;
}

/* === Result-card avatar fixes ===
   The legacy Bootstrap grid had `col-4 col-md-2` for the avatar column, which
   stretches in height with the long "About:" / job-summary column on the
   right — the inner `.profile-image-initials` rule sets `width:100% height:100%`
   so the avatar became a tall oval (the "egg shape" the user reported).
   Pin avatar to a fixed 96x96 circle, anchor to top, override the wide-mode
   stretch. Same treatment for <img> fallback so all avatars look consistent. */
.sr-result-card .row > .col-4.col-md-2 {
    display: flex;
    justify-content: center;
    align-self: flex-start;
    padding-top: 0.25rem;
}
.sr-result-card .col-4.col-md-2 > a {
    display: inline-block;
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
}
.sr-result-card .col-4.col-md-2 .profile-image-initials,
.sr-result-card .col-4.col-md-2 img {
    width: 96px !important;
    height: 96px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover;
    padding: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sr-result-card .col-4.col-md-2 .profile-image-initials.profile-image-initials-lg {
    font-size: 1.9rem !important;  /* fit text in 96px circle */
}
/* Card body now uses flex so the avatar column doesn't stretch to match the
   text column. */
.sr-result-card > .row {
    align-items: flex-start;
}
/* A bit of breathing room around each card */
.sr-result-card {
    padding: 1rem 1rem 0.75rem !important;
}
/* Cards with a map_id are clickable (pan map to their pin) — only show
   the hand cursor on the non-button parts to avoid double affordance. */
.sr-result-card[data-map-id]:not([data-map-id$=":"]):hover {
    cursor: pointer;
    background: #fafcfb;
}
.sr-result-card[data-map-id] a,
.sr-result-card[data-map-id] button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: #2e9cca;
}

.search-terms .term-pill a.term {
    color: #333;
}

.search-terms .term-pill:hover a.term:hover {
	color: #fff;
	text-decoration: none;
}

.search-terms .term-pill a.remove {
    color: #ccc;
    font-family: arial;
    font-size: 0.8rem;
}

.search-terms .term-pill:hover a.remove:hover {
	color: #fff;
	text-decoration: none;
}

.search-terms .term-pill:hover a.term {
	color: #fff;
}

.search-terms .term-pill:hover a.remove {
	color: #ccc;
	font-family: arial;
	font-size: 0.8rem;
}

ul.disc-blue {
    list-style: none;
}

ul.disc-blue li::before {
    display: inline-block;
    margin-left: -0.7em;
    width: 1em;
    line-height: 20px;
    content: "\25e6";
    color: #14274e;
    font-size: 20px;
    font-weight: bold;
}

@media (min-width: 768px) {
	.bl-1 {
		border-left: 1px solid #ccc;
		padding-left:40px;
	}
}

.add-location-form-group .form-control{
    display: inline-block !important;
    width: 20% !important;
}

.location-wrapper {
    padding: 5px 15px 5px 15px;
    background-color: #fafafc;
    border: 1px solid #ccc;
    white-space: normal !important;
}

/*term box css*/

.form-inline {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

.form-inline label {
  margin: 5px 10px 5px 0;
}

.form-inline input {
  vertical-align: middle;
  margin: 5px 10px 5px 0;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
}
.form-inline button {
  /*padding: 10px 20px;*/
  /*background-color: dodgerblue;*/
  border: 1px solid #ddd;
  color: white;
  cursor: pointer;
}

.form-inline div, .form-inline a {
    margin-right: 10px;
}

.hide_element, #add_term_btn{
    display: none;
}





/* search and create */
.search-form {
	/*position: absolute;*/
	/*background: #14274E;*/
	width: 100%;
	border-radius: 1%;
 /*   padding: 23px 0 21px;
	/*margin-top: 220px;*/
}

.search-form select,
.search-form input {
	background-color: #f7f7f7;
	color: black;
	border: 4px solid #14274E;
	width: 100%;
	height: 46px;
	margin: 0;
	font: 10pt "Open Sans", sans-serif;
	padding: 0 10px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border-radius: 3px;
}

/* label {
	display: block !important;
	font-size: 12px;
	font-weight: 600;
} */

.search-form button {
	background: #f7f7f7;
	border: solid 1px rgba(0, 0, 0, 0.3);
	border-radius: 3px;
	box-sizing: border-box;
	width: 50%;
	padding: 10px;
}

input:focus {
	outline: none;
}



/*suggestion box list css*/



.term-search-input .suggestion-box {
	padding: 0;
	opacity: 0;
	pointer-events: none;
	max-height: 280px;
	overflow-y: auto;
	border: 1px solid #14274E;
}

.term-search-input.active .suggestion-box {
	padding: 10px 8px;
	opacity: 1;
	pointer-events: auto;
}


.suggestion-box button {
	list-style: none;
	padding: 8px 12px;

	width: 50%;
	cursor: pointer;
	border-radius: 3px;
}

.term-search-input.active .suggestion-box li {
	display: block;
}

.sugg-row:hover {
	background: #efefef;
}

.term-search-input .icon {
	position: absolute;
	right: 15px;
	top: 20px;
	height: 55px;
	width: 55px;
	text-align: center;
	line-height: 55px;
	font-size: 20px;
	color: #14274E;
	cursor: pointer;
}

.occup_img {
	width: 60px;
	height: 50px;
}

.sugg-row {
	cursor: pointer;
	padding: 5px;
}

.select-type-results {
	width: auto;
	height: auto;
	border: 1px solid grey;
	border-radius: 5px;
}


.occup_img {
	width: 60px;
	height: 50px;
}

/* .close-btn{
border: none;
background: none;
font-size: 30px;
padding: 0;
width: 30px;
} */

h1,
h1,
h3,
h4,
h5 {
	color: #14274e;
}

/* term related */
.term-related {
	margin-bottom: 2px;
	padding: 3px 4px;
	border: 1px solid #21bf73;
	background-color: #21bf73;
	color: #fff;
	font-weight: normal;
	font-size: 0.8rem;
	text-align: left;
   /* white-space: normal !important; */
}

.term-related:hover {
	background-color: #47c789;
	cursor: pointer;
}
/* .term-related:hover a.remove {
	color: #d6f2e5;
	font-family: arial;
	font-size: 0.6rem;
	font-weight: 800;
} */

.term-related:hover a.term:hover {
	color: #fff;
	text-decoration: none;
}

.term-related:hover a.remove:hover {
	color: #fff;
	text-decoration: none;
}

#prepared {
	width: 20px;
	height: 20px;
	border: 1px solid #f5db31;
	box-shadow: outset 0px 0px 12px #f5db31;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f5db31;
	color: #14274E;
}

.modal-header {
	display: flex;
	-ms-flex-align: start;
	align-items: flex-start;
	-ms-flex-pack: justify;
	justify-content: space-between;
	padding: 1rem 1rem;
	border-bottom: 1px solid #dee2e6;
	border-top-left-radius: 0.3rem;
	border-top-right-radius: 0.3rem;
}

.term-general {
	margin-bottom: 2px;
	padding: 3px 7px;
	border: 1px solid #f05454;
	background-color: #f05454;
	color: #fff;
	font-weight: normal;
	font-size: 0.8rem;
	text-align: left;
	white-space: normal !important;
}

.modal-footer {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-pack: end;
	justify-content: flex-end;
	padding: 1rem;
	border-top: 1px solid #dee2e6;
	border-bottom-right-radius: 0.3rem;
	border-bottom-left-radius: 0.3rem;
}

.badge-secondary:hover {
	background-color: #f05454;
}

/* .remove_span:hover{
	height:18px;
	width: 18px;
} */

.badge-secondary {
	font-size: 0.5rem;
	border-radius: 0.25rem !important;
	margin-bottom: 2px;
	padding: 3px 7px;
	border: 1px solid #f05454;
	background-color: #f05454;
	color: #fff;
	font-weight: normal;
	/* font-size: 0.8rem; */
	text-align: left;
	white-space: normal !important;
}

.modal-content {
	border: 1px solid #dee2e6;
}

.term_badge_warpper {
	position: relative;
	display: inline-block;
	background-color: red;
}

#create_term_modal {
	width: 100%;
}

.remove_span {
	height: 15px;
	width: 15px;
	border-radius: 50%;
	padding: 5px;
	border: 1px solid;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tableFixHead          { overflow: auto; height: 300px; }
.tableFixHead thead th { position: sticky; top: 0; z-index: 1; }
.remove{
  font-weight: 700;
/*  font-size: 1rem;  */
  padding-left: 4px;
}

@media screen and (min-device-width: 320px) and (max-device-width: 455px) {

	body, h1, h2, h3, h4, h5, h6{
		font-size: 4vw;
	}
	.btn-default{
		font-size: 3vw;
	}
	.btn{
		font-size: 3.5vw;
	}
	.icon{
		width: 6vw;	
	}
	input{
		font-size: 3.5vw !important;
	}
}

#modal-badge-term {
    max-width: 14rem;
    max-height: 3rem;
    height: 3rem;
    width: 14rem;
    display: flex;
    align-items: center;
    justify-content: center;
 }

.additional-modal label.custom-label {
    font-size: 10px !important;
    font-weight: 400 !important;
}

/* 3-way toggle switch: Jobs / Both / Candidate */
.switches-container_tripple {
  width: 15rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ddffee;
  border-radius: 3rem;
  line-height: 2.5rem;
  border: 1px solid #47c789;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(71, 199, 137, 0.2);
  transform: scale(0.9);
  padding: 4px;
}

.switches-container_tripple input {
  visibility: hidden;
  position: absolute;
  top: 0;
}

.switches-container_tripple label {
  width: 50%;
  padding: 0;
  margin: 0;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  color: #2f6f46;
  user-select: none;
  transition: color 0.3s ease;
}

.switch-wrapper_tripple {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc((100% - 8px) / 3);
  background: #47c789;
  border-radius: 3rem;
  transition: transform 0.35s ease;
  z-index: 1;
  overflow: hidden;
}

.switch_tripple {
  display: flex;
  height: 100%;
  width: 300%;
  border-radius: 3rem;
  background: #47c789;
  transition: transform 0.35s ease;
}

.switch_tripple div {
  text-align: center;
  opacity: 0;
  color: #fff;
  display: block;
  transition: opacity .2s cubic-bezier(.77, 0, .175, 1) .125s;
  will-change: opacity;
  position: absolute;
  top: 0;
  left: 0;
}

.switches-container_tripple input:nth-of-type(1):checked ~ .switch-wrapper_tripple {
  transform: translateX(0%);
}
.switches-container_tripple input:nth-of-type(2):checked ~ .switch-wrapper_tripple {
  transform: translateX(100%);
}
.switches-container_tripple input:nth-of-type(3):checked ~ .switch-wrapper_tripple {
  transform: translateX(200%);
}

.switches-container_tripple input:nth-of-type(1):checked ~ .switch-wrapper_tripple .switch_tripple {
  transform: translateX(0%);
}
.switches-container_tripple input:nth-of-type(2):checked ~ .switch-wrapper_tripple .switch_tripple {
  transform: translateX(-33.3333%);
}
.switches-container_tripple input:nth-of-type(3):checked ~ .switch-wrapper_tripple .switch_tripple {
  transform: translateX(-66.6666%);
}

.switches-container_tripple input:nth-of-type(1):checked ~ label[for="jobs_only"],
.switches-container_tripple input:nth-of-type(2):checked ~ label[for="both"],
.switches-container_tripple input:nth-of-type(3):checked ~ label[for="candidate_only"] {
  color: #ffffff;
  font-weight: 600;
}

.switches-container_tripple label:hover {
  color: #1b5e37;
}

/* Search area button alignment */
.search-wrapper .gap-1 {
  gap: 0.35rem !important;
}

/* Results cards */
.top_candidate,
.top_jobs {
  transition: all 0.3s ease;
}

/* Pill row alignment */
#search_pill {
  min-height: 40px;
}

#search_pill h6 {
  white-space: nowrap;
}

/* Responsive: stack buttons on small screens */
@media (max-width: 767px) {
  .search-form .col-md-2 {
    margin-top: 10px;
  }
}

/* === Search page polish (sr-* namespace) === */

/* Hero */
.sr-hero {
    background: linear-gradient(135deg, #f1f8ff 0%, #e8f5ec 100%);
    border: 1px solid #cfe2ff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}
.sr-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}
.sr-hero-sub {
    color: #495057;
    font-size: 0.98rem;
    margin: 0;
}
.sr-hero-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
    color: #495057;
    font-size: 0.88rem;
    margin-top: 0.5rem;
}
.sr-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    margin-right: 0.35rem;
}

/* Quickstart chips */
.sr-quickstart {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.sr-quickstart-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.sr-quickstart-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-right: 0.4rem;
    min-width: 110px;
}
.sr-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #d8dee4;
    background: #ffffff;
    color: #198754;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
}
.sr-chip:hover {
    border-color: #198754;
    background: #198754;
    color: #ffffff;
    text-decoration: none;
}
.sr-chip-location {
    color: #0d6efd;
}
.sr-chip-location:hover {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #ffffff;
}
.sr-chip-soft {
    color: #495057;
    background: #f1f3f5;
    border-color: #f1f3f5;
}
.sr-chip-soft:hover {
    background: #495057;
    border-color: #495057;
    color: #ffffff;
}

/* Empty state */
.sr-empty {
    text-align: center;
    padding: 3rem 1.25rem;
    background: #ffffff;
    border: 1px dashed #d8dee4;
    border-radius: 12px;
    margin: 1rem 0 1.25rem;
}
.sr-empty-icon {
    color: #adb5bd;
    margin-bottom: 0.75rem;
}
.sr-empty-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.35rem;
}
.sr-empty-sub {
    color: #6c757d;
    max-width: 36rem;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Polish the existing result sections */
.top_jobs, .top_candidate {
    border-radius: 12px !important;
    border: 1px solid #e3e7eb !important;
    background: #ffffff !important;
}
.top_jobs h4, .top_candidate h4 {
    font-size: 1.1rem;
    color: #212529;
}

/* Make suggestion box float over content instead of pushing siblings down */
.search-input { position: relative; }
.search-input .suggestion-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d8dee4;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
    padding: 0;
    margin-top: -2px;
}
.search-input .suggestion-box:empty {
    display: none;
}
.search-input .suggestion-box .sugg-row {
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    margin: 0;
}
.search-input .suggestion-box .sugg-row:last-child {
    border-bottom: none;
}
.search-input .suggestion-box .sugg-title {
    list-style: none;
    margin: 0;
    color: #212529;
    font-size: 0.93rem;
}

/* Miles slider (volume-bar style) */
.sr-miles {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 999px;
    font-size: 0.82rem;
    color: #14274E;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.sr-miles-prefix {
    font-weight: 700;
    flex: 0 0 auto;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    color: #6c757d;
}
.sr-miles-value {
    flex: 0 0 auto;
    min-width: 76px;
    font-weight: 700;
    color: #14274E;
    font-size: 0.88rem;
    text-align: right;
}
/* Win over `.search-form input { border: 4px solid …; height: 46px; … }` */
.search-form input[type="range"].sr-miles-range,
input[type="range"].sr-miles-range {
    flex: 1 1 auto !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    height: 6px !important;
    background: linear-gradient(to right, #198754 0%, #198754 var(--p, 10%), #e3e7eb var(--p, 10%), #e3e7eb 100%) !important;
    background-color: transparent !important;
    border-radius: 3px !important;
    outline: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: auto !important;
    box-shadow: none !important;
}
.sr-miles-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #198754;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.sr-miles-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #198754;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.sr-miles-range:focus {
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.18);
}

/* Disabled (no location set) — slider greyed out, thumb hidden, cursor not-allowed */
.search-form input[type="range"].sr-miles-range--disabled,
input[type="range"].sr-miles-range--disabled {
    background: #e9ecef !important;
    cursor: not-allowed !important;
    opacity: 0.55 !important;
}
.sr-miles-range--disabled::-webkit-slider-thumb {
    background: #adb5bd !important;
}
.sr-miles-range--disabled::-moz-range-thumb {
    background: #adb5bd !important;
}
.sr-miles:has(.sr-miles-range--disabled) .sr-miles-value,
.sr-miles:has(.sr-miles-range--disabled) .sr-miles-prefix {
    color: #adb5bd;
}

/* Distance pill — floats over each result card (jobs + candidates) */
#candidate_pill .card-body.sr-result-card,
#job_pill .card-body.sr-result-card,
#more_candidates .card-body.sr-result-card,
#more_jobs .card-body.sr-result-card {
    position: relative;
}
.sr-distance-pill {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background-color: #e6f4ec;
    color: #0f5132;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 2;
}

/* Mobile tweaks */
@media (max-width: 575px) {
    .sr-hero { padding: 1rem; }
    .sr-hero-title { font-size: 1.3rem; }
    .sr-quickstart-label { min-width: auto; flex-basis: 100%; margin-bottom: 0.2rem; }
}

/* === Smart Search Bar === */
.sr-smart-wrap {
    position: relative;
}
.search-form input.sr-smart-input,
input.sr-smart-input {
    width: 100% !important;
    height: 54px !important;
    padding: 0 1rem !important;
    border-radius: 10px !important;
    border: 2px solid #198754 !important;
    background: #ffffff !important;
    font-size: 1.05rem !important;
    color: #212529;
    box-shadow: 0 1px 4px rgba(25, 135, 84, 0.08);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.search-form input.sr-smart-input:focus,
input.sr-smart-input:focus {
    border-color: #14274E !important;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.14) !important;
    outline: none !important;
}
.sr-smart-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d8dee4;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 360px;
    overflow-y: auto;
    z-index: 60;
    display: none;
    padding: 0.25rem;
}
.sr-smart-suggestions.open {
    display: block;
}
.sr-smart-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s ease;
}
.sr-smart-row:hover {
    background: #e6f4ec;
}
.sr-smart-icon {
    font-size: 1.15rem;
    flex: 0 0 auto;
    width: 28px;
    text-align: center;
}
.sr-smart-text {
    flex: 1 1 auto;
    min-width: 0;
}
.sr-smart-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sr-smart-type {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-top: 0.1rem;
}
.sr-smart-empty {
    padding: 0.85rem 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

/* === Map view === */
.sr-view-toggle {
    display: inline-flex;
    gap: 0.25rem;
    background: #f1f3f5;
    border-radius: 999px;
    padding: 0.2rem;
}
.sr-view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sr-view-toggle-btn:hover {
    color: #198754;
}
.sr-view-toggle-btn--active {
    background: #198754;
    color: #ffffff;
}
.sr-view-toggle-btn--active:hover {
    color: #ffffff;
}
.sr-map-section {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.sr-map-section h5 {
    color: #14274E;
    font-weight: 700;
    font-size: 1.05rem;
}
.sr-map-count {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.sr-map {
    width: 100%;
    height: 460px;
    border-radius: 8px;
    background: #e9ecef;
    overflow: hidden;
}
.sr-map-empty,
.sr-map-error {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 0.75rem;
}
.sr-map-error {
    color: #842029;
    background: #f8d7da;
}
@media (max-width: 575px) {
    .sr-map { height: 320px; }
}

/* === Visible filter chip row (mirrors Filters modal values) === */
.sr-filter-chip-row {
    margin-top: 0.25rem;
    padding: 0.25rem 0;
}
.sr-filter-chip-label {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-right: 0.25rem;
}
.sr-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    background: #ffffff;
    border: 1px solid #d8dee4;
    border-radius: 999px;
    font-size: 0.82rem;
    color: #212529;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.sr-filter-chip:hover {
    background: #f1f3f5;
    border-color: #adb5bd;
    color: #212529;
    text-decoration: none;
}
.sr-filter-chip.is-active {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
}
.sr-filter-chip.is-active:hover {
    background: #157347;
    border-color: #157347;
    color: #ffffff;
}
.sr-filter-chip-more {
    border-style: dashed;
    color: #14274E;
    font-weight: 600;
}

/* === No-results coach === */
.sr-no-results {
    margin-top: 0.5rem;
}
.sr-no-results .sr-empty-sub strong {
    color: #14274E;
}

/* === Loading skeletons === */
.sr-skeleton {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0.75rem 0 1.25rem;
}
.sr-skeleton-card {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    min-height: 96px;
}
.sr-skel-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 0.6rem;
    background: linear-gradient(90deg, #eef0f3 0%, #f6f7f9 50%, #eef0f3 100%);
    background-size: 200% 100%;
    animation: sr-skel-pulse 1.3s ease-in-out infinite;
}
.sr-skel-line:last-child { margin-bottom: 0; }
.sr-skel-line.w-30 { width: 30%; }
.sr-skel-line.w-40 { width: 40%; }
.sr-skel-line.w-60 { width: 60%; }
@keyframes sr-skel-pulse {
    0%   { background-position: 200% 0; opacity: 0.85; }
    50%  { background-position: 0% 0;   opacity: 1; }
    100% { background-position: -200% 0; opacity: 0.85; }
}
@media (max-width: 575px) {
    .sr-skeleton { grid-template-columns: 1fr; }
}
/* === Saved Searches + Alerts ============================================ */
/* "Your saved searches" row in the hero. Distinct soft-blue look so users
   can tell these chips are personal (vs the orange popular-role chips). */
.sr-saved-search-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.sr-saved-search {
    display: inline-flex;
    align-items: center;
    background: #eaf3ff;
    color: #0b4a8a;
    border: 1px solid #b5d3f5;
    border-radius: 14px;
    padding: 2px 6px 2px 10px;
    font-size: 0.78rem;
    line-height: 1.4;
    gap: 4px;
    max-width: 100%;
}
.sr-saved-search-link {
    color: #0b4a8a;
    font-weight: 600;
    text-decoration: none;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sr-saved-search-link:hover {
    color: #073e76;
    text-decoration: underline;
}
.sr-alert-toggle {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #557;
    font-size: 0.72rem;
    padding: 0 6px;
    cursor: pointer;
    line-height: 1.5;
}
.sr-alert-toggle:hover { background: rgba(11, 74, 138, 0.08); }
.sr-alert-toggle-on {
    background: #fff5d6;
    border-color: #f1d27a;
    color: #7a5a00;
}
.sr-saved-search-remove {
    background: transparent;
    border: none;
    color: #a44;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.sr-saved-search-remove:hover { color: #d22; }

/* Action column on the pills row: primary Search button on top (full column
   width), the secondary Save action directly beneath it, then the save
   feedback. Stacking right-aligned keeps Save from "hanging" off the end of
   the Search button on narrow widths. */
.sr-action-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.sr-action-col .sr-search-submit {
    margin-bottom: 0;
}
/* "Save" button — secondary action, sits under Search and centers to match. */
.sr-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 5px 14px;
    font-size: 0.72rem;
    border: 1px solid #b5d3f5;
    border-radius: 6px;
    background: #eaf3ff;
    color: #0b4a8a;
    text-decoration: none;
    cursor: pointer;
}
.sr-save-btn:hover {
    background: #d8e9fb;
    color: #073e76;
}
.sr-save-feedback {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: #2a6a2a;
}
/* On phones the action column sits below the pills — keep the controls inline
   and left-aligned there so they don't float oddly in a full-width row. */
@media (max-width: 767.98px) {
    .sr-action-col {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
    .sr-action-col .sr-search-submit {
        width: auto;
    }
    .sr-save-feedback {
        flex-basis: 100%;
        text-align: left;
    }
}
.sr-save-feedback-err { color: #a02020; }

/* === Recent searches (localStorage; rendered by inline IIFE) === */
.sr-recent-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed #e9ecef;
}
.sr-recent-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    flex: 1 1 auto;
}
.sr-recent-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #e9ecef;
    background: #f1f3f5;
    color: #495057;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sr-recent-chip:hover {
    background: #495057;
    border-color: #495057;
    color: #ffffff;
    text-decoration: none;
}
.sr-recent-chip-icon {
    font-size: 0.85rem;
    line-height: 1;
}
.sr-recent-clear {
    margin-left: auto;
    font-size: 0.75rem;
    color: #adb5bd;
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: color 0.15s ease;
}
.sr-recent-clear:hover {
    color: #dc3545;
    text-decoration: none;
}

/* === Pagination footer (per-section, jobs + candidates) ================== */
.sr-pagination-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px dashed #e3e7eb;
}
.sr-pagination-footer.sr-pagination-loading {
    opacity: 0.55;
    pointer-events: none;
}
.sr-paginator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}
.sr-paginator-info {
    font-size: 0.8rem;
    color: #6c757d;
}
.sr-paginator-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 0.55rem;
    border-radius: 999px;
    border: 1px solid #d8dee4;
    background: #ffffff;
    color: #495057;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sr-paginator-btn:hover:not(.sr-paginator-btn--disabled):not(.sr-paginator-btn--active) {
    border-color: #198754;
    color: #198754;
}
.sr-paginator-btn--active {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
    cursor: default;
}
.sr-paginator-btn--disabled {
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}
.sr-paginator-btn--nav {
    font-weight: 600;
}
.sr-paginator-ellipsis {
    color: #adb5bd;
    padding: 0 0.25rem;
    font-size: 0.85rem;
    user-select: none;
}

/* === Density toggle (compact / detailed result cards) ==================== */
.sr-density-toggle {
    display: inline-flex;
    border: 1px solid #d8dee4;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}
.sr-density-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 0.55rem;
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sr-density-toggle-btn + .sr-density-toggle-btn {
    border-left: 1px solid #e9ecef;
}
.sr-density-toggle-btn:hover {
    color: #198754;
}
.sr-density-toggle-btn--active {
    background: #198754;
    color: #ffffff;
}
.sr-density-toggle-btn--active:hover {
    color: #ffffff;
}

/* Compact density overrides — applied via .sr-density-compact on .top_jobs
   or .top_candidate. Reduces padding, shrinks avatar (overrides the 96px
   wide-mode rule above), truncates long text to 1 line, shrinks distance pill. */
.sr-density-compact .card-body.sr-result-card,
.sr-density-compact .sr-result-card {
    padding: 0.5rem 0.75rem !important;
}
.sr-density-compact .sr-result-card .col-4.col-md-2 > a {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}
.sr-density-compact .sr-result-card .col-4.col-md-2 .profile-image-initials,
.sr-density-compact .sr-result-card .col-4.col-md-2 img {
    width: 56px !important;
    height: 56px !important;
}
.sr-density-compact .sr-result-card .col-4.col-md-2 .profile-image-initials.profile-image-initials-lg {
    font-size: 1.1rem !important;
}
.sr-density-compact .sr-result-card h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem !important;
}
/* Truncate About / Job Summary to 1 line */
.sr-density-compact .sr-result-card .col-md-6 > div:last-of-type {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
    color: #6c757d;
}
.sr-density-compact .sr-result-card p {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}
.sr-density-compact .sr-result-card .sr-distance-pill {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
}
.sr-density-compact .sr-result-card .bl-1 {
    padding-left: 12px !important;
}
.sr-density-compact .sr-result-card .btn-sm {
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
}

/* === Result-card browse-parity meta (2026-05-26) ===
   Category eyebrow, title link, location/pay/posted meta row, placement
   badges, summary. Mirrors the .aj-card-* look from the /browse listing. */
.sr-result-card .sr-card-cat {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2e9cca;
    margin-bottom: 0.15rem;
}
.sr-result-card .sr-card-title-link {
    color: #14274e;
}
.sr-result-card .sr-card-title-link:hover {
    color: #2e9cca;
    text-decoration: underline;
}
.sr-result-card .sr-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
    font-size: 0.8rem;
    color: #555;
}
.sr-result-card .sr-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}
.sr-result-card .sr-meta-item svg {
    flex: 0 0 auto;
    opacity: 0.7;
}
.sr-result-card .sr-placement-badge {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #1b6b4c;
    background: #e7f6ee;
    border-radius: 0.3rem;
}
.sr-result-card .sr-card-summary {
    font-size: 0.85rem;
    color: #333;
}
/* Compact density trims the meta + summary too */
.sr-density-compact .sr-result-card .sr-card-summary,
.sr-density-compact .sr-result-card .sr-card-meta {
    font-size: 0.72rem;
}
@media (max-width: 575.98px) {
    .sr-result-card .sr-card-meta {
        gap: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Related postings ("You might also like") — separate stacked cards */
.sr-related-item + .sr-related-item .sr-result-card {
    border-top: 1px solid #eee;
}
#sr-related-toggle {
    font-size: 0.8rem;
}

