/**
 * OMC Workday Job Board — design mirrors greenhouse-job-board-shoji
 */

html {
  scroll-behavior: smooth;
}

/* ===========================
   Filter bar (greenhouse-office_filter-2 style)
   =========================== */

.omc-wj .gh-filter {
  margin-bottom: 30px;
}

.omc-wj .greenhouse-office_filter {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
}

.omc-wj .greenhouse-office_filter-2 {
  justify-content: center;
}

/* Single unified filter row */
.omc-wj .omc-wj-filter-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* Search takes double the flex space of each dropdown */
.omc-wj .omc-wj-search-input {
  flex: 2 1 0;
  min-width: 0;
  margin-right: 0;
  height: 43px;
}

.omc-wj .greenhouse-custom-select {
  background-color: #ffffff;
  color: #000;
  appearance: none;
  border: none;
  padding: 8px 16px;
  font-size: inherit;
  border-radius: 4px;
  cursor: pointer;
  outline: 0;
  margin-right: 10px;
}

.omc-wj .omc-wj-filter-row .greenhouse-custom-select {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  margin-right: 0;
  height: 43px;
}

.omc-wj .gh_search {
  background-color: #ffffff;
  color: #000;
  appearance: none;
  border: none;
  padding: 8px 16px;
  font-size: inherit;
  border-radius: 4px;
  cursor: pointer;
  outline: 0;
  margin-right: 10px;
  height: 43px;
}

.omc-wj .greenhouse-office_filter-2 .gh_search {
  width: 22%;
  padding-left: 12px;
}

/* ===========================
   Job table (gh-job-table style)
   =========================== */

.omc-wj .gh-job-table {
  display: table;
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

/* ul#list-jobs lives inside the table but we keep list semantics for JS */
.omc-wj #list-jobs {
  display: contents;
  list-style: none;
  padding: 0;
  margin: 0;
}

.omc-wj .gh-job-row {
  display: table-row;
}

.omc-wj #list-jobs li[hidden] {
  display: none;
}

.omc-wj .gh-job-title,
.omc-wj .gh-job-type,
.omc-wj .gh-job-location,
.omc-wj .gh-job-apply {
  display: table-cell;
  padding: 8px;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
}

.omc-wj .gh-job-title {
  font-weight: bold;
  color: #fff;
  width: 48%;
  padding: 2rem 1rem;
}

.omc-wj .gh-job-type {
  text-align: left;
  color: #fff;
  padding: 2rem 1rem;
  width: 22%;
}

.omc-wj .gh-job-location {
  text-align: left;
  color: #fff;
  white-space: nowrap;
  padding: 2rem 1rem;
  width: 15%;
}

.omc-wj .gh-job-location span {
  display: inline-block;
  margin-right: 5px;
}

.omc-wj .gh-job-apply {
  padding: 2rem 1rem;
}

/* Table header row */
.omc-wj .gh-job-header .gh-job-title,
.omc-wj .gh-job-header .gh-job-type,
.omc-wj .gh-job-header .gh-job-location,
.omc-wj .gh-job-header .gh-job-apply {
  padding: 1rem;
  text-align: left;
  font-size: 20px;
}

/* Apply button */
.omc-wj .gh-btn {
  border: 1px solid #fff;
  color: #fff;
  display: inline-block;
  font-family: interstateblackcondensed, sans-serif;
  letter-spacing: 0.075em;
  margin: 0;
  padding: 0.5em 2em;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.5s ease-in-out;
  background: transparent;
  cursor: pointer;
}

.omc-wj .gh-btn:hover {
  background: #fff;
  color: #000;
}

.omc-wj .applyNowButton {
  padding: 0.5em 1.2em;
  margin: 0;
  white-space: nowrap;
}

/* ===========================
   Desktop / mobile visibility
   =========================== */

.omc-wj .display-desktop {
  display: table-row;
}

.omc-wj .display-mobile {
  display: none !important;
}

/* ===========================
   Count & no-results
   =========================== */

