/**
 * EzyHires foundation responsive styles (site chrome + lists + forms).
 * Loaded after main.css / ezy-modals / ezy-tiles. Prefer shared fixes here
 * over per-page redesigns. Deploy: assets/easyhire/css + assets/css mirror.
 * Cache-bust: ezy-responsive.css?v=27
 */

/* Teams mark on live-call buttons (replaces fab fa-skype) */
.ezy-teams-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: -0.125em;
  color: inherit;
  flex-shrink: 0;
}

.ezy-teams-icon svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

/* -------------------------------------------------------------------------
   Global: stop horizontal page scroll; clamp common bleed sources
   ------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

.site-wrapper {
  overflow-x: hidden;
  max-width: 100%;
}

/* Content images (avatars keep fixed size via ezy-avatars !important) */
img,
svg,
video,
canvas {
  max-width: 100%;
}

iframe {
  max-width: 100%;
}

pre,
code {
  max-width: 100%;
  overflow-x: auto;
}

/* Soft min-width utilities that force horizontal overflow on phones */
@media (max-width: 575.98px) {
  .min-width-px-235,
  .min-width-px-273,
  .min-width-px-210,
  .min-width-px-205,
  .min-width-px-185,
  .min-width-px-170,
  .min-width-px-155,
  .min-width-px-135,
  .min-width-px-125,
  .min-width-px-110,
  .min-width-px-96 {
    min-width: 0 !important;
    max-width: 100%;
  }

  .max-width-px-840 {
    max-width: 100% !important;
  }

  /* Profile / training experience modals used min-width:930px */
  .min-field-width-930,
  .modal-dialog.min-field-width-930 {
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* -------------------------------------------------------------------------
   Header / nav chrome
   ------------------------------------------------------------------------- */

/*
 * Brand wordmark (EzyHires / JobPortal): always one line.
 * Prefer smaller type + tighter header padding over wrapping "Ezy" / "Hires".
 */
.brand-logo {
  flex-shrink: 0;
  align-items: flex-start;
  max-width: 100%;
  min-width: 0;
}

/* Brand left inset: 16px restore + 10px nudge toward center. Wordmark size unchanged. */
.site-header .brand-logo {
  padding-left: 26px;
}

.brand-logo > a {
  flex-shrink: 0;
  display: inline-block;
  text-decoration: none;
  min-width: 0;
}

.site-header .brand-logo h3,
.brand-logo h3,
.brand-logo a h3,
footer.footer > .container h3:first-of-type,
footer.footer .col-lg-4 > h3:first-of-type {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none;
  margin-bottom: 0;
  line-height: 1.15;
  display: inline-block;
  max-width: none;
  flex-shrink: 0;
}

/* Original desktop wordmark. Do not shrink for the env tag or laptop chrome. */
.site-header .brand-logo h3,
.brand-logo h3 {
  font-size: 1.625rem !important; /* 26px — one step up from 1.5rem / 24px */
}

/* Ezy | Hires  — env caption starts under H (second column), not beside the mark */
.brand-logo h3.brand-lockup,
.brand-logo .brand-lockup {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  white-space: nowrap !important;
}

.brand-logo .brand-ezy {
  flex-shrink: 0;
}

.brand-logo .brand-hires-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.brand-logo .brand-hires {
  color: #00b074;
}

.qa-test-label {
  display: block;
  color: #c62828;
  font-size: 1rem !important; /* 16px — one step under 1.125rem / 18px */
  font-weight: 700 !important; /* bold */
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0.05rem 0 0;
  padding: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

h5 .qa-test-label {
  display: inline;
  margin: 0 0 0 0.4em;
  font-size: 0.65em;
  vertical-align: middle;
}

/* Superadmin image: env caption under the logo, not beside it */
.navbar-brand {
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100%;
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.navbar-brand > img {
  width: auto !important;
  max-width: min(160px, 42vw) !important;
  max-height: 40px;
  height: auto;
  flex-shrink: 0;
}

/*
 * Navbar row: brand + profile + hamburger stay on one line without logo/menu collision.
 * Collapse panel is off-flow when closed; when open it stacks full width.
 * Desktop (lg+): nowrap so avatar never drops under the brand at 100% laptop zoom.
 */
.site-header .site-navbar.navbar,
header.site-header .navbar.site-navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.site-header .navbar-toggler,
.site-header .hamburger-icon {
  flex-shrink: 0;
  margin-left: auto;
  z-index: 2;
}

.site-header .header-btn-devider,
.site-header .header-btns {
  min-width: 0;
  flex-shrink: 0;
}

/* Laptop / desktop 100% zoom (~1280–1440 CSS px): one header row */
@media (min-width: 992px) {
  .site-header .site-navbar.navbar,
  header.site-header .navbar.site-navbar {
    flex-wrap: nowrap !important;
  }

  .site-header .navbar-collapse {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header .navbar-nav-wrapper {
    min-width: 0;
    max-width: 100%;
  }

  .site-header .main-menu.navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-header .main-menu > li > .nav-link {
    margin-left: 4px !important;
    margin-right: 4px !important;
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .site-header .header-btn-devider,
  .site-header .header-btns {
    flex: 0 0 auto;
    margin-left: 0.5rem !important;
    padding-left: 0.5rem !important;
  }

  .site-header .proile.ml-7,
  .site-header .profile.ml-7,
  .site-header .proile,
  .site-header .profile {
    margin-left: 0.35rem !important;
    max-width: none;
  }

  .site-header .proile .fas.fa-chevron-down.ml-6,
  .site-header .profile .fas.fa-chevron-down.ml-6 {
    margin-left: 0.4rem !important;
  }

  .site-header .container-fluid-fluid.px-10,
  .site-header .px-10,
  header.site-header .px-10 {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
}

/* Tighter still on typical 14–15″ laptop widths at 100% zoom */
@media (min-width: 992px) and (max-width: 1439.98px) {
  .site-header .main-menu > li > .nav-link {
    margin-left: 2px !important;
    margin-right: 2px !important;
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
    font-size: 0.8125rem;
  }

  header.site-header.py-7 {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
  }
}

/* Employer Saved vs Posted Jobs: extra gap so star + Saved does not read as one word */
@media (min-width: 992px) {
  .site-header .main-menu > li.nav-item-saved > .nav-link {
    margin-right: 0.5rem !important;
    padding-right: 0.4rem !important;
  }

  .site-header .main-menu > li.nav-item-posted-jobs > .nav-link {
    margin-left: 0.35rem !important;
    padding-left: 0.4rem !important;
  }
}

/* -------------------------------------------------------------------------
   Header nav dropdown carets — sit after label (and status dot), never overlap.
   Applies to every role that uses .main-menu .gr-toggle-arrow:
   employee (Training Courses / Live Training / Quiz / Reference),
   employer (Background Check / Questionnaire; commented Posted Jobs / Live Training),
   guest + public include/header (no dropdown tabs today — rules still safe).
   Root cause: main.css @992px sets
   .main-menu > li > .nav-link.gr-toggle-arrow i { position:absolute; right:-2px }
   (24px glyph) while laptop nav padding is ~0.2rem, so the caret paints over
   the last letters / green dots. Selectors below match or beat that (0,4,1).
   ------------------------------------------------------------------------- */
.site-header .main-menu .gr-toggle-arrow,
.main-menu .gr-toggle-arrow,
header.site-header .navbar-nav.main-menu .nav-link.gr-toggle-arrow {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start !important;
  flex-wrap: nowrap;
  gap: 0.1rem;
}

.site-header .main-menu .gr-toggle-arrow > .dot,
.main-menu .gr-toggle-arrow > .dot {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Beat main.css absolute caret — must stay in-flow on all roles */
.site-header .main-menu > li > .nav-link.gr-toggle-arrow > i,
.site-header .main-menu > li > .nav-link.gr-toggle-arrow > i.icon,
.site-header .main-menu > li > .nav-link.gr-toggle-arrow > i.icon-small-down,
.main-menu > li > .nav-link.gr-toggle-arrow > i,
.main-menu > li > .nav-link.gr-toggle-arrow > i.icon-small-down,
.site-header .main-menu .gr-toggle-arrow > i,
.main-menu .gr-toggle-arrow > i {
  position: static !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  flex-shrink: 0;
  margin-left: 0.05rem !important;
  font-size: 1.05rem !important;
  line-height: 1;
  height: auto;
  width: auto;
  transform-origin: center center;
  transition: transform 0.4s;
}

/* Bootstrap .dropdown-toggle::after caret — hide; icon glyph is the only caret */
.site-header .main-menu .gr-toggle-arrow.dropdown-toggle::after,
.main-menu .gr-toggle-arrow.dropdown-toggle::after,
.site-header .main-menu .gr-toggle-arrow::after,
.main-menu .gr-toggle-arrow::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
  margin: 0 !important;
}

/* Preserve hover / open rotate (same as main.css) */
.site-header .main-menu > li:hover > .gr-toggle-arrow > i,
.main-menu > li:hover > .gr-toggle-arrow > i,
.site-header .main-menu .gr-toggle-arrow:hover > i,
.main-menu .gr-toggle-arrow:hover > i,
.site-header .main-menu > li.show > .gr-toggle-arrow > i,
.main-menu > li.show > .gr-toggle-arrow > i {
  transform: rotate(-180deg);
}

@media (min-width: 992px) {
  .site-header .main-menu > li > .nav-link.gr-toggle-arrow,
  .main-menu > li > .nav-link.gr-toggle-arrow {
    padding-right: 0.35rem !important;
  }

  .site-header .main-menu > li > .nav-link.gr-toggle-arrow:before,
  .main-menu > li > .nav-link.gr-toggle-arrow:before {
    width: 100%;
  }

  /* Re-assert inside the same breakpoint as main.css absolute rule */
  .site-header .main-menu > li > .nav-link.gr-toggle-arrow > i,
  .main-menu > li > .nav-link.gr-toggle-arrow > i {
    position: static !important;
    right: auto !important;
  }
}

/* Stacked / off-canvas nav: label+dot left, caret at trailing edge */
@media (max-width: 991.98px) {
  .site-header .main-menu .gr-toggle-arrow,
  .main-menu .gr-toggle-arrow {
    display: flex !important;
    width: 100%;
  }

  .site-header .main-menu .gr-toggle-arrow > i,
  .main-menu .gr-toggle-arrow > i {
    margin-left: auto !important;
  }
}

/* Profile chip: ellipsis so long names do not crush brand */
header .proile,
header .profile,
.site-header .proile,
.site-header .profile {
  min-width: 0;
  max-width: min(42vw, 11rem);
}

header .proile .media-body,
header .proile span,
header .profile .media-body,
header .proile h4,
header .profile h4,
.site-header .proile .media-body,
.site-header .profile .media-body {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .site-header .container-fluid-fluid.px-10,
  .site-header .px-10,
  header.site-header .px-10 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Home hard-codes 96px header padding; clamp for tablets */
  body .site-header > .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Wordmark stays 1.625rem (locked above); env stays 1rem */

  /* Less header chrome on phone/tablet so wordmark keeps room */
  header.site-header.py-7 {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
  }

  /* Feedback FAB — smaller corner clear on phones */
  button.position-fixed.bg-green.rounded-circle[data-target="#feedbackmodal"],
  button.position-fixed.bg-green.rounded-circle[data-bs-target="#feedbackmodal"] {
    width: 52px !important;
    height: 52px !important;
    bottom: 16px !important;
    right: 14px !important;
    z-index: 1040;
  }
}

@media (max-width: 575.98px) {
  .site-header .container,
  .site-header .container-fluid-fluid {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  body .site-header > .container {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }

  header .proile,
  header .profile,
  .site-header .proile,
  .site-header .profile {
    max-width: min(36vw, 8.5rem);
  }

  /* Hide verbose profile labels next to avatar if layout is tight */
  .site-header .proile .media-body p,
  .site-header .profile .media-body p {
    display: none;
  }
}

/* Stacked offcanvas menu: full height scroll, no page width blow-out */
@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    flex-basis: 100%;
    max-width: 100%;
  }

  .site-navbar .navbar-collapse.show,
  .site-navbar .navbar-collapse.collapsing {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-navbar .main-menu .nav-link {
    white-space: normal;
  }

  .gr-menu-dropdown.dropdown-menu {
    max-width: min(100%, 320px);
  }

  /* Backend AdminLTE top bar */
  .navbar-fixed-top .navbar-header {
    float: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .navbar-fixed-top .navbar-toggle {
    margin-right: 8px;
  }
}

/* -------------------------------------------------------------------------
   Main content padding / containers
   ------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .row {
    max-width: 100%;
  }

  /* Stack common bootstrap half-columns in content areas */
  .dashboard-main-container .row > [class*="col-md-"],
  .dashboard-main-container .row > [class*="col-lg-"],
  .site-wrapper .pt-30 .row > [class*="col-md-6"],
  .site-wrapper .pt-30 .row > [class*="col-lg-6"],
  .site-wrapper section .row > [class*="col-md-4"],
  .site-wrapper section .row > [class*="col-lg-4"] {
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .container,
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Common large theme paddings inside tiles / modals */
  .site-wrapper .px-11,
  .site-wrapper .pl-11,
  .site-wrapper .pr-11 {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }

  .site-wrapper .px-9,
  .site-wrapper .pl-9,
  .site-wrapper .pr-9 {
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
  }

  .site-wrapper .px-xl-9,
  .site-wrapper .px-lg-7 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Dashboard leaves room for fixed sidebar button on small screens */
  .dashboard-main-container {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 56px;
    max-width: 100%;
    overflow-x: auto;
  }

  /* Form label/control pairs that use col-md-2 / col-md-10 */
  .form-horizontal .row > [class*="col-"],
  .edit-form .row > [class*="col-"],
  .form-group.row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .control-label.text-right,
  label.control-label.text-right {
    text-align: left !important;
  }

  /* Button groups wrap instead of overflowing */
  .btn-group,
  .btn-toolbar,
  .d-flex.gap-2,
  .d-flex.align-items-center {
    max-width: 100%;
  }

  .btn-group {
    flex-wrap: wrap;
  }
}

/* -------------------------------------------------------------------------
   Tables → horizontal scroll (do not break table layout)
   ------------------------------------------------------------------------- */
.table-responsive,
.ezy-table-scroll,
.dataTables_wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* -------------------------------------------------------------------------
   Employer (and site) data tables: labels vs clickable actions
   Plain text = label. Links/buttons = green + underline + clearer hit targets.
   ------------------------------------------------------------------------- */
.content_wrapper table.table tbody td,
.dashboard-main-container table.table tbody td {
  color: #334155;
}

.content_wrapper table.table tbody a:not(.badge):not(.dropdown-item):not(.btn),
.dashboard-main-container table.table tbody a:not(.badge):not(.dropdown-item):not(.btn) {
  color: #0b7a4f !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1.5px !important;
  cursor: pointer;
}

.content_wrapper table.table tbody a:not(.badge):not(.dropdown-item):not(.btn):hover,
.dashboard-main-container table.table tbody a:not(.badge):not(.dropdown-item):not(.btn):hover {
  color: #08633f !important;
  text-decoration-thickness: 2px !important;
}

.content_wrapper table.table tbody .btn,
.content_wrapper table.table tbody a.btn,
.content_wrapper table.table tbody button.btn,
.content_wrapper table.table tbody .btn-small,
.content_wrapper table.table tbody .btn-sm,
.dashboard-main-container table.table tbody .btn,
.dashboard-main-container table.table tbody a.btn,
.dashboard-main-container table.table tbody button.btn,
.dashboard-main-container table.table tbody .btn-small,
.dashboard-main-container table.table tbody .btn-sm {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  min-width: 6.75rem;
  padding: 0.45rem 1rem !important;
  margin: 0.15rem 0.25rem 0.15rem 0 !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  text-decoration-thickness: 1.25px !important;
  white-space: nowrap;
  border-radius: 0.35rem !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.content_wrapper table.table tbody a.btn:has(> i.fa-eye),
.content_wrapper table.table tbody .btn:has(> i.fa-eye) {
  min-width: 2.5rem !important;
  padding: 0.4rem 0.55rem !important;
  text-decoration: none !important;
}

.content_wrapper table.table tbody a.badge,
.dashboard-main-container table.table tbody a.badge {
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  font-weight: 600 !important;
  padding: 0.35rem 0.65rem !important;
}

.content_wrapper table.table tbody span.badge,
.dashboard-main-container table.table tbody span.badge {
  text-decoration: none !important;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   Posted Jobs list: compact columns (no force-wide scroll), stacked salary/location
   ------------------------------------------------------------------------- */
.ezy-jobs-list-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.ezy-jobs-list-table {
  width: 100%;
  table-layout: auto;
}

.ezy-jobs-list-table th,
.ezy-jobs-list-table td {
  vertical-align: middle !important;
}

.ezy-jobs-list-table .ezy-jobs-nowrap,
.ezy-jobs-list-table .ezy-jobs-col-date,
.ezy-jobs-list-table .ezy-jobs-col-exp,
.ezy-jobs-list-table .ezy-jobs-col-type {
  white-space: nowrap !important;
}

.ezy-jobs-list-table .ezy-jobs-col-title {
  min-width: 8rem;
}

.ezy-jobs-list-table .ezy-jobs-col-salary {
  min-width: 4.5rem;
  line-height: 1.25;
}

.ezy-jobs-list-table .ezy-jobs-salary-period {
  display: block;
  font-size: 0.85em;
  color: #64748b;
  white-space: nowrap;
}

.ezy-jobs-list-table .ezy-jobs-salary-amount {
  white-space: nowrap;
  display: block;
}

.ezy-jobs-list-table .ezy-jobs-salary-line {
  white-space: normal;
}

/* Job tiles / detail: amount + currency + unit on ONE line */
.ezy-jobs-pay-under-apply,
.ezy-jobs-salary-line {
  display: inline-block;
  white-space: nowrap;
}

/* Tile pay under Apply: extra line below Apply + modest left from the right edge */
.ezy-tile-lift .ezy-jobs-pay-col {
  padding-top: 2.65rem;
  padding-right: 1.4rem;
  text-align: right;
}
.ezy-tile-lift .ezy-jobs-pay-under-apply {
  display: inline-block;
  white-space: nowrap;
  margin-top: 0.55rem;
}

.ezy-jobs-salary-amount,
.ezy-jobs-salary-period {
  display: inline;
  white-space: nowrap;
}
.ezy-jobs-salary-period {
  font-size: 0.9em;
  color: #64748b;
}

.ezy-jobs-list-table .ezy-jobs-col-loc {
  min-width: 5.5rem;
  line-height: 1.3;
}

.ezy-jobs-list-table .ezy-jobs-loc-line {
  display: block;
  white-space: nowrap;
}

.ezy-jobs-list-table .ezy-jobs-col-date {
  min-width: 5.5rem;
}

.ezy-jobs-list-table .ezy-jobs-col-apps {
  min-width: 7rem;
}

.ezy-jobs-list-table .ezy-jobs-col-status {
  min-width: 4.5rem;
}

.ezy-jobs-list-table .ezy-jobs-col-actions {
  min-width: 5.5rem;
  width: 5.5rem;
  white-space: nowrap;
}

.ezy-jobs-list-table .ezy-jobs-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  white-space: nowrap;
}

.ezy-jobs-list-table .ezy-jobs-settings {
  display: inline-block;
  float: none !important;
  position: relative;
}

/* Compact icon controls (eye / cog) — same size, side by side */
.ezy-jobs-list-table .ezy-jobs-icon-btn,
.ezy-jobs-list-table a.ezy-jobs-icon-btn,
.ezy-jobs-list-table button.ezy-jobs-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 2.25rem !important;
  width: 2.25rem !important;
  max-width: 2.25rem !important;
  min-height: 2.25rem !important;
  height: 2.25rem !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  border-radius: 0.35rem !important;
}

.ezy-jobs-list-table .ezy-jobs-col-apps .btn-small,
.ezy-jobs-list-table .ezy-jobs-col-status .btn-small {
  min-width: 0 !important;
  width: auto !important;
  padding: 0.4rem 0.75rem !important;
}

.ezy-jobs-list-table .ezy-jobs-status-closed.disabled,
.ezy-jobs-list-table span.ezy-jobs-status-closed {
  opacity: 0.75;
  cursor: not-allowed !important;
  pointer-events: none;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* -------------------------------------------------------------------------
   Employer list cards (Manage Projects pattern): title + View N in card-header
   ------------------------------------------------------------------------- */
.ezy-employer-list-card .ezy-list-card-header {
  display: block;
  padding: 1rem 1.25rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Quota / Available sits above the list card (not in main header) */
.ezy-list-available {
  font-size: 0.98rem;
  color: #334155;
  margin: 0 0 0.65rem 0.15rem;
}

html[data-ezy-theme="dark"] .ezy-list-available,
html.ezy-theme-dark .ezy-list-available {
  color: #c5d4cc !important;
}

.ezy-list-card-meta {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 0.45rem;
}

.ezy-list-card-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.ezy-list-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.ezy-list-card-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  margin-left: auto;
}

.ezy-list-perpage {
  display: flex !important;
  align-items: center;
  column-gap: 0.45rem;
  font-size: 0.92rem;
  color: #334155;
  white-space: nowrap;
}

.ezy-list-perpage .form-control,
.ezy-list-perpage select {
  width: 4.5rem !important;
  min-width: 4.5rem;
  height: 2rem !important;
  padding: 0.15rem 0.4rem !important;
  font-size: 0.9rem !important;
}

.ezy-employer-list-card .table_body {
  padding-top: 0;
}

.ezy-employer-list-card .card-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fafbfc;
}

html[data-ezy-theme="dark"] .ezy-employer-list-card .ezy-list-card-header,
html.ezy-theme-dark .ezy-employer-list-card .ezy-list-card-header {
  background: var(--ezy-dm-elevated, #2a2a33) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-ezy-theme="dark"] .ezy-list-card-title,
html.ezy-theme-dark .ezy-list-card-title {
  color: #f2f5f3 !important;
}

html[data-ezy-theme="dark"] .ezy-list-card-meta,
html.ezy-theme-dark .ezy-list-card-meta,
html[data-ezy-theme="dark"] .ezy-list-perpage,
html.ezy-theme-dark .ezy-list-perpage {
  color: #c5d4cc !important;
}

html[data-ezy-theme="dark"] .ezy-employer-list-card .card-footer,
html.ezy-theme-dark .ezy-employer-list-card .card-footer {
  background: rgba(255, 255, 255, 0.03) !important;
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Wallet / DataTables bare tables: allow both axes when parent only set overflow-y */
.card-body > div[style*="overflow-y"],
.card-body .table-responsive {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
  /* Bare tables without .table-responsive parent */
  .site-wrapper table.table,
  .dashboard-main-container table.table,
  .content-wrapper table.table,
  .main-content table.table,
  section table.table,
  .bg-white > table,
  .card-body > table,
  .card-body > div > table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-wrapper table.table th,
  .site-wrapper table.table td,
  .dashboard-main-container table.table th,
  .dashboard-main-container table.table td,
  .card-body table.table th,
  .card-body table.table td {
    white-space: nowrap;
  }

  /* Superadmin content tables */
  .content-wrapper .box-body > table,
  .content-wrapper .box-body .table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* -------------------------------------------------------------------------
   Search / filter bars (jobs, candidates, counsellor)
   Keep keyword + country/state/city + Search on one baseline with real gaps.
   (Dark mode surfaces used to stretch selects while Search stuck high / tight.)
   ------------------------------------------------------------------------- */
/* Job keyword: pull placeholder in next to the magnifier (pl-13 left ~50px gap felt empty). */
.ezy-job-keyword-field .form-control {
  padding-left: 2.1rem !important;
  padding-right: 0.5rem !important;
}
.ezy-job-keyword-field .ezy-job-keyword-icon {
  width: 2rem !important;
}

/* More filters Skill / Visa: match form-control height; keep placeholder left */
.advance-wp .select2-container--default .select2-selection--multiple {
  min-height: 3rem !important;
  padding: 0.5rem 0.75rem !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 0.3125rem !important;
  box-sizing: border-box;
}
.advance-wp .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
}
.advance-wp .select2-container--default .select2-search--inline .select2-search__field {
  text-align: left !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
}

.filter-search-form-2,
.filter-search-form-1 {
  max-width: 100%;
  box-sizing: border-box;
}

.filter-search-form-2 .filter-inputs,
.filter-search-form-1 .filter-inputs {
  min-width: 0;
  max-width: 100%;
}

/* Desktop/tablet landscape: one row, fields and Search button bottom-aligned */
@media (min-width: 992px) {
  .filter-search-form-2 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    gap: 16px !important;
    width: 100%;
  }

  .filter-search-form-2 .filter-inputs {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .filter-search-form-2 .filter-inputs > .form-group {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-right: 0 !important;
    display: block !important;
  }

  .filter-search-form-2 .filter-inputs .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 12px !important;
  }

  .filter-search-form-2 .filter-inputs .row > [class*="col-"] {
    flex: 1 1 0 !important;
    max-width: none !important;
    width: auto !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Kill nested form-group flex/top margin from page styles (.search-form .form-group) */
  .filter-search-form-2 .filter-inputs .form-group {
    display: block !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-right: 0 !important;
  }

  .filter-search-form-2 .filter-inputs .form-control,
  .filter-search-form-2 .filter-inputs .nice-select,
  .filter-search-form-2 .filter-inputs select {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .filter-search-form-2 .filter-inputs .nice-select {
    display: flex !important;
    align-items: center !important;
    line-height: 1.25 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .filter-search-form-2 .button-block {
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 148px !important;
    max-width: 180px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    align-self: flex-end !important;
  }

  .filter-search-form-2 .button-block .btn-submit,
  .filter-search-form-2 .button-block .btn {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 991.98px) {
  .filter-search-form-2 {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .filter-search-form-2 .filter-inputs {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .filter-search-form-2 .filter-inputs > .form-group {
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
  }

  .filter-search-form-2 .filter-inputs .form-group {
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .filter-search-form-2 .button-block {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .filter-search-form-2 .button-block .btn-submit {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 767.98px) {
  .filter-search-form-2 .filter-inputs .row {
    margin-left: 0;
    margin-right: 0;
    gap: 8px;
  }

  .filter-search-form-2 .filter-inputs [class*="col-"] {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .filter-search-form-2 .filter-inputs .form-group {
    width: 100% !important;
    height: auto !important;
    min-height: 40px;
  }

  .filter-search-form-2 .filter-inputs .form-control,
  .filter-search-form-2 .filter-inputs select,
  .filter-search-form-2 .filter-inputs .nice-select,
  .filter-search-form-2 .filter-inputs input {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Jobs page min-width on filter inputs blows out at phone */
  .filter-search-form-2 .filter-inputs {
    min-width: 0 !important;
  }

  /* Advance filter label/control rows (nested col-md inside col-md) */
  .advance-wp .row > [class*="col-"],
  .advance-wp [class*="col-md-"] {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .advance-wp .control-label.text-right {
    text-align: left !important;
  }
}

/* Forms / inputs */
@media (max-width: 575.98px) {
  input.form-control,
  select.form-control,
  textarea.form-control,
  .form-control,
  .nice-select,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  select,
  textarea {
    max-width: 100%;
    box-sizing: border-box;
  }

  .input-group {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
  }

  /* CTA rows with two equal buttons */
  .d-flex > .btn + .btn,
  .btn-block-group .btn {
    max-width: 100%;
  }
}

/* -------------------------------------------------------------------------
   List tiles (candidates, jobs, counsellor) — single column on phone
   ------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .ezy-tile-lift,
  .hover-shadow-3.light-mode-texts {
    overflow: hidden;
  }

  .ezy-tile-lift .row > [class*="col-"],
  .hover-shadow-3.ezy-tile-lift .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ezy-tile-lift .media {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .ezy-tile-lift .media > div,
  .ezy-tile-lift .media .media-body {
    min-width: 0;
    max-width: 100%;
  }

  /* Action buttons pinned absolute often collide on narrow cards */
  .light-mode-texts .btn-action,
  .ezy-tile-lift .btn-action {
    position: static !important;
    margin-bottom: 0.5rem;
    text-align: left;
  }

  .candidate-meta-right,
  .candidate-location-col {
    padding-right: 0.75rem !important;
    text-align: left !important;
  }

  .candidate-seals-rating,
  .candidate-rating-slot {
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .candidate-seals {
    justify-content: flex-start !important;
  }

  /* Mid-laptop “widen tile” hack in jobs/ajax_list must never bleed */
  #result-data .hover-shadow-3,
  .ezy-tile-lift.hover-shadow-3 {
    margin-left: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }

  /* Square avatar blocks that had large top margin on phone */
  .ezy-tile-lift .square-72,
  #result-data .square-72 {
    margin-top: 0 !important;
  }
}

/* Always neutralize the 992–1199px jobs page width:120% hack */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #result-data .hover-shadow-3,
  .ezy-tile-lift.hover-shadow-3 {
    margin-left: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }
}

/* Per-page / pagination toolbars */
@media (max-width: 575.98px) {
  #perpageview {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center !important;
  }

  .pagination.float-right {
    float: none !important;
  }

  /* Apply All + per-page row on jobs */
  #result-data > .mb-8.d-flex {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/*
 * Stacking (must stay in this order):
 *   tiles ~1–6
 *   sticky View-per-page / Apply All bar 1020
 *   site header + all top-nav flyouts 1030 / 1035
 *   modal backdrop 1040 < modal 1050/1055
 * Header was 999 while the pinned bar used inline 1025, so Training /
 * Live Training / Quiz (MCQ) / Questionnaire first items painted under the bar.
 */
header.site-header,
header.site-header.site-header--absolute,
header.site-header.position-fixed {
  z-index: 1030;
  overflow: visible;
}

.site-header--sticky:not(.mobile-sticky-enable),
.site-header--sticky:not(.mobile-sticky-enable).reveal-header {
  z-index: 1030;
}

.site-header .navbar,
.site-header .navbar-nav-wrapper,
.site-header .main-menu,
.site-header .nav-item.dropdown {
  overflow: visible;
}

@media (min-width: 992px) {
  .site-header .nav-item.dropdown:hover > .gr-menu-dropdown,
  .site-header .nav-item.dropdown.show > .gr-menu-dropdown,
  .site-header .dropdown.show > .gr-menu-dropdown,
  .site-header .dropdown.show > .dropdown-menu,
  .site-header .dropdown-menu.show,
  .site-header .show-gr-dropdown.show .gr-menu-dropdown,
  .site-header .show-gr-dropdown:hover .gr-menu-dropdown {
    z-index: 1035;
  }
}

/*
 * Sticky Apply All / View-per-page toolbar: above list tiles, below header menus.
 * Do NOT add overflow:hidden on ancestors of this bar — pinning uses position:fixed.
 */
.ezy-jobs-sticky-toolbar,
.ezy-jobs-sticky-toolbar.ezy-jobs-toolbar--fixed,
.ezy-cand-sticky-toolbar,
.ezy-cand-sticky-toolbar.ezy-jobs-toolbar--fixed,
#ezy-jobs-sticky-toolbar {
  z-index: 1020;
  max-width: 100%;
  box-sizing: border-box;
}

body.modal-open .ezy-jobs-sticky-toolbar,
body.modal-open .ezy-jobs-sticky-toolbar.ezy-jobs-toolbar--fixed,
body.modal-open .ezy-cand-sticky-toolbar,
body.modal-open #ezy-jobs-sticky-toolbar {
  z-index: 1010;
}

/* -------------------------------------------------------------------------
   Modals — keep usable at ~375px (works with ezy-modals.css)
   Stacking: sticky bar 1020 < header 1030 < backdrop 1040 < modal 1050/1055
   ------------------------------------------------------------------------- */
.modal {
  z-index: 1050;
}

#feedbackmodal {
  z-index: 1055 !important;
}

.fancybox-container {
  z-index: 1060 !important;
}

@media (max-width: 575.98px) {
  .modal-dialog {
    margin-left: 12px;
    margin-right: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
  }

  #job-modal .modal-dialog,
  #activity-modal .modal-dialog,
  #edit-experience-modal .modal-dialog,
  #main-experience-modal .modal-dialog,
  .form-modal .modal-dialog,
  .form-moda .modal-dialog,
  #signup .modal-dialog,
  #login .modal-dialog,
  #feedbackmodal .modal-dialog,
  #profileImageModal .modal-dialog,
  #subscriptionModal .modal-dialog {
    margin-left: auto;
    margin-right: auto;
    max-width: min(100vw - 16px, 100%);
  }

  .login-modal-body,
  #signup .login-modal-body,
  #login .login-modal-body {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }

  /* Marketing / form modal left panel can hide on phone to free space */
  #login .login-modal-main > .row > .col-lg-5,
  #signup .login-modal-main > .row > .col-lg-5 {
    display: none;
  }

  #login .login-modal-main > .row > .col-lg-7,
  #signup .login-modal-main > .row > .col-lg-7,
  #login .login-modal-main > .row > .col-md-6,
  #signup .login-modal-main > .row > .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Feedback modal body scrolls; close remains in header */
  #feedbackmodal .modal-content {
    max-height: min(90vh, calc(100vh - 24px));
    display: flex;
    flex-direction: column;
  }

  #feedbackmodal .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
  }

  #feedbackmodal .modal-header .close {
    margin: -0.5rem -0.5rem -0.5rem auto;
    padding: 0.5rem;
  }

  /* Generic Bootstrap modals (profile image, crop, membership) */
  .modal.show .modal-dialog,
  .modal.in .modal-dialog {
    max-height: min(90vh, calc(100vh - 24px));
  }

  .modal .modal-content {
    max-height: min(90vh, calc(100vh - 24px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .modal .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }

  /* Close buttons on form-style modals stay inside viewport */
  .form-modal .modal-dialog > button.circle-32[data-dismiss="modal"],
  .form-moda .modal-dialog > button.circle-32[data-dismiss="modal"],
  #job-modal .modal-dialog > button.circle-32[data-dismiss="modal"] {
    top: 8px !important;
    right: 8px !important;
  }
}

/* -------------------------------------------------------------------------
   Profile / company shells
   ------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .profile-box,
  .bg-white.shadow-9.rounded-4 {
    max-width: 100%;
  }

  /* Title rows with absolute actions */
  .profile-box .row,
  .bg-white.rounded-4 .row {
    max-width: 100%;
  }

  /* Legacy absolute title offset used on profile pages */
  .dddd {
    position: static !important;
    margin: 0 0 0.75rem !important;
  }

  /* Membership plan cards */
  .pricing-table,
  .membership-card,
  .plan-box {
    max-width: 100%;
  }

  /* Background check forms with fixed-ish table cells */
  .form-control[style*="min-width"] {
    min-width: 0 !important;
    max-width: 100%;
  }
}

/* Skill chips already capped in ezy-tiles; ensure wrap inside tiles */
.ezy-tile-lift .skills,
.ezy-tile-lift .skill-list,
.ezy-tile-lift [class*="skill"] {
  max-width: 100%;
}

/* Word break for long URLs / emails on tiles */
.ezy-tile-lift a,
.ezy-tile-lift h3,
.ezy-tile-lift .heading-default-color {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* -------------------------------------------------------------------------
   Footer brand + columns
   ------------------------------------------------------------------------- */
footer.footer {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 767.98px) {
  footer.footer .row > [class*="col-"] {
    margin-bottom: 1.25rem;
  }

  footer.footer h3 {
    white-space: nowrap !important;
  }

  footer.footer .list-unstyled,
  footer.footer ul {
    padding-left: 0;
  }
}

/* -------------------------------------------------------------------------
   Home marketing hero CTAs (do not fight redesign; only constrain overflow)
   ------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  #homepage2 .job-btn,
  #homepage2 .hire-btn,
  .job-btn,
  .hire-btn {
    min-width: 0 !important;
    max-width: 100%;
    width: min(100%, 320px) !important;
  }

  .home-slider-user-image {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
  }

  .job-cards-row {
    max-width: 100%;
  }

  .job-card-col {
    max-width: 100%;
  }
}

/* -------------------------------------------------------------------------
   Utility: safe wrapping for toolbar rows (do not hide overflow on scroll parents)
   ------------------------------------------------------------------------- */
.ezy-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .my-100 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  /* Negative margins from theme utilities */
  .site-wrapper .mx-n9,
  .site-wrapper .mx-n5 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
