/* ==========================================================================
   RecruitmentCV Admin (Partner Portal) - Design System v1: components
   The shared look every /partner/* page (and Partner Login) is built from,
   on the tokens in tokens.css. Restyles the existing markup - .wp-* (portal
   shell, portal.css) and .w-* (shared components, style.css) - so every
   module picks it up without page-by-page markup changes. Loaded last, so
   these win over the older theme at equal specificity; nothing here
   reaches the public website (scope: .wp-theme / .w-partner-auth-page).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base + typography
   -------------------------------------------------------------------------- */

.worker-scope.wp-theme {
  background: var(--bg-canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

.wp-theme :is(h1, h2, h3, h4),
.w-partner-auth-page :is(h1, h2, h3, h4) {
  font-family: var(--font-display);
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.wp-theme a,
.w-partner-auth-page a {
  text-underline-offset: 3px;
}

.wp-theme :focus-visible,
.w-partner-auth-page :focus-visible {
  outline: 2px solid var(--indigo-700);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Sidebar - dark navy, muted nav, gold active item
   -------------------------------------------------------------------------- */

.wp-theme .wp-sidebar {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.78);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.04);
}

/* Sidebar header: logo on the start side, collapse toggle on the end side,
   both vertically centred; the toggle sits 22px from the edge - the same
   inset it gets when centred in the 84px collapsed rail ((84 - 40) / 2). */
.wp-theme .wp-sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 22px 18px;
  gap: 12px;
  min-height: 80px;
}

/* The logo may shrink (never the toggle), so while the sidebar width
   animates the toggle can't be pushed past the sidebar edge (the
   logo + company-name row already shrinks: portal.css .wp-sidebar-brand-row). */
.wp-theme .wp-sidebar-brand .w-brand-logo {
  flex: 0 1 auto;
  max-width: min(var(--w-brand-logo-max-w, 200px), 100%);
}

.wp-theme .wp-collapse-toggle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--gold-500);
  border-radius: 12px;
  background: transparent;
  color: var(--gold-500);          /* 8.1:1 on the navy sidebar */
  transition: transform 0.25s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wp-theme .wp-collapse-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.wp-theme .wp-collapse-toggle:hover,
.wp-theme .wp-collapse-toggle:focus-visible {
  background: rgba(217, 164, 65, 0.12);
  border-color: #E5B65C;
  color: #E5B65C;
}

.wp-theme .wp-collapse-toggle:active {
  background: rgba(217, 164, 65, 0.22);
}

.wp-theme .wp-collapse-toggle:focus-visible {
  outline: 2px solid var(--gold-500);   /* the default indigo focus ring is invisible on navy */
  outline-offset: 2px;
}

/* Collapsed (84px rail): toggle on top, centred (22px from either edge, as in
   the expanded header; the chevron turns to point outward - portal.css), the
   compact logo below it - never side by side, so nothing overflows the rail. */
.wp-theme .wp-sidebar.is-collapsed .wp-sidebar-brand {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 14px;
}

.wp-theme .wp-sidebar.is-collapsed .wp-collapse-toggle {
  order: -1;
  margin-inline: 0;
}

/* Avatars: initials on indigo (no gradients). */
.wp-theme .wp-partner-avatar {
  background: var(--indigo-700);
  color: #fff;
  border-radius: 12px;
}

/* Worker CV card (sidebar): indigo card with a thin gold border, icon tile,
   "Worker CV" / "All Candidate CV", chevron. The nav already provides the
   side inset (16px), so the card itself has none - that is what gives the
   text its room. Type scales with the card's own width (container queries). */
.wp-theme .wp-partner-card {
  container-type: inline-size;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  padding: 15px 14px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--gold-500);
  color: #fff;
  text-decoration: none;
  box-shadow: none;
  overflow: hidden;          /* nothing spills out while the sidebar width animates */
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-theme .wp-partner-card:hover {
  background: #0A5537;
  border-color: #E5B65C;
  box-shadow: 0 10px 24px -14px rgba(217, 164, 65, 0.55);
}

.wp-theme .wp-partner-card.is-active,
[dir="rtl"] .wp-theme .wp-partner-card.is-active {
  background: #0A5537;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 1px var(--gold-500);
}

.wp-theme .wp-partner-card:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.wp-theme .wp-partner-card .wp-partner-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  flex-shrink: 0;
}

.wp-theme .wp-partner-card .wp-partner-avatar svg {
  width: 22px;
  height: 22px;
}