.omc-wj .omc-wj-count {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.omc-wj .gh-no-jobs,
.omc-wj .omc-wj-noresults {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.omc-wj .gh-no-jobs p,
.omc-wj .omc-wj-noresults p {
  color: #666;
  margin: 0;
}

.omc-wj-error {
  padding: 1rem;
  border-radius: 8px;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===========================
   Pagination (matches #gh-pagination style)
   =========================== */

.omc-wj .gh-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.omc-wj .gh-pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.omc-wj .gh-pagination li {
  display: inline-block;
}

.omc-wj .gh-pagination a,
.omc-wj .gh-pagination span {
  display: block;
  padding: 5px 10px;
  background-color: transparent;
  border: 1px solid #dee2e6;
  text-decoration: none;
  color: #ffffff;
  margin: 0 5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.omc-wj .gh-pagination a:hover {
  background-color: #fff;
  color: #000;
  border-color: #dee2e6;
}

.omc-wj .gh-pagination .current {
  background-color: #fff;
  color: #000;
  border-color: #dee2e6;
}

.omc-wj .gh-pagination .disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.omc-wj .mt-4 {
  margin-top: 1.5rem !important;
}

/* ===========================
   Responsive — tablet
   =========================== */

@media only screen and (min-width: 601px) and (max-width: 1220px) {
  .omc-wj .greenhouse-office_filter select,
  .omc-wj .greenhouse-office_filter-2 .greenhouse-custom-select {
    margin-bottom: 10px;
    width: 50%;
  }

  .omc-wj .greenhouse-office_filter {
    flex-direction: column;
    align-items: flex-start;
    align-content: baseline;
  }

  .omc-wj .greenhouse-office_filter-2 .gh_search {
    width: 50%;
    margin-bottom: 10px;
  }
}

/* ===========================
   Responsive — mobile
   =========================== */

@media (max-width: 768px) {

  .omc-wj .display-mobile {
    width: 25%;
    display: block !important;
  }

  .omc-wj .display-desktop {
    display: none !important;
  }

  .omc-wj .gh-job-table,
  .omc-wj .gh-job-row,
  .omc-wj .gh-job-title,
  .omc-wj .gh-job-type,
  .omc-wj .gh-job-location,
  .omc-wj .gh-job-apply {
    display: block;
  }

  .omc-wj #list-jobs {
    display: block;
  }

  .omc-wj .gh-job-title,
  .omc-wj .gh-job-type,
  .omc-wj .gh-job-location,
  .omc-wj .gh-job-apply {
    width: 100%;
    display: inline-flex;
    text-align: left;
    column-gap: 25px;
    padding: 1rem 1rem;
  }

  .omc-wj .gh-job-title,
  .omc-wj .gh-job-type,
  .omc-wj .gh-job-location {
    border-bottom: none;
  }

  .omc-wj .gh-job-apply {
    margin-top: 10px;
  }

  .omc-wj .omc-wj-filter-row {
    flex-wrap: wrap;
  }

  .omc-wj .omc-wj-search-input {
    flex: 1 1 100%;
    width: 100%;
  }

  .omc-wj .omc-wj-filter-row .greenhouse-custom-select {
    flex: 1 1 45%;
    width: 45%;
    margin-bottom: 8px;
  }

  .omc-wj .border {
    width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .omc-wj .greenhouse-office_filter select {
    margin-bottom: 10px;
    width: 100%;
  }

  .omc-wj .greenhouse-office_filter {
    flex-direction: column;
    align-items: flex-start;
  }

  .omc-wj .greenhouse-office_filter input {
    width: 100%;
    height: 43px;
  }
}

/* ===========================
   Single job detail page
   =========================== */

.omc-wj .gh-job-apply-section {
  background-color: #ffffff !important;
  margin-top: 20px;
}

.omc-wj .gh-apply-top-btn {
  margin-top: -10px;
  margin-bottom: 10px;
}

.omc-wj .gh-job-link:hover {
  color: #fff !important;
}

.omc-wj .ref-id {
  display: block;
  color: #fff;
}

.omc-wj .content {
  line-height: 1.6;
  font-size: 1rem;
}

.omc-wj .content span,
.omc-wj .content p,
.omc-wj .content ul,
.omc-wj .content li {
  color: #fff !important;
}

.omc-wj .content a {
  color: #fff;
  text-decoration: underline;
}

.omc-wj .omc-wj-apply-wrap {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.omc-wj-empty {
  text-align: center;
  padding: 60px 20px;
}