.wp-theme .wp-partner-card > div {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wp-theme .wp-partner-card .wp-partner-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.wp-theme .wp-partner-card .wp-partner-role {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #A9C7B7;            /* muted green-grey on the dark card */
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* long translations: two lines at most */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-theme .wp-partner-card-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, color 0.2s ease;
}

.wp-theme .wp-partner-card:hover .wp-partner-card-chevron {
  color: rgba(255, 255, 255, 0.85);
  transform: translateX(2px);
}

[dir="rtl"] .wp-theme .wp-partner-card-chevron {
  transform: scaleX(-1);
}

[dir="rtl"] .wp-theme .wp-partner-card:hover .wp-partner-card-chevron {
  transform: scaleX(-1) translateX(2px);
}

/* A narrower card (e.g. a zoomed-in browser): smaller tile and type, same layout. */
@container (max-width: 215px) {
  .wp-theme .wp-partner-card .wp-partner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .wp-theme .wp-partner-card .wp-partner-avatar svg {
    width: 20px;
    height: 20px;
  }
  .wp-theme .wp-partner-card .wp-partner-name {
    font-size: 15px;
  }
  .wp-theme .wp-partner-card .wp-partner-role {
    font-size: 12px;
  }
}

/* Collapsed sidebar (84px): the icon tile only. */
.wp-theme .wp-sidebar.is-collapsed .wp-nav {
  padding-inline: 15px 9px;   /* + the 6px scrollbar gutter on the end side = centred rail */
}

.wp-theme .wp-sidebar.is-collapsed .wp-partner-card {
  container-type: normal;
  margin: 12px 0 8px;
  padding: 4px;
  border-radius: 16px;
  justify-content: center;
  gap: 0;
}

.wp-theme .wp-sidebar.is-collapsed .wp-partner-card .wp-partner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.wp-theme .wp-sidebar.is-collapsed .wp-partner-card > div,
.wp-theme .wp-sidebar.is-collapsed .wp-partner-card-chevron {
  display: none;
}

/* Sidebar navigation: the only part of the sidebar that scrolls (brand on
   top and the footer / user block stay put). Slim scrollbar in its own
   reserved gutter - never over the labels, icons or the Worker CV card;
   transparent track, muted lavender thumb, a little stronger on hover. */
.wp-theme .wp-nav {
  padding: 8px 16px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;      /* the page doesn't scroll along */
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;             /* Firefox */
  scrollbar-color: rgba(181, 180, 214, 0.22) transparent;
  transition: scrollbar-color 0.2s ease;
}

.wp-theme .wp-nav:hover,
.wp-theme .wp-nav:focus-within {
  scrollbar-color: rgba(181, 180, 214, 0.45) transparent;
}

/* Chrome / Edge / Safari: the ::-webkit-scrollbar parts (Chrome only uses
   them while the standard properties above are left at auto). */
@supports selector(::-webkit-scrollbar) {
  .wp-theme .wp-nav {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  .wp-theme .wp-nav::-webkit-scrollbar {
    width: 6px;
    height: 0;
  }
  .wp-theme .wp-nav::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 10px;
  }
  .wp-theme .wp-nav::-webkit-scrollbar-thumb {
    background: rgba(181, 180, 214, 0.2);
    border-radius: 999px;
  }
  .wp-theme .wp-nav:hover::-webkit-scrollbar-thumb,
  .wp-theme .wp-nav:focus-within::-webkit-scrollbar-thumb {
    background: rgba(181, 180, 214, 0.42);
  }
  .wp-theme .wp-nav::-webkit-scrollbar-thumb:hover,
  .wp-theme .wp-nav::-webkit-scrollbar-thumb:active {
    background: rgba(181, 180, 214, 0.62);
  }
  .wp-theme .wp-nav::-webkit-scrollbar-corner {
    background: transparent;
  }
}

.wp-theme .wp-nav-label {
  color: rgba(255, 255, 255, 0.52);   /* 5.4:1 on navy */
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 18px 12px 8px;
}

.wp-theme .wp-nav-link {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: var(--fs-body);
  gap: 14px;
  margin-bottom: 4px;
}

.wp-theme .wp-nav-link svg {
  opacity: 0.9;
}

.wp-theme .wp-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.wp-theme .wp-nav-link.is-active,
[dir="rtl"] .wp-theme .wp-nav-link.is-active {
  background: var(--gold-500);
  color: var(--ink-900);
  box-shadow: 0 8px 18px -10px rgba(217, 164, 65, 0.65);
}

.wp-theme .wp-nav-link.is-active svg {
  opacity: 1;
}

.wp-theme .wp-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 16px 16px;
}

.wp-theme .wp-sidebar-footer a {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--fs-secondary);
  border-radius: 10px;
}

/* Signed-in user block at the bottom of the sidebar */
.wp-theme .wp-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 6px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.wp-theme .wp-sidebar-user .wp-partner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: var(--fs-secondary);
}

.wp-theme .wp-sidebar-user-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.wp-theme .wp-sidebar-user-text a {
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-body);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
}

.wp-theme .wp-sidebar-user-text span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.wp-theme .wp-sidebar-logout {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.wp-theme .wp-sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wp-theme .wp-sidebar.is-collapsed .wp-sidebar-user-text,
.wp-theme .wp-sidebar.is-collapsed .wp-sidebar-user form {
  display: none;
}

.wp-theme .wp-sidebar.is-collapsed .wp-sidebar-user {
  justify-content: center;
}

.wp-theme .wp-sidebar.is-collapsed .wp-sidebar-user .wp-partner-avatar {
  display: inline-flex;
}

[dir="rtl"] .wp-theme .wp-sidebar-logout svg {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Topbar - white, subtle border, breadcrumbs + page heading
   -------------------------------------------------------------------------- */

.wp-theme {
  --wp-topbar-h: 88px;
}

.wp-theme .wp-topbar {
  background: var(--bg-surface);
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
  padding-inline: var(--page-gutter);
  gap: 18px;
}

.wp-theme .wp-page-heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.wp-theme .wp-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--fs-secondary);
  color: var(--text-muted);
  line-height: 1.3;
}

.wp-theme .wp-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.wp-theme .wp-breadcrumbs a:hover {
  color: var(--indigo-700);
}

.wp-theme .wp-breadcrumbs [aria-current="page"] {
  color: var(--indigo-700);
  font-weight: 600;
}

.wp-theme .wp-breadcrumbs-sep {
  color: #9DAFA6;
}

[dir="rtl"] .wp-theme .wp-breadcrumbs-sep {
  transform: scaleX(-1);
}

.wp-theme .wp-page-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wp-theme .wp-menu-toggle,
.wp-theme .wp-icon-btn {
  width: var(--button-h);
  height: var(--button-h);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
}

.wp-theme .wp-icon-btn:hover {
  background: var(--bg-subtle);
  border-color: #CFDCD5;
}

/* Notifications: red count badge */
.wp-theme .wp-icon-count {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--critical);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  border: 2px solid var(--bg-surface);
}

.wp-theme .wp-icon-btn {
  position: relative;
}

/* Live URL pill: one pill (green dot + URL + copy + share), in the header
   flow beside the actions - not centered over the page heading. */
.wp-theme .wp-live-url-group {
  position: static;
  left: auto;
  transform: none;
  margin-inline-start: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 6px 5px 14px;
  gap: 6px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

[dir="rtl"] .wp-theme .wp-live-url-group {
  padding: 5px 14px 5px 6px;
}

.wp-theme .wp-live-url-group + .wp-topbar-actions {
  margin-inline-start: 0;
}

.wp-theme .wp-live-url {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  max-width: 260px;
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-body);
}

.wp-theme .wp-live-url:hover {
  background: transparent;
  color: var(--indigo-700);
}

.wp-theme .wp-live-url-copy.is-copied {
  background: var(--success-bg);
  border-color: #BBE5CB;
  color: var(--success);
}

@media (max-width: 1100px) {
  .wp-theme .wp-live-url {
    max-width: 170px;
  }
}

@media (max-width: 560px) {
  .wp-theme .wp-live-url-group {
    padding: 4px;
    box-shadow: none;
  }
}

.wp-theme .wp-live-url::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.wp-theme .wp-live-url svg {
  display: none;
}

.wp-theme .wp-live-url-copy {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
}

.wp-theme .wp-live-url-copy:hover {
  background: var(--bg-subtle);
}

/* Header language switcher */
.wp-theme .lang-switcher {
  height: var(--button-h);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-weight: 600;
}

.wp-theme .wp-topbar-cta {
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .wp-theme .wp-topbar-cta-label {
    display: none;
  }
}

/* Dropdowns (notifications, menus) */
.wp-theme .wp-dropdown {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  background: var(--bg-surface);
}

.wp-theme .wp-dropdown-head {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-heading);
  border-bottom: 1px solid var(--border);
}

.wp-theme .wp-notif-dot {
  background: var(--gold-500);
}

.wp-theme .wp-menu-item {
  border-radius: 10px;
  min-height: 40px;
  font-weight: 600;
  color: var(--text);
}

.wp-theme .wp-menu-item:hover {
  background: var(--bg-subtle);
}

.wp-theme .wp-menu-item.is-danger {
  color: var(--critical);
}

/* --------------------------------------------------------------------------
   Page layout
   -------------------------------------------------------------------------- */

.wp-theme .wp-content {
  padding: 28px var(--page-gutter) 64px;
  max-width: 1360px;
}

@media (max-width: 980px) {
  .wp-theme .wp-topbar,
  .wp-theme .wp-content {
    padding-inline: 18px;
  }
  .wp-theme {
    --wp-topbar-h: 72px;
  }
  .wp-theme .wp-breadcrumbs {
    display: none;
  }
  .wp-theme .wp-page-title {
    font-size: 20px;
  }
}

@media (max-width: 560px) {
  .wp-theme .wp-topbar,
  .wp-theme .wp-content {
    padding-inline: 16px;
  }
}

/* --------------------------------------------------------------------------
   Cards - white, 1px border, 22px radius, subtle shadow
   -------------------------------------------------------------------------- */

.wp-theme :is(.w-info-card, .wp-section-card, .wp-stat-card, .wp-order-card, .wp-table-wrap,
  .wp-filter-bar, .wp-chart-card, .wp-invoice-card, .w-profile-card, .wp-mini-card,
  .wp-quick-action, .wp-wc-section, .wp-smtp-item, .w-summary-item) {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.wp-theme :is(.w-info-card, .wp-section-card) {
  padding: var(--card-pad);
}

.wp-theme :is(.wp-stat-card, .wp-order-card, .wp-mini-card, .wp-quick-action):hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.wp-theme .w-info-card h2,
.wp-theme .wp-section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--text-heading);
  border-bottom-color: var(--border);
}

.wp-theme .w-info-card h2 svg,
.wp-theme .wp-section-head h2 svg {
  color: var(--indigo-700);
}

/* Welcome banner (Dashboard): dark navy, no gradient */
.wp-theme .wp-welcome {
  background: var(--ink-900);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
}

.wp-theme .wp-welcome h1 {
  font-size: var(--fs-h1);
  color: #fff;
}

/* Stat / KPI cards */
.wp-theme .wp-stat-card {
  padding: var(--card-pad);
  gap: 16px;
}

.wp-theme .wp-stat-card strong {
  font-family: var(--font-display);
  font-size: var(--fs-kpi);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  letter-spacing: -0.02em;
}

.wp-theme .wp-stat-card span {
  font-size: var(--fs-secondary);
  color: var(--text-muted);
}

.wp-theme .wp-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
}

.wp-theme .wp-stat-icon.is-primary { background: var(--indigo-50); color: var(--indigo-700); }
.wp-theme .wp-stat-icon.is-success { background: var(--success-bg); color: var(--success); }
.wp-theme .wp-stat-icon.is-accent { background: var(--gold-50); color: var(--attention); }
.wp-theme .wp-stat-icon.is-info { background: var(--info-bg); color: var(--info); }

/* Info items (label + value pairs) */
.wp-theme :is(.wp-info-item, .w-info-item) > span:first-child,
.wp-theme .wp-order-card-meta span,
.wp-theme .w-summary-item span {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wp-theme :is(.wp-info-item, .w-info-item) strong,
.wp-theme .wp-order-card-meta strong {
  color: var(--text);
  font-weight: 600;
}

/* Activity list */
.wp-theme .wp-activity-icon {
  background: var(--indigo-50);
  color: var(--indigo-700);
  border-radius: var(--radius-md);
}

/* Empty state */
.wp-theme .wp-empty {
  background: var(--bg-surface);
  border: 1px dashed #CFDCD5;
  border-radius: var(--radius-xl);
}

.wp-theme .wp-empty svg {
  color: #9DAFA6;
}

/* --------------------------------------------------------------------------
   Buttons - 44px min height, 12px radius
   -------------------------------------------------------------------------- */

:is(.wp-theme, .w-partner-auth-page) .w-btn {
  min-height: var(--button-h);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  box-shadow: none;
  transform: none;
}

:is(.wp-theme, .w-partner-auth-page) .w-btn:hover {
  transform: none;
}

:is(.wp-theme, .w-partner-auth-page) .w-btn-sm {
  padding: 8px 14px;
  font-size: var(--fs-secondary);
}

/* Primary: indigo */
:is(.wp-theme, .w-partner-auth-page) .w-btn-primary {
  background: var(--indigo-700);
  border-color: var(--indigo-700);
  color: #fff !important;
  box-shadow: none;
}

:is(.wp-theme, .w-partner-auth-page) .w-btn-primary:hover {
  background: var(--indigo-800);
  border-color: var(--indigo-800);
  box-shadow: none;
}

/* Important CTA: gold, dark text */
:is(.wp-theme, .w-partner-auth-page) .w-btn-accent {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--ink-900) !important;
  box-shadow: none;
}

:is(.wp-theme, .w-partner-auth-page) .w-btn-accent:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
}

/* Secondary: white with border */
:is(.wp-theme, .w-partner-auth-page) .w-btn-outline {
  background: var(--bg-surface);
  border-color: var(--border);
  color: var(--text) !important;
}

:is(.wp-theme, .w-partner-auth-page) .w-btn-outline:hover {
  background: var(--bg-subtle);
  border-color: #CFDCD5;
  color: var(--text-heading) !important;
}

/* Destructive: critical red outline */
:is(.wp-theme, .w-partner-auth-page) .w-btn-danger {
  background: var(--bg-surface);
  border-color: #F3C8C8;
  color: var(--critical) !important;
  box-shadow: none;
}

:is(.wp-theme, .w-partner-auth-page) .w-btn-danger:hover {
  background: var(--critical-bg);
  border-color: var(--critical);
}

:is(.wp-theme, .w-partner-auth-page) .w-btn:disabled,
:is(.wp-theme, .w-partner-auth-page) .w-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Forms - 46px controls, 12px radius, uppercase field labels
   -------------------------------------------------------------------------- */

:is(.wp-theme, .w-partner-auth-page) .w-form-label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

:is(.wp-theme, .w-partner-auth-page) .w-input,
:is(.wp-theme, .w-partner-auth-page) .w-select {
  min-height: var(--control-h);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--bg-surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding-block: 11px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:is(.wp-theme, .w-partner-auth-page) textarea.w-input {
  min-height: 110px;
}

:is(.wp-theme, .w-partner-auth-page) .w-input::placeholder {
  color: #93A49B;
}

:is(.wp-theme, .w-partner-auth-page) .w-input:focus,
:is(.wp-theme, .w-partner-auth-page) .w-select:focus {
  outline: none;
  border-color: var(--indigo-700);
  box-shadow: var(--focus-ring);
}

:is(.wp-theme, .w-partner-auth-page) .w-input:disabled,
:is(.wp-theme, .w-partner-auth-page) .w-input[readonly] {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

:is(.wp-theme, .w-partner-auth-page) :is(.w-form-error, .w-form-hint, .wp-field-hint) {
  font-size: 12px;
}

:is(.wp-theme, .w-partner-auth-page) .w-form-error {
  color: var(--critical);
}

:is(.wp-theme, .w-partner-auth-page) :is(.w-form-hint, .wp-field-hint) {
  color: var(--text-muted);
}

/* Select2 (searchable selects) to the same 46px / 12px control */
:is(.wp-theme, .w-partner-auth-page) .select2-container--default .select2-selection--single,
:is(.wp-theme, .w-partner-auth-page) .select2-container--default .select2-selection--multiple {
  min-height: var(--control-h) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  background: var(--bg-surface);
}

:is(.wp-theme, .w-partner-auth-page) .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px;
  color: var(--text);
  font-size: var(--fs-body);
}

:is(.wp-theme, .w-partner-auth-page) .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
}

:is(.wp-theme, .w-partner-auth-page) .select2-container--default.select2-container--focus .select2-selection,
:is(.wp-theme, .w-partner-auth-page) .select2-container--default.select2-container--open .select2-selection {
  border-color: var(--indigo-700) !important;
  box-shadow: var(--focus-ring);
}

.wp-theme .select2-dropdown,
body.wp-theme > .select2-container .select2-dropdown {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.wp-theme .select2-container--default .select2-results__option--highlighted[aria-selected],
.wp-theme .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--indigo-700);
  color: #fff;
}

.wp-theme .select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 40px;
}

/* Switches + checks in the indigo accent */
.wp-theme .wp-switch input:checked + .wp-switch-track {
  background: var(--indigo-700);
}

.wp-theme input[type="checkbox"],
.wp-theme input[type="radio"] {
  accent-color: var(--indigo-700);
}

/* --------------------------------------------------------------------------
   Filter panel + listing toolbar
   -------------------------------------------------------------------------- */

.wp-theme .wp-filter-bar {
  padding: 18px;
  gap: 12px;
}

.wp-theme .wp-filter-search svg {
  color: var(--text-muted);
}

/* Segmented controls: Card / Table, Active / Deployed / Cancelled, ... */
.wp-theme .wp-view-switch {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px;
  gap: 4px;
  box-shadow: var(--shadow-card);
}

.wp-theme .wp-view-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-muted);
}

.wp-theme .wp-view-btn:hover {
  color: var(--text-heading);
  background: var(--bg-subtle);
}

.wp-theme .wp-view-btn.is-active {
  background: var(--ink-900);
  color: #fff;
  box-shadow: none;
}

.wp-theme .wp-view-btn.is-active:hover {
  background: var(--ink-900);
  color: #fff;
}

/* Count bubble inside a tab: "Active (1)" */
.wp-theme .wp-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: #EEF3F0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.wp-theme .is-active > .wp-tab-count,
.wp-theme .is-active .wp-tab-count {
  background: var(--gold-500);
  color: var(--ink-900);
}

.wp-theme .wp-result-count {
  color: var(--text-muted);
  font-size: var(--fs-secondary);
}

/* Settings tabs (Website, Account) */
.wp-theme .wp-settings-tabs {
  border-bottom: 1px solid var(--border);
  gap: 4px;
}

.wp-theme .wp-settings-tab-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--text-muted);
  border-radius: 10px 10px 0 0;
}

.wp-theme .wp-settings-tab-btn:hover {
  color: var(--text-heading);
}

.wp-theme .wp-settings-tab-btn.is-active {
  color: var(--text-heading);
  box-shadow: inset 0 -2px 0 var(--ink-900);
  border-color: transparent;
  background: transparent;
}

/* --------------------------------------------------------------------------
   Tables - light header, roomy rows, subtle hover
   -------------------------------------------------------------------------- */

.wp-theme .wp-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.wp-theme .wp-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: var(--fs-body);
  vertical-align: middle;
}

.wp-theme .wp-table tbody tr:hover {
  background: var(--bg-subtle);
}

.wp-theme .wp-table .wp-cell-title {
  color: var(--text-heading);
  font-weight: 700;
}

.wp-theme .wp-table a.wp-cell-title.wp-cell-link:hover {
  color: var(--indigo-700);
}

.wp-theme .wp-table .wp-cell-sub {
  color: var(--text-muted);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Status badges - pills with a dot + semantic colours
   -------------------------------------------------------------------------- */

.wp-theme .wp-badge {
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.wp-theme .wp-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.wp-theme .wp-badge.is-info { background: var(--info-bg); color: var(--info); }
.wp-theme .wp-badge.is-success { background: var(--success-bg); color: var(--success); }
.wp-theme .wp-badge.is-warning { background: var(--warning-bg); color: var(--warning); }
.wp-theme .wp-badge.is-attention { background: var(--attention-bg); color: var(--attention); }
.wp-theme .wp-badge.is-danger { background: var(--critical-bg); color: var(--critical); }
.wp-theme .wp-badge.is-neutral { background: #EEF3F0; color: var(--w-ink-600); }

/* Tags (detail pages) */
.wp-theme .w-tag {
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-weight: 600;
}

.wp-theme .w-tag.is-neutral {
  background: #EEF3F0;
  color: var(--w-ink-600);
}

/* --------------------------------------------------------------------------
   Alerts, flash messages, validation
   -------------------------------------------------------------------------- */

:is(.wp-theme, .w-partner-auth-page) .w-form-alert {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: var(--fs-body);
  font-weight: 600;
  border: 1px solid transparent;
}

:is(.wp-theme, .w-partner-auth-page) .w-form-alert.is-error {
  background: var(--critical-bg);
  color: var(--critical);
  border-color: #F3C8C8;
}

:is(.wp-theme, .w-partner-auth-page) .w-form-alert.is-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: #BBE5CB;
}

:is(.wp-theme, .w-partner-auth-page) .w-form-alert.is-info {
  background: var(--info-bg);
  color: var(--info);
  border-color: var(--w-ink-200);
}

:is(.wp-theme, .w-partner-auth-page) .w-form-alert.is-warning {
  background: var(--attention-bg);
  color: var(--attention);
  border-color: #F2DFA6;
}

/* Attention banner (needs-action strip on a page) */
.wp-theme .wp-attention {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: var(--space-6);
  background: var(--attention-bg);
  border: 1px solid #F2DFA6;
  border-radius: 18px;
  color: var(--attention);
}

.wp-theme .wp-attention-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-500);
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wp-theme .wp-attention-text {
  flex: 1 1 auto;
  min-width: 0;
}

.wp-theme .wp-attention-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-heading);
  font-size: 15px;
}

.wp-theme .wp-attention-text span {
  color: #5E4A1E;
  font-size: var(--fs-secondary);
}

.wp-theme .wp-attention-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #EAD9A4;
  background: var(--bg-surface);
  color: var(--attention);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .wp-theme .wp-attention {
    flex-wrap: wrap;
  }
  .wp-theme .wp-attention-text {
    flex-basis: calc(100% - 120px);
  }
  .wp-theme .wp-attention .w-btn {
    order: 3;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */

.wp-theme .w-modal-backdrop {
  background: rgba(4, 40, 30, 0.55);
}

.wp-theme .w-modal-dialog {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  padding: 28px;
}

.wp-theme .w-modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  padding-bottom: 18px;
}

.wp-theme .w-modal-subtitle {
  color: var(--text-muted);
  font-size: var(--fs-body);
}

.wp-theme .w-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border-color: var(--border);
  color: var(--text);
}

.wp-theme .w-modal-close:hover {
  background: var(--bg-subtle);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.wp-theme .w-pagination {
  margin-top: 24px;
  gap: 6px;
}

.wp-theme .w-pagination a,
.wp-theme .w-pagination span {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border-color: var(--border);
  color: var(--text);
  font-weight: 600;
}

.wp-theme .w-pagination a:hover {
  border-color: var(--indigo-700);
  color: var(--indigo-700);
  background: var(--bg-surface);
}

.wp-theme .w-pagination .is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}

.wp-theme .w-pagination .is-disabled {
  color: var(--w-ink-300);
  background: var(--bg-subtle);
}

/* --------------------------------------------------------------------------
   Candidate cards / detail inside the portal
   -------------------------------------------------------------------------- */

.wp-theme .w-candidate-card {
  border-radius: var(--radius-xl);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.wp-theme .w-candidate-card:hover {
  box-shadow: var(--shadow-lift);
}

.wp-theme .w-candidate-body h3 {
  font-size: var(--fs-card-title);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Partner Login (and its password-reset steps): canvas + one white card,
   flat (border, no shadow - nor on the inline login card inside it,
   style.css .w-modal.is-inline .w-modal-dialog).
   -------------------------------------------------------------------------- */

.worker-scope .w-partner-auth-page {
  background: var(--bg-canvas);
}

.w-partner-auth-page .w-partner-auth-page-inner {
  padding: 32px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.w-partner-auth-page .w-partner-auth-page-head p {
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .w-partner-auth-page .w-partner-auth-page-inner {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

/* ==========================================================================
   Orders (card view, table view, order detail) - patterns reused across
   the pipeline, KPI cards, avatars, side panels and timeline.
   ========================================================================== */

.wp-theme .wp-attention[hidden] {
  display: none;
}

.wp-theme .wp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wp-theme .is-muted {
  color: var(--text-muted);
}

/* Link-styled button (e.g. "Assign employer") */
.wp-theme .wp-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--indigo-700);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.wp-theme .wp-link-btn:hover {
  color: var(--ink-900);
}

/* KPI cards */
.wp-theme .wp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: var(--space-6);
}

.wp-theme .wp-kpi {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--card-pad);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.wp-theme .wp-kpi.is-dark {
  background: var(--ink-900);
  border-color: var(--ink-900);
}

.wp-theme .wp-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wp-theme .wp-kpi-label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wp-theme .wp-kpi.is-dark .wp-kpi-label {
  color: rgba(255, 255, 255, 0.72);
}

.wp-theme .wp-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo-50);
  color: var(--indigo-700);
  flex-shrink: 0;
}

.wp-theme .wp-kpi.is-dark .wp-kpi-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-500);
}

.wp-theme .wp-kpi-icon.is-success { background: var(--success-bg); color: var(--success); }
.wp-theme .wp-kpi-icon.is-critical { background: var(--critical-bg); color: var(--critical); }

.wp-theme .wp-kpi-value {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.wp-theme .wp-kpi-value strong {
  font-family: var(--font-display);
  font-size: var(--fs-kpi);
  font-weight: 800;
  line-height: 1;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.wp-theme .wp-kpi.is-dark .wp-kpi-value strong {
  color: #fff;
}

.wp-theme .wp-kpi-value span {
  font-size: var(--fs-secondary);
  font-weight: 600;
  color: var(--text-muted);
}

.wp-theme .wp-kpi-value .is-gold {
  color: var(--gold-500);
}

/* Filter panel: two rows */
.wp-theme .wp-filter-panel {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.wp-theme .wp-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.wp-theme .wp-filter-panel .wp-filter-search {
  flex: 1.6 1 260px;
}

.wp-theme .wp-filter-date {
  position: relative;
  flex: 1 1 280px;
  min-width: 220px;
}

.wp-theme .wp-filter-date svg {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.wp-theme .wp-filter-date .wp-daterange {
  width: 100%;
  padding-inline-start: 42px;
}

.wp-theme .wp-quick-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wp-theme .wp-chip {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-secondary);
  font-weight: 600;
  cursor: pointer;
}

.wp-theme .wp-chip:hover {
  background: var(--bg-subtle);
}

.wp-theme .wp-chip.is-active {
  border-color: var(--indigo-700);
  background: var(--indigo-50);
  color: var(--indigo-700);
}

.wp-theme .wp-filter-actions {
  display: flex;
  gap: 10px;
  margin-inline-start: auto;
}

@media (max-width: 640px) {
  .wp-theme .wp-filter-actions {
    width: 100%;
    margin-inline-start: 0;
  }
  .wp-theme .wp-filter-actions .w-btn {
    flex: 1 1 0;
  }
  .wp-theme .wp-filter-date {
    min-width: 0;
    flex-basis: 100%;
  }
}

/* Orders body: list + side column */
.wp-theme .wp-orders-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--grid-gap);
  align-items: start;
}

@media (max-width: 1280px) {
  .wp-theme .wp-orders-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wp-theme .wp-orders-toolbar {
  margin-bottom: var(--space-5);
}

.wp-theme .wp-sort-label {
  color: var(--text-muted);
  font-size: var(--fs-secondary);
}

.wp-theme .wp-sort-label strong {
  color: var(--text-heading);
}

/* Avatars: photo, else initials on indigo */
.wp-theme .wp-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--indigo-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.wp-theme .wp-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.wp-theme .wp-avatar.is-lg {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: 20px;
}

.wp-theme .wp-avatar.is-xl {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  font-size: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wp-theme .wp-avatar-check {
  position: absolute;
  bottom: -4px;
  inset-inline-end: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--w-primary);
  color: #fff;
  border: 2px solid var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.wp-theme .wp-pill-verified {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--info-bg);
  color: var(--info);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wp-theme .wp-pill-verified.is-on-dark {
  background: #fff;
  color: var(--indigo-700);
}

.wp-theme .wp-ref-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--w-ink-100);
  color: var(--text-heading);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body);
  white-space: nowrap;
}

.wp-theme .wp-dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9DAFA6;
  display: inline-block;
}

/* Pipeline (card + mini) */
.wp-theme .wp-pipeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.wp-theme .wp-pipeline-title {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wp-theme .wp-pipeline-step {
  font-size: var(--fs-secondary);
  font-weight: 700;
  color: var(--text-heading);
}

.wp-theme .wp-pipeline-step .is-warning { color: var(--warning); }
.wp-theme .wp-pipeline-step .is-attention { color: var(--attention); }
.wp-theme .wp-pipeline-step .is-success { color: var(--success); }
.wp-theme .wp-pipeline-step .is-critical { color: var(--critical); }
.wp-theme .wp-pipeline-step .is-info { color: var(--info); }

.wp-theme .wp-pipeline-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* one column per stage (App\Support\OrderPipeline: --wp-stages set inline) */
  grid-template-columns: repeat(var(--wp-stages, 5), minmax(0, 1fr));
  gap: 6px;
}

.wp-theme .wp-pipeline-stages li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.wp-theme .wp-pipeline-seg {
  position: relative;
  display: block;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
}

.wp-theme .is-done > .wp-pipeline-seg,
.wp-theme .wp-pipeline-seg.is-done {
  background: var(--success);
}

.wp-theme .is-current > .wp-pipeline-seg,
.wp-theme .wp-pipeline-seg.is-current {
  background: #F8DCC8;
}

.wp-theme .is-current > .wp-pipeline-seg::before,
.wp-theme .wp-pipeline-seg.is-current::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 50%;
  background: #C2410C;
  border-radius: inherit;
}

.wp-theme .is-untracked > .wp-pipeline-seg,
.wp-theme .wp-pipeline-seg.is-untracked {
  background: transparent;
  border: 1px dashed var(--w-ink-300);
}

.wp-theme .is-cancelled > .wp-pipeline-seg,
.wp-theme .wp-pipeline-seg.is-cancelled {
  background: #F3D0D0;
}

.wp-theme .wp-pipeline-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wp-theme .is-done > .wp-pipeline-label { color: var(--success); }
.wp-theme .is-current > .wp-pipeline-label { color: #C2410C; }

.wp-theme .wp-pipeline.is-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.wp-theme .wp-pipeline-track {
  display: flex;
  gap: 4px;
}

.wp-theme .wp-pipeline-track .wp-pipeline-seg {
  width: 20px;
  height: 5px;
}

.wp-theme .wp-pipeline-mini-text {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Order card */
.wp-theme .wp-ocard-list {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
}

.wp-theme .wp-ocard {
  padding: 0;
  overflow: hidden;
}

.wp-theme .wp-ocard:hover {
  transform: none;
}

.wp-theme .wp-ocard-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: var(--card-pad) var(--card-pad) 18px;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.wp-theme .wp-ocard-title {
  flex: 1 1 auto;
  min-width: 0;
}

.wp-theme .wp-ocard-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wp-theme .wp-ocard-name h3 {
  margin: 0;
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1.3;
}

.wp-theme .wp-ocard-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: var(--fs-secondary);
  color: var(--text-muted);
}

.wp-theme .wp-ocard-sub .is-strong {
  color: var(--indigo-700);
  font-weight: 600;
}

.wp-theme .wp-ocard-ref {
  flex-shrink: 0;
}

.wp-theme .wp-ocard .wp-pipeline {
  padding: 18px var(--card-pad) 6px;
}

.wp-theme .wp-ocard-badges {
  padding: 12px var(--card-pad) 0;
  margin: 0;
  gap: 8px;
}

.wp-theme .wp-ocard-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 18px var(--card-pad) var(--card-pad);
}

.wp-theme .wp-ocard-meta dt,
.wp-theme .wp-hero-strip dt,
.wp-theme .wp-detail-fields dt {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.wp-theme .wp-ocard-meta dd,
.wp-theme .wp-hero-strip dd,
.wp-theme .wp-detail-fields dd {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.wp-theme .wp-ocard-meta dd.is-muted,
.wp-theme .wp-detail-fields dd.is-muted {
  color: var(--text-muted);
  font-weight: 500;
}

.wp-theme .wp-ocard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px var(--card-pad);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.wp-theme .wp-ocard-cancel {
  margin-inline-start: auto;
}

[dir="rtl"] .wp-theme .wp-ocard-actions .w-btn-primary svg,
[dir="rtl"] .wp-theme .wp-back-btn svg {
  transform: scaleX(-1);
}

@media (max-width: 760px) {
  .wp-theme .wp-ocard-head {
    flex-wrap: wrap;
  }
  .wp-theme .wp-ocard-ref {
    order: -1;
    width: 100%;
  }
  .wp-theme .wp-ocard-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wp-theme .wp-pipeline-label {
    font-size: 10.5px;
  }
  .wp-theme .wp-ocard-actions .w-btn {
    flex: 1 1 calc(50% - 10px);
  }
  .wp-theme .wp-ocard-cancel {
    margin-inline-start: 0;
  }
}

/* Orders table extras */
.wp-theme .wp-cell-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.wp-theme .wp-cell-person > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wp-theme .wp-table .wp-cell-title.is-plain {
  font-weight: 600;
  display: block;
}

.wp-theme .wp-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.wp-theme .wp-row-actions .wp-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wp-theme .wp-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-secondary);
}

/* Side cards */
.wp-theme .wp-orders-side,
.wp-theme .wp-detail-side {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.wp-theme .wp-side-card {
  padding: var(--card-pad);
  margin: 0;
}

.wp-theme .wp-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.wp-theme .wp-side-card .wp-side-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: var(--fs-card-title);
}

.wp-theme .wp-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}

.wp-theme .wp-feed-item strong {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-heading);
}

.wp-theme .wp-feed-item span:not(.wp-feed-icon) {
  font-size: 12px;
  color: var(--text-muted);
}

.wp-theme .wp-feed-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wp-theme .wp-feed-icon.is-info { background: var(--info-bg); color: var(--info); }
.wp-theme .wp-feed-icon.is-success { background: var(--success-bg); color: var(--success); }
.wp-theme .wp-feed-icon.is-attention { background: var(--attention-bg); color: var(--attention); }
.wp-theme .wp-feed-icon.is-critical { background: var(--critical-bg); color: var(--critical); }

.wp-theme .wp-side-empty {
  color: var(--text-muted);
  font-size: var(--fs-secondary);
  margin: 0;
}

.wp-theme .wp-share-card {
  border: 1px dashed #CFDCD5;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wp-theme .wp-share-card h3 {
  margin: 4px 0 0;
  font-size: var(--fs-card-title);
}

.wp-theme .wp-share-card p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: var(--fs-secondary);
}

.wp-theme .wp-share-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wp-theme .wp-share-card .wp-live-url-copied {
  display: none;
}

.wp-theme .wp-share-card .is-copied .wp-live-url-copied {
  display: inline;
}

/* Order detail */
.wp-theme .wp-detail-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-5);
}

.wp-theme .wp-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wp-theme .wp-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-inline-start: auto;
}

.wp-theme .wp-stepper {
  padding: 24px var(--card-pad);
  margin-bottom: var(--space-5);
}

.wp-theme .wp-stepper ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--wp-stages, 5), minmax(0, 1fr));
  gap: 8px;
}

.wp-theme .wp-stepper li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wp-theme .wp-stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  inset-inline-start: 44px;
  inset-inline-end: 4px;
  height: 2px;
  background: var(--border);
}

.wp-theme .wp-stepper li.is-done:not(:last-child)::after {
  background: var(--success);
}

.wp-theme .wp-stepper-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #CFDCD5;
  background: var(--bg-surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-secondary);
  position: relative;
  z-index: 1;
}

.wp-theme .is-done > .wp-stepper-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.wp-theme .is-current > .wp-stepper-dot {
  border-color: #C2410C;
  color: #C2410C;
}

.wp-theme .is-untracked > .wp-stepper-dot {
  border-style: dashed;
}

.wp-theme .is-cancelled > .wp-stepper-dot {
  border-color: #F3C8C8;
  color: var(--critical);
}

.wp-theme .wp-stepper-text strong {
  display: block;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text-heading);
}

.wp-theme .wp-stepper-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.wp-theme .is-done .wp-stepper-text span { color: var(--success); }
.wp-theme .is-current .wp-stepper-text span { color: #C2410C; font-weight: 600; }

@media (max-width: 760px) {
  .wp-theme .wp-stepper ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .wp-theme .wp-stepper li {
    flex-direction: row;
    align-items: center;
  }
  .wp-theme .wp-stepper li::after {
    display: none;
  }
}

/* The 7-stage CRM workflow stepper: one row on wide screens, a vertical list below 1100px. */
@media (max-width: 1100px) {
  .wp-theme .wp-stepper.is-long ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .wp-theme .wp-stepper.is-long li {
    flex-direction: row;
    align-items: center;
  }
  .wp-theme .wp-stepper.is-long li::after {
    display: none;
  }
}

.wp-theme .wp-stepper-text {
  min-width: 0;
}

.wp-theme .wp-stepper-text span {
  overflow-wrap: anywhere;
}

/* Stage documents indicator under a completed stage. */
.wp-theme .wp-stepper-text .wp-stepper-docs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--info, #064E3B);
  text-decoration: none;
}

.wp-theme .wp-stepper-docs:hover {
  text-decoration: underline;
}

/* Order detail: documents of completed stages (CRM Candidate Status workflow files). */
.wp-theme .wp-stage-docs h2 {
  margin-bottom: 12px;
}

.wp-theme .wp-stage-docs-empty {
  margin: 0;
  color: var(--text-muted);
}

.wp-theme .wp-stage-docs-group + .wp-stage-docs-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.wp-theme .wp-stage-docs-group h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: var(--fs-body, 14px);
  font-weight: 700;
  color: var(--success);
}

.wp-theme .wp-stage-flight {
  margin: 0 0 10px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.wp-theme .wp-doc-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  background: var(--bg-subtle, #FAFAFC);
}

.wp-theme .wp-doc-card + .wp-doc-card {
  margin-top: 8px;
}

.wp-theme .wp-doc-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--indigo-50);
  color: var(--indigo-700);
}

.wp-theme .wp-doc-icon.is-pdf {
  background: #FEF2F2;
  color: #B91C1C;
}

.wp-theme .wp-doc-icon.is-image {
  background: #ECFDF3;
  color: var(--success);
}

.wp-theme .wp-doc-text {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wp-theme .wp-doc-text strong {
  color: var(--text-heading);
}

.wp-theme .wp-doc-name {
  font-size: 12px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.wp-theme .wp-doc-date {
  font-size: 12px;
  color: var(--text-muted);
}

.wp-theme .wp-doc-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

@media (max-width: 560px) {
  .wp-theme .wp-doc-actions {
    width: 100%;
  }
  .wp-theme .wp-doc-actions .w-btn {
    flex: 1 1 0;
  }
}

.wp-theme .wp-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--grid-gap);
  align-items: start;
}

@media (max-width: 1100px) {
  .wp-theme .wp-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wp-theme .wp-detail-main {
  min-width: 0;
}

.wp-theme .wp-detail-main > .w-info-card {
  margin-bottom: var(--grid-gap);
}

/* Candidate hero: navy top + white strip */
.wp-theme .wp-hero {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--grid-gap);
}

.wp-theme .wp-hero-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px var(--card-pad);
  background: var(--ink-900);
  color: #fff;
}

.wp-theme .wp-hero-text {
  min-width: 0;
}

.wp-theme .wp-hero-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wp-theme .wp-hero-name h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  border: 0;
  padding: 0;
}

.wp-theme .wp-hero-text p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-body);
}

.wp-theme .wp-hero-text p strong {
  color: #fff;
}

.wp-theme .wp-hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 18px var(--card-pad);
}

@media (max-width: 760px) {
  .wp-theme .wp-hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wp-theme .wp-hero-top {
    align-items: flex-start;
  }
}

.wp-theme .wp-detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}

.wp-theme .wp-detail-fields > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 560px) {
  .wp-theme .wp-detail-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Activity timeline */
.wp-theme .wp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-theme .wp-timeline li {
  position: relative;
  padding: 0 0 22px;
  padding-inline-start: 30px;
}

.wp-theme .wp-timeline li:last-child {
  padding-bottom: 0;
}

.wp-theme .wp-timeline li::before {
  content: "";
  position: absolute;
  top: 4px;
  inset-inline-start: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--info);
  box-shadow: 0 0 0 4px var(--info-bg);
}

.wp-theme .wp-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 2px;
  inset-inline-start: 5px;
  width: 2px;
  background: var(--border);
}

.wp-theme .wp-timeline li.is-success::before { background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }
.wp-theme .wp-timeline li.is-critical::before { background: var(--critical); box-shadow: 0 0 0 4px var(--critical-bg); }

.wp-theme .wp-timeline li.is-waiting::before {
  background: var(--bg-surface);
  border: 2px solid #C2410C;
  box-shadow: none;
}

.wp-theme .wp-timeline strong {
  display: block;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text-heading);
}

.wp-theme .wp-timeline li.is-waiting strong {
  color: #C2410C;
}

.wp-theme .wp-timeline span {
  font-size: var(--fs-secondary);
  color: var(--text-muted);
}

/* Next action panel (gold tint) */
.wp-theme .wp-next-action {
  background: var(--gold-50);
  border: 1px solid #F2DFA6;
  border-radius: var(--radius-xl);
  padding: var(--card-pad);
}

.wp-theme .wp-next-action-label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--attention);
}

.wp-theme .wp-next-action h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.wp-theme .wp-next-action p {
  margin: 0 0 16px;
  color: #6B5A30;
  font-size: var(--fs-secondary);
}

.wp-theme .wp-side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  font-size: var(--fs-body);
}

.wp-theme .wp-side-row span {
  color: var(--text-muted);
}

.wp-theme .wp-side-row strong {
  color: var(--text-heading);
}

.wp-theme .wp-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.wp-theme .wp-contact.is-empty {
  border-style: dashed;
}

.wp-theme .wp-contact strong {
  display: block;
  color: var(--text-heading);
  font-size: var(--fs-body);
}

.wp-theme .wp-contact span:not(.wp-contact-icon) {
  font-size: 12px;
  color: var(--text-muted);
}

.wp-theme .wp-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--w-ink-100);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wp-theme .wp-wa-btn {
  color: #15803D !important;
  border-color: #BBE5CB;
}

/* Print: the order itself, no portal chrome */
@media print {
  .wp-theme .wp-sidebar,
  .wp-theme .wp-topbar,
  .wp-theme .wp-detail-actions,
  .wp-theme .wp-back-btn,
  .wp-theme .w-whatsapp-float,
  .wp-theme .wp-next-action .w-btn {
    display: none !important;
  }
  .wp-theme .wp-main {
    margin: 0 !important;
  }
  .wp-theme .wp-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Order detail kept in step with the CRM (order-live.js): a small note above the page. */
.wp-theme .wp-live-status {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md, 12px);
  font-size: 13px;
  font-weight: 600;
}

.wp-theme .wp-live-status[hidden] {
  display: none;
}

.wp-theme .wp-live-status.is-updated {
  background: var(--success-bg, #ECFDF3);
  color: var(--success, #15803D);
}

.wp-theme .wp-live-status.is-error {
  background: var(--attention-bg, #FFF7E6);
  color: var(--attention, #B45309);
}

/* A refreshed part does not replay the page's entry animation. */
.wp-theme .is-live-updated .wp-fade-in {
  animation: none;
  opacity: 1;
  transform: none;
}

/* Partner Hiring Limit notice (worker.partials.hiring-limit-notice) */
.wp-theme .wp-hiring-limit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: start;
}

.wp-theme .wp-hiring-limit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}

.wp-theme .wp-hiring-limit-list li.is-reached {
  color: var(--critical);
}

.wp-theme .wp-hiring-limit-reset {
  font-weight: 500;
}

.wp-theme .wp-hiring-limit-page {
  margin-bottom: 14px;
}

.wp-theme .wp-hiring-limit-candidate {
  margin-top: 14px;
}

/* The top bar's Share button icon: the share card's .wp-share-icon tile style
   (44px bordered box) must not apply to it - it made the icon spill over the
   language switcher. Same 14px glyph as the Copy button, at every width. */
.wp-theme .wp-live-url-share .wp-share-icon {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 0;
  display: block;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Phones: the top bar fits in one row without overlapping - menu, the Live
   URL copy / share buttons (the page title gives way to them; the page has
   its own heading), compact language switcher, notifications, New Booking.
   Fits from 320px up.
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .wp-theme .wp-topbar {
    gap: 8px;
  }

  .wp-theme .wp-page-heading {
    flex: 1 1 auto;
    min-width: 0;
  }

  .wp-theme .wp-page-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wp-theme .wp-topbar:has(.wp-live-url-group) .wp-page-heading {
    display: none;
  }

  .wp-theme .wp-live-url-group {
    flex: 0 0 auto;
    margin-inline-start: auto;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 6px;
  }

  [dir="rtl"] .wp-theme .wp-live-url-group {
    padding: 0;
  }

  .wp-theme .wp-topbar-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .wp-theme .wp-topbar .wp-icon-btn,
  .wp-theme .wp-topbar .lang-switcher {
    width: auto;
    min-width: 40px;
    height: 40px;
  }

  .wp-theme .wp-topbar .wp-icon-btn {
    width: 40px;
  }

  .wp-theme .wp-topbar-cta {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .wp-theme .wp-topbar,
  .wp-theme .wp-topbar-actions {
    gap: 6px;
  }

  .wp-theme .wp-live-url-copy {
    width: 32px;
    height: 32px;
  }
}
