/* ============================================================================
   Kabstour — refinement layer
   ----------------------------------------------------------------------------
   Loaded last. This file changes no layout, no component and no colour of the
   brand. It settles the things that were inconsistent, which is what made a
   carefully built product read as a template.

   Measured before this file existed, on four signed-in pages:
     · 12 to 14 different corner radii per page
     · 6 to 8 different shadows per page
     · two body fonts, Inter and Poppins, mixed
     · one heading level rendering at 16, 18, 20 and 24 pixels
     · three different input treatments on a single form
     · 12 to 15 pill-shaped elements per page

   The aim is fewer decisions, repeated exactly. Everything below is either a
   scale or the application of one.
   ========================================================================= */

:root {
  /* Three radii. Anything else is an accident. */
  --r-sm: 8px;    /* inputs, buttons, chips, small tiles */
  --r-md: 12px;   /* cards, panels, modals */
  --r-pill: 999px;/* badges, avatars, toggles — things that really are pills */

  /* Two shadows. One for a resting surface, one for something floating. */
  --sh-rest: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-float: 0 10px 28px rgba(16, 24, 40, .12);

  /* One border. */
  --ln: #E6E8EE;
  --ln-strong: #D7DAE3;

  /* One motion. */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --fast: 140ms;
}

/* ─── TYPE ─────────────────────────────────────────────────────────────────
   One family, and a scale that actually steps. A heading was rendering at
   four different sizes depending on the page it landed on. */

body,
button,
input,
select,
textarea,
.header-global-search-title,
.bookmark-header-title {
  font-family: var(--kp-font, Inter), system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

body { font-size: 15px; line-height: 1.55; }

h1, .h1 { font-size: 24px !important; font-weight: 700 !important; line-height: 1.25 !important; letter-spacing: -.01em; }
h2, .h2 { font-size: 20px !important; font-weight: 700 !important; line-height: 1.3 !important; letter-spacing: -.01em; }
h3, .h3 { font-size: 18px !important; font-weight: 650 !important; line-height: 1.35 !important; }
h4, .h4 { font-size: 16px !important; font-weight: 650 !important; line-height: 1.4 !important; }
h5, .h5 { font-size: 15px !important; font-weight: 650 !important; line-height: 1.45 !important; }
h6, .h6 { font-size: 14px !important; font-weight: 650 !important; }

/* A section title should introduce the section, not shout over it. */
.single-profile-settings > h5,
.kp-card-title { margin-bottom: 16px; }

/* ─── SURFACES ─────────────────────────────────────────────────────────────
   One border, one radius, one resting shadow. The page background does the
   separating; a card does not need a heavy edge as well. */

.single-profile-settings,
.kp-card,
.card,
.offer-card,
.cv-card,
.kp-stat-card,
.bookmark-wrap,
.navbar-right-notification-wrapper {
  border-radius: var(--r-md) !important;
  border: 1px solid var(--ln) !important;
  box-shadow: var(--sh-rest) !important;
}

/* Floating things, and only those, get the deeper shadow. */
.navbar-right-notification-wrapper,
.kp-switcher-panel,
.header-global-search,
.modal-content,
.dropdown-menu {
  box-shadow: var(--sh-float) !important;
}

.modal-content,
.kp-switcher-panel,
.header-global-search { border-radius: var(--r-md) !important; }

/* The legacy container had its own 7px corner, which showed against
   everything else. */
.container.bg-white { border-radius: var(--r-md) !important; }

/* ─── CONTROLS ─────────────────────────────────────────────────────────────
   One form had three input treatments: 38px tall with a 4px corner and one
   border colour, 38px with 6px and another, and a 36px select. They are now
   the same control at the same height, which is also a comfortable target on
   a touch screen. */

.form-control,
.form-select,
.kp-input,
.kp-select,
.kp-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="tel"],
select,
textarea {
  min-height: 44px;
  border-radius: var(--r-sm) !important;
  border: 1px solid var(--ln-strong) !important;
  background-color: #fff;
  font-size: 15px;
  padding: 10px 12px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

textarea,
.kp-textarea { min-height: 96px; line-height: 1.5; }

.form-control:focus,
.form-select:focus,
.kp-input:focus,
.kp-select:focus,
.kp-textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--kp-primary) !important;
  box-shadow: 0 0 0 3px rgba(247, 65, 43, .14) !important;
  outline: none;
}

/* Labels: the same weight and the same distance from their field, everywhere. */
.form-label,
.kp-label,
.form-label-custom,
.label-title { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--kp-text, #1C2030); }

/* One required marker, and a quiet one.

   Fields were showing TWO stars — "Position / Job title * *" — because the
   markup writes a star inside the marker span and the stylesheet adds one
   after it. Rather than hunt every template, the span's own text is hidden
   and the marker supplies exactly one star wherever the class is used. */
.kp-label-required,
.required { font-size: 0 !important; }

.kp-label-required::after,
.required::after {
  content: ' *';
  font-size: 13.5px;
  color: var(--kp-danger, #D93720);
  font-weight: 600;
}

/* Help text under a field is guidance, not body copy. */
.kp-input-hint,
.hint-text,
.form-text { font-size: 12.5px; color: var(--kp-text-muted, #6A7085); margin-top: 5px; display: block; }

/* ─── BUTTONS ──────────────────────────────────────────────────────────────
   One height, one radius, one weight. */

.btn,
.btn-profile,
.kp-btn,
.quick-action-btn {
  border-radius: var(--r-sm) !important;
  font-weight: 600;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.btn:active,
.btn-profile:active,
.kp-btn:active { transform: translateY(1px); }

.btn:focus-visible,
.btn-profile:focus-visible,
.kp-btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--kp-primary);
  outline-offset: 2px;
}

/* ─── BADGES AND PILLS ─────────────────────────────────────────────────────
   A pill is for a status. It is not a layout device. Anything that is a pill
   stays one; everything that merely borrowed the shape goes back to the
   small radius above. */

.badge,
.kp-pill,
.kp-badge { border-radius: var(--r-pill) !important; font-weight: 600; font-size: 12px; letter-spacing: .01em; }

/* ─── TABLES AND LISTS ─────────────────────────────────────────────────────
   Lines between rows, not around every cell. */

.table { border-color: var(--ln) !important; }
.table > :not(caption) > * > * { border-bottom-color: var(--ln) !important; padding: 13px 14px; }
.table thead th {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--kp-text-muted, #6A7085);
  background: #FAFBFC;
  border-bottom: 1px solid var(--ln) !important;
}
.table tbody tr { transition: background-color var(--fast) var(--ease); }
.table tbody tr:hover { background: #FAFBFC; }

/* ─── NAVIGATION ───────────────────────────────────────────────────────────
   The side menu: a clear current item, and movement that is felt rather than
   watched. */

.profile-settings-menu-item-link {
  border-radius: var(--r-sm) !important;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.profile-settings-menu-item.active > .profile-settings-menu-item-link,
.profile-settings-menu-item-link:hover {
  background: var(--kp-primary-light, #FDECE9);
  color: var(--kp-primary);
}

.profile-settings-menu-item.active > .profile-settings-menu-item-link { font-weight: 650; }

/* ─── EMPTY STATES ─────────────────────────────────────────────────────────
   The same shape wherever there is nothing to show. */

.kp-empty,
.empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--kp-text-muted, #6A7085);
}

/* ─── MOTION ───────────────────────────────────────────────────────────────
   Subtle, and off entirely for anyone who has asked for less of it. */

.kp-action-tile,
.kp-row-link,
.offer-card,
.kp-stat-card { transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }

.kp-stat-card:hover,
.offer-card:hover { box-shadow: var(--sh-float); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ─── BRINGING THE STRAGGLERS ONTO THE SCALE ───────────────────────────────
   Measured, then named. Each line below was a one-off value that made the
   page look assembled rather than designed. */

/* One family. These two were still rendering in the template's Poppins while
   everything around them was Inter. */
h1, h2, h3, h4, h5, h6,
.btn-profile,
.btn {
  font-family: var(--kp-font, Inter), system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

/* Radii: 10px panels, 4px and 6px leftovers, and a 14px tile. */
.kp-rolesw-panel { border-radius: var(--r-md) !important; }
.kp-rolesw-ic,
.kp-svc-icon,
.header-global-search-close,
.navbar-author-link,
.kp-action-tile { border-radius: var(--r-sm) !important; }

/* Three spellings of "round": 99px, 9999px and 999px. One of them now. */
.kp-sidebar-user-role,
.kp-dash-eyebrow,
.kp-folder-badge { border-radius: var(--r-pill) !important; }

/* A status is not a pill. Mature products set these as small rounded chips,
   which also takes a dozen lozenge shapes off every page. */
.badge,
.kp-badge { border-radius: 6px !important; padding: 4px 8px; }

/* Shadows: seven became two, plus one hairline for the fixed header. */
.navbar.navbar-area { box-shadow: 0 1px 0 rgba(16, 24, 40, .08) !important; }

.kp-rolesw-panel { box-shadow: var(--sh-float) !important; }

.profile-settings-menu,
.kp-dash-btn,
.profile-bars { box-shadow: var(--sh-rest) !important; }

/* The hero is already a strong block of colour; a drop shadow under it only
   added weight. */
.kp-dash-hero { box-shadow: none !important; }

/* ─── THE HERO ─────────────────────────────────────────────────────────────
   Kept, because it carries the brand and the page's one real call to action.
   Trimmed, because it was taking a third of the screen before any content.
   The eyebrow pill above the heading said "JOB RECRUITMENT · KABSTOUR
   PLATFORM" to a person already inside Kabstour's job recruitment, so it
   goes. */

.kp-dash-hero { padding: 26px 28px !important; }
.kp-dash-hero h1,
.kp-dash-hero .kp-dash-title { font-size: 22px !important; margin-bottom: 6px !important; }
.kp-dash-hero p,
.kp-dash-hero .kp-dash-sub { margin-bottom: 16px !important; opacity: .92; }
.kp-dash-eyebrow { display: none !important; }

@media (max-width: 575.98px) {
  .kp-dash-hero { padding: 20px 18px !important; }
  .kp-dash-hero h1,
  .kp-dash-hero .kp-dash-title { font-size: 19px !important; }
}

/* ─── FORM RHYTHM ──────────────────────────────────────────────────────────
   One distance between fields, one between groups, so a long form reads as
   sections rather than a wall. */

.row.g-3 > [class^="col-"],
.row.g-3 > [class*=" col-"] { margin-bottom: 4px; }

fieldset,
.form-section { margin-bottom: 26px; }

.form-section-title,
.kp-form-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--kp-text-muted, #6A7085);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ln);
}

/* The minimum-wage line is guidance that belongs to the pay fields, not a
   blue system alert floating above them. */
.kp-minwage-notice,
.alert-info {
  background: #FAFBFC !important;
  border: 1px solid var(--ln) !important;
  border-left: 3px solid var(--kp-primary) !important;
  border-radius: var(--r-sm) !important;
  color: var(--kp-text, #1C2030) !important;
  font-size: 13.5px;
  padding: 12px 14px !important;
}

/* The last three. A badge with a colour class carried its own 99px, the side
   menu and the collapsible folders sat at 10px. */
.badge[class*="bg-"],
.badge[class*="badge-"] { border-radius: 6px !important; }

.profile-settings-menu,
.profile-settings-menu-inner,
.kp-folder { border-radius: var(--r-md) !important; }

.navbar-author-link { border-radius: var(--r-sm) !important; }

/* The wage notice is guidance attached to the pay fields, not a system
   alert. It was a blue information panel floating above the form; it now
   reads as part of the form, marked with a brand rule down its left edge. */
.kp-alert-info {
  background: #FAFBFC !important;
  border: 1px solid var(--ln) !important;
  border-left: 3px solid var(--kp-primary) !important;
  border-radius: var(--r-sm) !important;
  color: var(--kp-text, #1C2030) !important;
}

.kp-alert-info .kp-alert-text { font-size: 13.5px; }
.kp-alert-info strong { color: var(--kp-primary); }

/* ─── NOTHING MAY WIDEN THE PAGE ───────────────────────────────────────────
   Measured at 390px, three pages scrolled sideways. Each cause named:

   · .responsive-overlay — the legacy mobile menu backdrop, parked one screen
     to the right, so it doubled the page width wherever it rendered.
   · .resource-card — 451px of card inside a 390px screen, because its two
     action buttons sit side by side at a fixed width.
   · the Quick Hire button row — two buttons that would not wrap.
   · .stat-card — a grid column six pixels too wide to fit.

   A page that scrolls sideways on a phone feels broken however good the rest
   of it looks. */

.responsive-overlay {
  position: fixed !important;
  left: 0 !important;
  max-width: 100vw;
}

@media (max-width: 575.98px) {
  .resource-card,
  .offer-card,
  .stat-card,
  .kp-stat-card { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }

  .resource-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .resource-actions > a,
  .resource-actions > button { width: 100% !important; }

  /* Button rows wrap instead of running off the edge, and each one is wide
     enough to read and to hit. */
  .kp-flex.kp-items-center.kp-gap-3,
  .d-flex.gap-3 { flex-wrap: wrap !important; }

  .kp-btn,
  .btn-profile { max-width: 100%; }
}

/* Grid children must be allowed to shrink, or a long word inside one pushes
   the whole row wider than the screen. */
.row > [class^="col-"],
.row > [class*=" col-"],
.kp-action-grid > *,
.kp-stat-grid > * { min-width: 0; }

/* The stat cards left a gap on the right of every dashboard. portal.css uses
   `auto-fill`, which lays down as many 160px tracks as the row can hold and
   then leaves the spare ones EMPTY -- with four cards in a row wide enough for
   five, the fifth track is the gap. `auto-fit` collapses the empty tracks and
   shares their width among the cards that exist, so four cards fill the row
   however many there are. Same fix already applied to .kp-action-grid below. */
.kp-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
}

/* Below ~560px two 160px tracks no longer fit, and auto-fit would drop to a
   single column of very tall cards. Two columns read better on a phone. */
@media (max-width: 575.98px) {
  .kp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* The action tiles were fixed at two columns, which looks right on a phone
   and leaves half the row empty on a desktop. They now fit the space they
   are given: four across on a wide screen, two on a phone. */
.kp-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

@media (max-width: 575.98px) {
  .kp-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ─── THE TOP BAR ──────────────────────────────────────────────────────────
   Measured: the chat button was 38px, the bookmark and bell 40px, and the
   avatar a 30px image with its own white ring inside a 60x52 box with a
   different corner radius. Four controls, four treatments, sitting in a row.

   One control now, repeated. */

.kp-navbar-actions { display: flex; align-items: center; gap: 10px; }

.navbar-right-chat,
.navbar-right-notification-icon,
.nav-right-bookmark-icon,
.navbar-author-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .92) !important;
  color: var(--kp-text, #1C2030) !important;
  border: 1px solid rgba(255, 255, 255, .5) !important;
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
}

.navbar-right-chat:hover,
.navbar-right-notification-icon:hover,
.nav-right-bookmark-icon:hover,
.navbar-author-link:hover {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .18);
  transform: translateY(-1px);
}

.navbar-right-chat:focus-visible,
.navbar-right-notification-icon:focus-visible,
.nav-right-bookmark-icon:focus-visible,
.navbar-author-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* One icon size inside them, so the glyphs line up with each other. */
.navbar-right-chat i,
.navbar-right-notification-icon i,
.nav-right-bookmark-icon i { font-size: 16px; line-height: 1; }

/* The avatar becomes the fourth control rather than a photo with a ring. */
.navbar-author-link img {
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 50% !important;
  object-fit: cover;
}

/* The unread count sits on the edge of its button, the same way each time. */
.navbar-right-notification-icon .badge {
  top: -2px !important;
  right: -2px !important;
  left: auto !important;
  transform: none !important;
  min-width: 18px;
  height: 18px;
  padding: 0 5px !important;
  display: grid;
  place-items: center;
  font-size: 11px;
  border: 2px solid var(--kp-primary);
  border-radius: var(--r-pill) !important;
}

/* The services button is already 40px tall; match its corner to the row. */
.kp-switcher-btn { height: 40px; border-radius: var(--r-sm) !important; }

/* ─── THE BRAND MARK ───────────────────────────────────────────────────────
   The logo is gold on an orange bar, which is close to unreadable and almost
   gone at phone size, so it needs something light behind it.

   It used to be a white rounded rectangle — a plate with four visible edges
   sitting on the orange, which the client called childish, and they were
   right: you saw the box before you saw the mark.

   It is now a wash instead of a box, and the wash belongs to the BAR, not to
   the logo. That is the whole trick. A light shape drawn around the lockup
   can only fade over the few pixels of padding it has, and a fade that short
   is just a blurred rectangle — which is what a first attempt looked like.
   Anchored to the bar it runs the full height, so it has no top or bottom
   edge at all, starts at the very left corner, so it has no left edge, and
   has a couple of hundred pixels to disappear across, which is enough for
   the eye to lose it. What is left is a corner of the bar that is simply
   lighter than the rest, with the gold sitting on it.

   The width is capped as a percentage as well as in pixels so the wash is
   never more than about half a phone screen. Client, 13 Nov 2026. */

.header-style-01 .navbar-area { position: relative; }

.header-style-01 .navbar-area::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  max-width: 54%;
  background: linear-gradient(to right,
      rgba(86, 14, 4, .58) 0%,
      rgba(86, 14, 4, .50) 34%,
      rgba(86, 14, 4, .34) 54%,
      rgba(86, 14, 4, .18) 72%,
      rgba(86, 14, 4, .06) 88%,
      rgba(86, 14, 4, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* The bar's own contents sit on top of the wash. */
.header-style-01 .navbar-area .nav-container { position: relative; z-index: 1; }

.logo-wrapper {
  display: inline-flex !important;
  align-items: center;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.logo-wrapper .logo { display: block; line-height: 0; }

@media (max-width: 991.98px) {
  /* Hard against the left edge on a phone, at the client's request: the
     container's own left padding goes, and the mark keeps 12px of its own
     so it is not touching the edge of the glass. */
  .header-style-01 .navbar-area .nav-container,
  .header-style-01 .navbar-area .container.bg-white.nav-container {
    padding-left: 0 !important;
  }

  .logo-wrapper { padding-left: 12px; }
}

@media (max-width: 575.98px) {
  /* Below 576px the bar's inner container is inset 12px on both sides by
     its own auto margin, which is what still held the brand off the edge
     after the padding went. The inset is removed and the same 12px is put
     back on the right as padding, so the buttons at that end do not move
     by a pixel -- only the brand does. */
  .header-style-01 .navbar-area .nav-container,
  .header-style-01 .navbar-area .container.bg-white.nav-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 36px !important;
  }
}

/* The avatar sat behind a more specific rule from the design system, so it
   kept its 6px corner and its own ring while the three buttons beside it had
   become circles. Matched with equal specificity. */
.kp-navbar-actions .navbar-author-link,
.navbar-right-item .navbar-author-link {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .92) !important;
  overflow: hidden;
}

.kp-navbar-actions .navbar-author-link img,
.navbar-right-item .navbar-author-link img,
.navbar-author-flex img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  border: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* ---------------------------------------------------------------------------
   Browse resources: the filter panel as a disclosure
   The panel used to sit open above the results and pushed the first resource
   below the fold. It is now shut until asked for. Styled to read as one
   tappable bar rather than a stray HTML triangle.
   --------------------------------------------------------------------------- */
.kp-filters {
  background: #fff;
  border: 1px solid var(--kp-border, #e5e7eb);
  border-radius: var(--kp-radius-lg, 10px);
  margin-bottom: 20px;
  overflow: hidden;
}

.kp-filters-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
  list-style: none;
}

/* Safari and old Chrome draw their own triangle; these remove it. */
.kp-filters-summary::-webkit-details-marker { display: none; }
.kp-filters-summary::marker { content: ""; }

.kp-filters-summary:hover { background: #f9fafb; }

/* Keyboard users must be able to see where they are. */
.kp-filters-summary:focus-visible {
  outline: 2px solid var(--kp-primary, #f1592a);
  outline-offset: -2px;
}

.kp-filters-icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: #6b7280;
}

.kp-filters-label { flex: none; }

/* Says what is already narrowing the results, so a filtered list is never
   mistaken for the whole list. */
.kp-filters-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--kp-primary, #f1592a);
  background: rgba(241, 89, 42, 0.1);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.kp-filters-chevron {
  width: 18px;
  height: 18px;
  flex: none;
  margin-left: auto;
  color: #9ca3af;
  transition: transform 0.18s ease;
}

.kp-filters[open] .kp-filters-chevron { transform: rotate(180deg); }

/* The panel already carries the border; inside the disclosure it would be a
   second one. */
.kp-filters .filter-card {
  border: 0;
  border-top: 1px solid var(--kp-border, #e5e7eb);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .kp-filters-chevron { transition: none; }
}

/* ---------------------------------------------------------------------------
   Browse resources: the resource card on small screens
   The card is a flex ROW (avatar | details | buttons) and the view shipped
   with no media query at all. On a 360px phone the fixed 80px avatar, the
   140px minimum on the button column and 48px of padding left roughly 50px
   for the name, so "Joseph Bediako" wrapped one letter per line.
   The row now wraps: avatar and details stay side by side, the buttons drop
   to a row of their own underneath.
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .resource-card { flex-wrap: wrap; }

  /* flex-basis 0 with a floor: takes the space left beside the avatar, but
     never squeezes below a width a name can actually sit on. */
  .resource-info { flex: 1 1 0; min-width: 160px; }

  /* 100% basis forces its own line; min-width must be cleared or the 140px
     keeps it beside the details. */
  .resource-actions {
    flex: 1 1 100%;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .resource-actions > * {
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .resource-card { padding: 16px; gap: 14px; }

  /* 80px of avatar is a quarter of a phone screen. */
  .resource-avatar { width: 56px; height: 56px; }

  /* The checkbox is absolutely positioned at 12px and would otherwise sit on
     the avatar once the padding shrinks. */
  .resource-card .kp-bulk-check-wrap { top: 8px; left: 8px; }

  /* Long values inside the card -- skills, locations, salary lines -- must be
     allowed to break rather than force the card wider than the screen. */
  .resource-card { overflow-wrap: anywhere; }

  /* Lifting on hover is a pointer affordance; on a touch screen it just makes
     the card jump when tapped. */
  .resource-card:hover { transform: none; }
}

/* The results header stacks rather than crushing the sort control. */
@media (max-width: 575.98px) {
  .results-header { flex-wrap: wrap; gap: 10px; }
  .results-header .form-select { width: 100% !important; }
}

/* The filter bar's "2 filters applied" pill is the first thing to sacrifice
   when the bar runs out of room. */
@media (max-width: 420px) {
  .kp-filters-count { display: none; }
}

/* ---------------------------------------------------------------------------
   Dashboard stat cards as links
   Each card now goes to the page behind its number, so the figure is a way in
   rather than a dead end. The card was a <div> and is now an <a>; these rules
   stop the browser's default link styling from turning the whole card blue and
   underlined, and give it the affordances a link needs.
   --------------------------------------------------------------------------- */
.kp-stat-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.kp-stat-link:hover,
.kp-stat-link:focus-visible {
  color: inherit;
  text-decoration: none;
  border-color: var(--kp-primary, #f1592a);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
}

/* A pointer gets the lift; a finger does not, because on touch the card jumps
   under the thumb at the moment of tapping it. */
@media (hover: hover) and (pointer: fine) {
  .kp-stat-link:hover { transform: translateY(-2px); }
}

.kp-stat-link:focus-visible {
  outline: 2px solid var(--kp-primary, #f1592a);
  outline-offset: 2px;
}

/* The label is what says where the card goes, so it earns the hover colour
   rather than the number. */
.kp-stat-link:hover .kp-stat-label { color: var(--kp-primary, #f1592a); }

@media (prefers-reduced-motion: reduce) {
  .kp-stat-link { transition: none; }
  .kp-stat-link:hover { transform: none; }
}

/* ---------------------------------------------------------------------------
   Browse resources: the search icon sat on top of the placeholder
   The view sets `.search-box input { padding-left: 40px }`, but the theme's own
   stylesheet loads after the view's <style> block and resets the padding to
   12px -- measured, not guessed. The text then began at exactly the icon's left
   edge, so "Search by name, skills..." read as a glyph over an S at every
   width.

   portal.css settles it with .profile-settings-area .form-control { padding:
   12px !important }, so a normal rule cannot win however specific it is. This
   one matches that ancestor and carries !important too -- the narrow case
   where !important is the honest answer rather than a shortcut. The shorthand
   there also means padding-left alone is enough; the other three sides keep
   their 12px.
   --------------------------------------------------------------------------- */
.profile-settings-area .search-box input.form-control,
.search-box input.form-control { padding-left: 42px !important; }

/* Clicking the icon should put the cursor in the field, not swallow the click. */
.search-box svg { pointer-events: none; }

/* ---------------------------------------------------------------------------
   Type, from the client's own mockup
   portal.css imports Inter. The mockup uses Bricolage Grotesque for headings
   and figures and DM Sans for everything else -- it loads Bricolage at 600/700
   (heading weights) and DM Sans at 400/500/600 (body weights), which is what
   says which face does which job. Both are linked from the layout <head>, and
   this layer loads last, so these win over portal.css without editing it.
   --------------------------------------------------------------------------- */
body,
button, input, select, textarea,
.btn, .form-control, .form-select {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.kp-stat-value,
.resource-name,
.results-count,
.kp-filters-label {
  font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  letter-spacing: -0.015em;
}

/* Bricolage is only loaded at 600 and 700; asking for 400 or 500 makes the
   browser synthesise a lighter weight, which looks thin and uneven. */
h1, h2, h3, h4, h5, h6, .kp-stat-value { font-weight: 600; }

/* ---------------------------------------------------------------------------
   Item 7 — the sidebar could not be scrolled to its own bottom
   ---------------------------------------------------------------------------
   Measured: the menu is 1077px tall. It is position:sticky with
   overflow-y:hidden and no max-height, so on a 1366x768 laptop its last items
   sat 441px below the fold -- and because a sticky element stays put while
   the page scrolls, scrolling the page never brought them into view either.
   Log Out and Signing PIN were simply unreachable on a short screen.

   The fix is to cap it at the space it actually has and let it scroll inside
   that. Desktop only: on a phone the template slides this panel in from
   left:-100% as an absolutely positioned overlay, and constraining its height
   there would clip the overlay instead.
   --------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
   REVISED 23 Nov 2026: THE SIDEBAR NO LONGER HAS A SCROLLBAR OF ITS OWN.

   Capping it and letting it scroll inside itself did make the last items
   reachable, but it turned the sidebar into a scroll container -- so with the
   pointer anywhere over it the wheel scrolled the MENU and the page stayed
   where it was. The client's report was exactly that: "scrolling the page
   shouldn't scroll the sidebar", sent with a screenshot of a menu wound down
   to Log Out while the article beside it was still at the top.

   So the menu is its natural height again and the wheel always belongs to the
   page. Reaching the bottom items is solved by WHICH EDGE is pinned:

     - a menu that fits is pinned at the top, as before;
     - a menu taller than the window is pinned at its BOTTOM instead, so the
       page scrolling the first screenful brings its end into view and from
       then on it parks and stays.

   CSS cannot ask "is this taller than the window", so sidebar.blade.php
   measures it and writes data-kp-tall. Below 992px none of this applies: the
   template slides the panel in from left:-100% as an overlay.
   --------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .profile-settings-menu.sticky_top_lg {
    max-height: none !important;
    overflow-y: visible !important;
  }

  .profile-settings-menu.sticky_top_lg[data-kp-tall] {
    /* portal.css sets `top: 76px !important`, so unsetting it needs the same
       weight. With only `bottom` given, a sticky element travels with the page
       until its bottom edge reaches that offset, then holds. */
    top: auto !important;
    bottom: 20px;
  }
}

/* ---------------------------------------------------------------------------
   Item 5 — multi-select: Select All, and a cap that is visible
   --------------------------------------------------------------------------- */
.kp-selectall {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--kc-card, #fff);
  border: 1px solid var(--kc-line, #E6E8EE);
  border-radius: 12px;
}

.kp-selectall-box {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 24px;
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--kc-ink, #1C2030);
}

.kp-selectall-box input {
  width: 18px;
  height: 18px;
  accent-color: var(--kc-brand, #F2452D);
  cursor: pointer;
}

.kp-selectall-note {
  font-size: 12.5px;
  color: var(--kc-mute, #6A7085);
  margin-left: auto;
}

/* The cap has been reached. Said in the brand colour so it reads as the
   system answering, not as an error the person caused. */
.kp-selectall-note.is-full {
  color: var(--kc-brand, #F2452D);
  font-weight: 600;
}

/* A checkbox that cannot currently be ticked. Dimmed rather than hidden, so
   the limit is understood before it is hit. */
.kp-bulk-check-wrap.is-blocked { opacity: .35; }
.kp-bulk-check-wrap.is-blocked .kp-bulk-check { cursor: not-allowed; }

@media (max-width: 575.98px) {
  .kp-selectall-note { margin-left: 0; flex-basis: 100%; }
}

/* ---------------------------------------------------------------------------
   Item 3 — the wallet now says how to get paid
   --------------------------------------------------------------------------- */
.kp-withdraw-info .single-profile-settings-inner { padding: 18px; }

.kp-withdraw-lead {
  font-size: 14px;
  line-height: 1.65;
  color: var(--kc-mute, #6A7085);
  margin: 0 0 16px;
  max-width: 76ch;
}

.kp-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.kp-method {
  border: 1px solid var(--kc-line, #E6E8EE);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--kc-card, #fff);
}

.kp-method h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--kc-ink, #1C2030);
}

.kp-method p {
  font-size: 12.5px;
  color: var(--kc-mute, #6A7085);
  margin: 0 0 6px;
}

.kp-method ul { margin: 0; padding-left: 18px; }
.kp-method li { font-size: 13px; color: var(--kc-ink, #1C2030); line-height: 1.7; }

.kp-withdraw-facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--kc-bg, #F5F6F8);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.kp-withdraw-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.kp-withdraw-facts span { color: var(--kc-mute, #6A7085); }
.kp-withdraw-facts strong { color: var(--kc-ink, #1C2030); }

.kp-withdraw-note {
  padding: 13px 15px;
  background: #FFF4DC;
  color: #8A5B12;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
}

.kp-withdraw-note strong { display: block; margin-bottom: 4px; }

@media (min-width: 768px) {
  .kp-methods { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .kp-withdraw-facts { grid-template-columns: repeat(3, 1fr); }
  .kp-withdraw-facts li { flex-direction: column; gap: 3px; }
}

/* ---------------------------------------------------------------------------
   Item 2 — the shared filter bar used across the list screens
   --------------------------------------------------------------------------- */
.kp-listfilter { margin-bottom: 16px; }
.kp-listfilter-form { padding: 14px; border-top: 1px solid var(--kc-line, #E6E8EE); }

.kp-listfilter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.kp-listfilter-field { min-width: 0; }

.kp-listfilter-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kc-mute, #6A7085);
  margin-bottom: 5px;
}

.kp-listfilter-field input,
.kp-listfilter-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--kc-line, #E6E8EE);
  border-radius: 10px;
  background: var(--kc-card, #fff);
  color: var(--kc-ink, #1C2030);
  font-size: 14.5px;
}

.kp-listfilter-field input:focus,
.kp-listfilter-field select:focus {
  outline: none;
  border-color: var(--kc-brand, #F2452D);
  box-shadow: 0 0 0 3px rgba(242, 69, 45, .12);
}

.kp-listfilter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.kp-listfilter-actions .kp-btn-ghost { text-decoration: none; display: inline-flex; align-items: center; }

@media (min-width: 576px) {
  .kp-listfilter-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  /* The keyword box earns more room than a dropdown. */
  .kp-listfilter-wide { grid-column: span 2; }
}

/* ─── A FIELD THE RULES FILL IN ────────────────────────────────────────────
   A casual contract's end date is set from its start date and may not be
   typed over (App\Support\CasualTerms). readOnly alone looks identical to an
   ordinary empty box, so the person types into it, nothing happens, and they
   conclude the form is broken. It is greyed and given the "not allowed"
   cursor so the state is visible before they try. The note underneath says
   why; this only has to say THAT. */

input.is-locked,
select.is-locked {
  background: var(--kp-surface-2, #F5F6F8) !important;
  color: #475569 !important;
  cursor: not-allowed;
}

/* A quiet parenthetical beside a field label, for "(leave empty for no end)"
   and the like. Smaller and lighter than the label it follows. */
.kp-label-hint {
  font-weight: 400;
  font-size: 0.86em;
  color: #6A7085;
}

/* ─── A TICK BOX ON A LIST ROW ─────────────────────────────────────────────
   Browse Resources puts its checkbox in the corner of a card, which works
   because those cards are tiles. A contract row is wide and read left to
   right, so the box sits at the start of the headline instead, in line with
   the title it selects. The label is 44px so it meets a finger on a phone
   without the box itself having to be that big. */

.contract-headline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.kp-rowcheck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -10px 0 0 -10px;   /* back out of the padding, keep the text aligned */
  cursor: pointer;
  flex-shrink: 0;
}

.kp-rowcheck input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--kp-primary, #F7412B);
}

.kp-rowcheck input:disabled { cursor: not-allowed; opacity: .4; }

/* The bulk bar is fixed to the bottom of the window, and on a phone the
   bottom navigation is already there. Lift it clear, or the two overlap and
   the Delete button cannot be reached. */
@media (max-width: 991.98px) {
  .kp-bulk-bar { bottom: calc(var(--kp-tabbar-height, 62px) + 14px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* "Also looking for: cook, kitchen hand" under the search box. The search
   widens itself through the trade vocabulary, and a search that quietly
   returns more than it was asked for is a search nobody trusts. */
.kp-listfilter-also {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6A7085;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE DASHBOARD SIDEBAR
   Reworked 9 Nov 2026, at the client's direction: "sidebar writings, make
   them black like the name.. icons, same".
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Colour ────────────────────────────────────────────────────────────────
   The labels were #667085 — mid-grey on white, which reads as disabled next
   to the near-black name above them. Navigation you use every day should be
   as readable as anything else on the page, so the label is the same ink as
   the person's name and the icon is the same ink as its label.

   The icons now draw in currentColor (their SVGs were replaced), so one
   colour declaration moves both together and the active state needs no
   second rule. */
.profile-settings-menu-item .profile-settings-menu-item-link,
.profile-settings-menu-item button.profile-settings-menu-item-link {
  color: #1C2030 !important;
  font-weight: 500 !important;
}

.profile-settings-menu-item .profile-settings-menu-item-link:hover,
.profile-settings-menu-item button.profile-settings-menu-item-link:hover {
  color: #0B0D12 !important;
  background: #F4F5F7 !important;
}

.profile-settings-menu-item.active .profile-settings-menu-item-link,
.profile-settings-menu-item.active button.profile-settings-menu-item-link {
  color: var(--kp-primary) !important;
  font-weight: 600 !important;
}

/* The icon carries the label's colour and nothing else.

   REMOVING A FILTER HACK: the old icons had fill="#667085" baked in, so the
   active state tinted them with
   `filter: invert(38%) sepia(92%) saturate(2600%) …`. With currentColor that
   filter would re-tint an icon that is already the right colour, turning the
   active one brown. The icons also no longer need an opacity fade to look
   secondary — they are secondary because they are thin, not because they are
   faded, and a faded icon at 16px just looks blurred. */
.profile-settings-menu-item .profile-settings-menu-item-link svg,
.profile-settings-menu-item button.profile-settings-menu-item-link svg,
.profile-settings-menu-item.active .profile-settings-menu-item-link svg,
.profile-settings-menu-item.active button.profile-settings-menu-item-link svg,
.profile-settings-menu-item:hover .profile-settings-menu-item-link svg {
  width: 20px !important;
  height: 20px !important;
  opacity: 1 !important;
  /* The old rule tinted a grey icon orange with
     `filter: invert(38%) sepia(92%) saturate(2600%) …`. The icons are
     currentColor now, so that filter would re-tint one that is already the
     right colour and land somewhere brown. Measured after the icon swap: the
     active icon still had the filter applied. It has to be turned off at
     equal or greater specificity than the rule that set it. */
  filter: none !important;
  color: inherit !important;
  stroke: currentColor !important;
  fill: none !important;
}

/* ── Fitting ───────────────────────────────────────────────────────────────
   The panel is taller than the window on every laptop: measured at 1280x800
   the column was 704px and its contents 954px. It did scroll, but the
   browser's default bar is heavy enough to read as a fault, and a row sliced
   in half at the bottom edge reads as clipped rather than as "more below".

   So: the identity card stays put, the list scrolls under it, the bar is
   quiet, and the bottom edge fades. */
.profile-settings-menu {
  display: flex !important;
  flex-direction: column !important;
}

.profile-settings-menu-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 32, 48, .22) transparent;
  overscroll-behavior: contain;
}

.profile-settings-menu-list::-webkit-scrollbar { width: 8px; }
.profile-settings-menu-list::-webkit-scrollbar-track { background: transparent; }
.profile-settings-menu-list::-webkit-scrollbar-thumb {
  background: rgba(28, 32, 48, .2);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.profile-settings-menu-list::-webkit-scrollbar-thumb:hover { background: rgba(28, 32, 48, .36); background-clip: content-box; }

@media (min-width: 992px) {
  /* The whole panel scrolls on desktop, so the identity card goes with it;
     keeping it visible is worth more than the two rows it costs. */
  .profile-settings-menu.sticky_top_lg { padding-bottom: 0 !important; }
  .profile-settings-menu.sticky_top_lg .kp-sidebar-user-card {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
  }
}

/* ── The Menu bar on a phone and tablet ────────────────────────────────────
   It is the lid of the drawer, so it is square at the bottom and the panel
   is square at the top: one object, not two stacked boxes. */
@media (max-width: 991.98px) {
  .profile-bars {
    margin-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
  }
  .profile-bars.is-open { border-radius: 10px 10px 0 0 !important; }

  /* Full width of the column it opens in, not a fixed 275px.

     The template pins the drawer to `width: 275px`, which on anything wider
     than a small phone leaves a strip of empty page beside it — the panel
     floats in its own column rather than filling it, and the menu looks
     like it failed to load the rest of itself. Measured at 820px: a 275px
     panel in a 760px column, 485px of nothing to its left. */
  .profile-settings-menu-inner {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    border-radius: 0 0 10px 10px !important;
    border: 1px solid var(--ln, #E6E8EE) !important;
    border-top: 0 !important;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .14) !important;
  }

  /* It slides in from the left, so "closed" has to stay off-screen by its
     own full width now that the width is no longer a known number. */
  .profile-settings-menu-inner:not(.active) {
    transform: translateX(-110%);
    left: 0 !important;
  }
  .profile-settings-menu-inner.active {
    transform: none;
  }

  /* A row cut by the bottom edge should say "keep going", not "broken". */
  .profile-settings-menu-list {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent 100%);
    padding-bottom: 14px !important;
  }
}

/* The two icons in the Menu bar are inline SVG now, not an icon font. */
.profile-bars svg { width: 18px; height: 18px; flex-shrink: 0; }
.profile-bars .profile-bars-caret { transition: transform .2s ease; }
.profile-bars.is-open .profile-bars-caret { transform: rotate(180deg); }
.profile-close svg { width: 20px; height: 20px; }

/* ── A RATING, WHEREVER IT APPEARS ─────────────────────────────────────────
   The number first and large, the stars small beside it as the unit, the
   count in grey, and no container. The old treatment put hollow amber stars
   in a pale-yellow pill with a yellow border — the visual weight of a
   highlight, spent on the sentence "No ratings yet".

   <x-kabs.stars> draws the stars rather than setting them as a font, so a
   half star is a real half and nothing depends on Font Awesome loading. */
.rating-inline,
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.rating-pill .rating-score,
.rating-inline .rating-score {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1C2030;
  font-variant-numeric: tabular-nums;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  height: auto !important;
}

.rating-pill .rating-text,
.rating-inline .rating-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #8A90A2;
}

.rating-stars { display: inline-flex; align-items: center; gap: 1px; line-height: 0; }
.rating-stars svg { width: 14px; height: 14px; display: block; }
.rating-stars .s-on  { fill: #E8A33D; }
.rating-stars .s-off { fill: #DFE2E8; }

/* Twenty-one rows is a long menu. Shaving four pixels off each one is worth
   nearly a whole extra item on a laptop, and the rows are still a 40px tap
   target. */
.profile-settings-menu-item .profile-settings-menu-item-link,
.profile-settings-menu-item button.profile-settings-menu-item-link {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  gap: 11px !important;
}

/* The "there is more below" fade went with the inner scrollbar on 23 Nov 2026.
   It told you a row was cut off by the bottom of the panel; nothing is cut off
   any more, and a fade over a last item that is simply there reads as a
   rendering fault. */

/* THE REASON SOME SIDEBAR ICONS LOOKED SOLID AND OTHERS DID NOT.

   The template stylesheet carries

       .profile-settings-menu-item-link svg path { fill: var(--paragraph-color); }

   which paints every <path> grey. It does not mention <rect>, <circle> or
   <line>. So an icon built from rectangles (Dashboard, Payslips) drew as a
   line drawing, and one built from paths (Sent Offers, Contracts, Wallet,
   Messages, Profile) drew as a solid grey blob — in the same list, at the
   same size. That is the "why are some icons shaded" the client asked about
   on 9 Nov 2026.

   Setting `fill: none` on the <svg> does not help: fill is inherited, and a
   rule that names the <path> directly beats anything inherited from its
   parent. It has to be said about the path itself.

   Scoped to this menu rather than applied to every svg on the site, because
   an icon elsewhere may legitimately be a filled shape. */
.profile-settings-menu-item-link svg path,
.profile-settings-menu-item-link svg polyline,
.profile-settings-menu-item-link svg polygon,
.profile-settings-menu-item-link svg rect,
.profile-settings-menu-item-link svg circle,
.profile-settings-menu-item-link svg line,
.profile-settings-menu-item-link svg ellipse {
  fill: none !important;
  stroke: currentColor !important;
}

/* THE RED "MENU" BAR ABOVE THE SIDEBAR SHOULD NOT BE THERE AT ALL.

   It is a mobile control. The markup marks it `d-lg-none`, so Bootstrap
   hides it from 992px up — except portal.css sets `.profile-bars { display:
   flex !important }`, and with equal specificity and `!important` on both
   sides the later stylesheet wins. So it was displayed at every width.

   Below 992px it is never seen either: platform.css hides the whole sidebar
   column there, because the cube modal in the header is the mobile
   navigation. So the bar only ever appeared on the ONE layout where it is
   useless — the desktop sidebar is already open, which is why its caret
   "doesn't do anything" (client, 9 Nov 2026). It also cost 60px at the top
   of the column, pushing the menu down and the last items out of view.

   Hidden from 992px up, which is every width where the column exists. */
@media (min-width: 992px) {
  .profile-bars,
  .profile-close {
    display: none !important;
  }

  /* With the bar gone the panel is the top of the column again. */
  .profile-settings-menu-inner {
    border-radius: var(--r-md) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE SIGNED-IN PAGES USE THE WINDOW
   ═══════════════════════════════════════════════════════════════════════════
   Every page behind the login sits in Bootstrap's `.container`, which caps at
   1320px and centres. Measured: on a 1700px window that is 190px of empty
   page down each side; on 1920px it is 300px. The sidebar floated in from the
   left edge and the metric cards stopped short of the right, so "Offers sent
   this week" wrapped onto three lines inside a card with room to spare
   outside it. (Client, 9 Nov 2026: "push the sidebar to fill the space on the
   left and extend those cards to the right".)

   A dashboard is not prose — it is a sidebar and a grid of figures, and both
   get better the more room they have. So these pages take the window, less a
   gutter, up to a limit.

   THE LIMIT IS NOT DECORATION. Without one, six metric cards on an ultrawide
   monitor become six very wide, very short boxes with a number lost in the
   middle of each — which is the opposite of the complaint. 1840px is about
   where that starts, and it is still 500px more than before.

   Scoped to .profile-settings-area, so the marketing pages keep the narrower
   measure that long-form text needs. */
@media (min-width: 992px) {
  .profile-settings-area > .container,
  .profile-settings-area > .container-fluid {
    max-width: min(100% - 40px, 1840px) !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* THE SIDEBAR IS A FIXED WIDTH, NOT A PERCENTAGE.

   Bootstrap's col-xl-3 is 25% of the row, so the menu grew with the window:
   at 1320px it was 306px, and once these pages were allowed to use the whole
   screen it would have been 415px at 1700 and 460px at 1920. A 460px menu of
   twenty short words is half a screen of white space, and it is taken from
   the figures beside it, which are what the room is for. (Client, 9 Nov
   2026: "let the sidebar end at the line I've drawn and extend the cards to
   the other end of the line".)

   300px fits the longest label in the menu — "Address Verification" with its
   icon and its warning dot — with room to spare, at every window size. The
   content column takes everything else. */
@media (min-width: 992px) {
  .profile-settings-area .row > [class*="col-"]:has(> .profile-settings-menu) {
    flex: 0 0 300px !important;
    max-width: 300px !important;
    width: 300px !important;
  }
  .profile-settings-area .row > .col-xl-9,
  .profile-settings-area .row > .col-lg-8,
  .profile-settings-area .row > .col-xl-9.col-lg-8 {
    flex: 1 1 0 !important;
    max-width: none !important;
    width: auto !important;
  }
}

/* ─── A NOTIFICATION ROW IS ONE TARGET ─────────────────────────────────────
   Only the message text used to be inside the anchor, so a press on the
   icon, the date, or the space either side did nothing — which on a touch
   screen is most of the row. And any notification type the dropdown did not
   recognise rendered href="javascript:void(0)": a row that looks exactly
   like the ones that work and does nothing at all.

   One stretched link covers the row. App\Support\NotificationLink decides
   where it goes, preferring the destination the notification already carries
   over a guess from its type. */
.navbar-right-notification-wrapper-list-item {
  position: relative;
}

.kp-notif-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  border-radius: inherit;
  /* No text, no background: it is a target, not a thing to look at. */
  text-indent: -9999px;
  overflow: hidden;
}

.kp-notif-hit:focus-visible {
  outline: 2px solid var(--kp-primary, #F7412B);
  outline-offset: -2px;
}

/* The row is a link now, so it should say so when a pointer is over it. */
.navbar-right-notification-wrapper-list-item:has(.kp-notif-hit) { cursor: pointer; }
.navbar-right-notification-wrapper-list-item:has(.kp-notif-hit:hover) { background: #F6F7F9; }

/* ─── THE WALLET FIGURES ───────────────────────────────────────────────────
   They were three lines of running text with a bold number in the middle of
   each — the shape of a sentence rather than of a reading, and the one place
   left in the product still doing it the template's way while every
   dashboard puts a figure in a tile with its label underneath.

   Same parts as <x-kabs.metric>: the number first and large, the label
   beneath it in grey, one card each. The balance carries the brand because
   it is the one that can actually be withdrawn. */

.kp-wallet-figures {
  display: grid;
  /* A maximum as well as a minimum. With 1fr the employer's single balance
     tile stretched the full width of the card into a flat banner with the
     figure stranded at one end -- the same shape the client objected to on
     the dashboard. Capped and left-aligned, one tile and three tiles are
     the same size as each other. */
  grid-template-columns: repeat(auto-fit, minmax(170px, 260px));
  justify-content: start;
  gap: 12px;
  margin-bottom: 4px;
  width: 100%;
  min-width: 0;
}

/* On a phone a 260px cap would leave a gap down one side, so they fill. */
@media (max-width: 575.98px) {
  .kp-wallet-figures { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

.kp-wallet-figure {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--ln, #E6E8EE);
  border-radius: var(--r-md, 12px);
  background: #fff;
}

.kp-wallet-figure-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #1C2030;
  font-variant-numeric: tabular-nums;
  /* A long figure shortens rather than pushing the card wider. */
  overflow-wrap: anywhere;
}

.kp-wallet-figure-label {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #6A7085;
}

.kp-wallet-figure.is-primary {
  background: linear-gradient(135deg, var(--kp-primary, #F7412B) 0%, var(--kp-primary-dark, #C7331E) 100%);
  border-color: transparent;
}
.kp-wallet-figure.is-primary .kp-wallet-figure-value { color: #fff; }
.kp-wallet-figure.is-primary .kp-wallet-figure-label { color: rgba(255, 255, 255, .88); }

/* What a withdrawal costs, and what it does not, said before the person
   types rather than after they are refused. */
.kp-withdraw-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  background: #F6F7F9;
  border-radius: var(--r-sm, 8px);
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

/* WITHDRAW REQUEST, ON BOTH WALLETS.

   It was an outlined button on the employer side and Bootstrap's own
   crimson .btn-danger on the resource side -- two different reds for one
   action, neither of them the brand's. Solid brand red on both, so the two
   sides of the product agree and the button reads as an action rather than
   as a cancel.

   .btn-danger is scoped to the wallet's own button row: it is a destructive
   colour elsewhere and that is left alone. */
.btn-profile.btn-bg-5,
.single-profile-settings-contents-upload-btn .btn-danger {
  background: var(--kp-primary, #F7412B) !important;
  background-image: none !important;
  color: #fff !important;
  border: 1px solid var(--kp-primary, #F7412B) !important;
}

.btn-profile.btn-bg-5:hover,
.single-profile-settings-contents-upload-btn .btn-danger:hover {
  background: var(--kp-primary-dark, #C7331E) !important;
  border-color: var(--kp-primary-dark, #C7331E) !important;
  color: #fff !important;
}

/* Disabled is a SOLID muted red, not a transparent one.

   `opacity: .55` let whatever sits behind the button show through, and the
   buttons sit flush against each other -- so the disabled red Withdraw
   button took on the green of the Deposit button beside it and read as a
   washed-out green with brown text. Opacity is the wrong tool for a
   disabled state on a coloured control: it fades the label as well, which
   is the one part that still has to be readable. */
.btn-profile.btn-bg-5[disabled],
.single-profile-settings-contents-upload-btn .btn-danger[disabled],
.btn-profile.btn-bg-5:disabled,
.single-profile-settings-contents-upload-btn .btn-danger:disabled {
  background: #F0A59A !important;
  background-image: none !important;
  border-color: #F0A59A !important;
  color: #fff !important;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* Two buttons flush against each other read as one control. */
.single-profile-settings-contents-upload-btn { display: flex; gap: 10px; flex-wrap: wrap; }

/* Why the Withdraw button is not pressable yet. The control used to be
   hidden below the minimum, so there was nothing to explain and nothing to
   ask about. */
.kp-withdraw-floor {
  margin: 10px 0 0;
  font-size: 13px;
  color: #6A7085;
  flex-basis: 100%;
}
/* Not an opacity: see the disabled rule above for why. */
.btn-profile[disabled], .btn[disabled] { cursor: not-allowed; }

/* ─── TICK AS MANY AS APPLY ────────────────────────────────────────────────
   A native <select multiple> needs ctrl-click to add a second choice, which
   nobody discovers and which does not exist on a phone. Checkboxes styled as
   pills: the whole pill is the label, so the target is the width of the word
   rather than a 13px box. */

.kp-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kp-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 14px;
  min-height: 42px;
  border: 1px solid var(--ln, #E6E8EE);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: #1C2030;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}

.kp-choice:hover { border-color: #C3C8D4; }

.kp-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--kp-primary, #F7412B);
  cursor: pointer;
  flex: none;
}

/* Ticked reads as ticked without relying on the box alone. */
.kp-choice:has(input:checked) {
  border-color: var(--kp-primary, #F7412B);
  background: #FFF4F2;
  font-weight: 600;
}

.kp-choice:has(input:focus-visible) {
  outline: 2px solid var(--kp-primary, #F7412B);
  outline-offset: 2px;
}

.kp-choices-hint {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: #6A7085;
}

/* ---------------------------------------------------------------------------
   Pagination that fits a phone.

   Bootstrap's pager lays its numbers out in one unwrapping row. With 1,459
   resources at twelve a page that is 122 pages, so the row measured 531px
   against a 390px screen and dragged the WHOLE PAGE sideways -- every
   listing on the site, not just one. Nothing else on the page overflowed.

   Wrapping is the fix rather than scrolling the pager in its own box: a
   second short line of numbers is obvious, whereas a nested sideways scroll
   inside a page is something people have to discover. The numbers also get
   a real tap target -- 38px was below the 44px minimum on a touch screen.
   --------------------------------------------------------------------------- */
.pagination {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 6px;
}

@media (max-width: 575.98px) {
  .pagination .page-link {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ---------------------------------------------------------------------------
   Closing your own account.

   The old page was a red button and one line of text. It said nothing about
   what happens to your contracts and payment records, so the only honest
   version of this page is mostly words -- which means the words need to be
   readable rather than crammed above a red button.

   The "stop" variant is for when something has to be settled first: money in
   the wallet, or a contract still running. It is amber, not red, because it
   is not a refusal, it is a "not yet".
   --------------------------------------------------------------------------- */
.kp-account-delete {
  max-width: 640px;
}

.kp-delete-block {
  background: #F7F8FA;
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.kp-delete-block--stop {
  background: #FFF8EC;
  border-color: #F3C98B;
}

.kp-delete-block h5 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #101828;
}

.kp-delete-list {
  margin: 0;
  padding-left: 20px;
}

.kp-delete-list li {
  font-size: 14.5px;
  line-height: 1.65;
  color: #475467;
  margin-bottom: 7px;
}

.kp-delete-list li:last-child {
  margin-bottom: 0;
}

.kp-delete-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: #475467;
}

.kp-delete-form .form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #101828;
}

.kp-delete-form .password-wrapper {
  position: relative;
  max-width: 380px;
}

.kp-delete-error {
  margin-top: 8px;
  font-size: 13.5px;
  color: #B42318;
}

/* The button is a real tap target on a phone, and full width there rather
   than a small red rectangle floating at the right edge. */
@media (max-width: 575.98px) {
  .kp-delete-form .password-wrapper {
    max-width: 100%;
  }

  .kp-delete-form .btn-wrapper {
    justify-content: stretch !important;
  }

  .kp-delete-form .btn-danger {
    width: 100%;
    min-height: 46px;
  }
}

/* ─── THE BELL ON A PHONE ──────────────────────────────────────────────────
   Below 992px the whole right-hand cluster was hidden: the search, the chat,
   the bookmark and the avatar are all reached through the nav modal, so the
   row was switched off wholesale. The notification bell was in that row, so a
   phone had no bell and no unread count anywhere on the top bar -- the only
   hint was a small dot on "Menu" in the bottom bar. Client, 11 Nov 2026.

   The bell stays where it is in the markup. Three things hid it and all three
   are undone here: our own display:none, and the theme's visibility/opacity
   and negative margin on .show-nav-content. Everything else in the row stays
   hidden, so the bar is still the bell and the two cubes. */

.kp-bell-slot { display: flex; align-items: center; }

@media (max-width: 991.98px) {
  .kp-navbar-actions .navbar-right-content.show-nav-content,
  .kp-navbar-actions .navbar-right-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 0 !important;
  }

  /* Only the bell. The rest of the cluster lives in the nav modal. */
  .kp-navbar-actions .navbar-right-flex > *:not(.kp-bell-slot) { display: none !important; }

  /* Three controls of one size, evenly spaced, so the bell reads as part of
     the set rather than a stray circle next to two squares. */
  .kp-navbar-actions { gap: 8px; }

  .kp-bell-slot .navbar-right-notification-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .16) !important;
    border: none !important;
    color: #fff !important;
  }

  .kp-bell-slot .navbar-right-notification-icon:hover,
  .kp-bell-slot .navbar-right-notification-icon:focus-visible {
    background: rgba(255, 255, 255, .28) !important;
    transform: none;
    box-shadow: none;
  }

  .kp-bell-slot .navbar-right-notification-icon i { font-size: 18px; }

  /* The count has to survive on a translucent square, so it keeps its own
     white ring instead of borrowing the bar's orange. */
  .kp-bell-slot .navbar-right-notification-icon .badge {
    border-color: #fff !important;
  }

  /* The panel was 430px wide, absolutely placed against the icon, and the
     theme shoved it back on screen with a percentage translateX at three
     breakpoints -- so on a 390px phone it hung off the edge and the nudge
     left it crooked. It is a sheet under the bar now, the same treatment the
     services panel already uses, so it fits any width without arithmetic. */
  .kp-bell-slot .navbar-right-notification .navbar-right-notification-wrapper,
  .kp-bell-slot .navbar-right-notification .navbar-right-notification-wrapper.active {
    position: fixed;
    top: 74px;
    left: auto;
    right: 12px;
    width: min(430px, calc(100vw - 24px));
    max-width: none;
    transform: none !important;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }
}

/* ─── LAWYERS ON A TERMINATED CONTRACT ─────────────────────────────────────
   Shown to a resource whose contract was terminated, under the "report to
   security" card. A suggestion and nothing more, so it is styled as a calm
   panel rather than an alert: the page already has red on it, and somebody
   who has just lost a contract does not need another warning colour.
   11 Nov 2026. */

.kp-legal-help {
  background: #fff;
  border: 1px solid var(--kp-border, #e5e7eb);
  border-radius: var(--kp-radius-lg, 12px);
  padding: 20px;
  margin-bottom: 20px;
}

.kp-legal-help__head { display: flex; gap: 14px; align-items: flex-start; }

.kp-legal-help__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #EEF2FF;
  color: #4338CA;
  font-size: 17px;
}

.kp-legal-help__head h3 {
  font-size: 16px !important;
  font-weight: 650 !important;
  margin: 0 0 4px;
}

.kp-legal-help__head p {
  margin: 0;
  font-size: 14px;
  color: var(--kp-muted, #6b7280);
  line-height: 1.5;
}

.kp-legal-help__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.kp-legal-help__person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--kp-border, #e5e7eb);
  border-radius: 10px;
  /* Long names must be able to shrink, or the Message button is pushed off
     the right edge on a narrow phone. */
  min-width: 0;
}

.kp-legal-help__avatar {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.kp-legal-help__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.kp-legal-help__name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--kp-text, #1C2030);
  overflow-wrap: anywhere;
}

.kp-legal-help__title {
  font-size: 13px;
  color: var(--kp-muted, #6b7280);
  overflow-wrap: anywhere;
}

.kp-legal-help__action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--kp-border, #e5e7eb);
  background: #fff;
  color: var(--kp-text, #1C2030);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.kp-legal-help__action:hover,
.kp-legal-help__action:focus-visible {
  background: #F6F7F9;
  border-color: #cbd2dc;
  color: var(--kp-text, #1C2030);
}

.kp-legal-help__order,
.kp-legal-help__note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--kp-muted, #6b7280);
}

.kp-legal-help__order { margin-bottom: 0; font-style: italic; }

@media (max-width: 575.98px) {
  .kp-legal-help { padding: 16px; }

  /* On a phone the row becomes two lines: the person, then a full-width
     button. Keeping them side by side squeezed a two-word name into four
     lines to leave room for a button the thumb could barely hit. */
  .kp-legal-help__person { flex-wrap: wrap; }
  .kp-legal-help__who { flex-basis: calc(100% - 52px); }
  .kp-legal-help__action { width: 100%; min-height: 42px; }
}

/* ─── A CONTRACT THAT HAS ENDED ────────────────────────────────────────────
   A terminated contract looked exactly like a live one apart from a small
   grey badge, so a resource could read the whole page as though the job were
   still on. This is the notice that says otherwise, at the top, before the
   terms. 11 Nov 2026. */

.kp-contract-closed {
  border: 1px solid #FECDCA;
  background: #FFFBFA;
  border-left: 4px solid #D92D20;
  border-radius: var(--kp-radius-lg, 12px);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.kp-contract-closed h5 {
  margin: 0 0 6px;
  font-size: 16px !important;
  font-weight: 650 !important;
  color: #912018;
}

.kp-contract-closed p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #6b7280;
}

.kp-contract-closed__reason {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid #FECDCA;
  /* A reason is somebody's free text and can be one long word. */
  overflow-wrap: anywhere;
}

.kp-contract-closed__reason strong { color: #1C2030; }

/* Completed is an ending, but a good one -- it should not be alarming. */
.kp-contract-closed--completed {
  border-color: #ABEFC6;
  border-left-color: #067647;
  background: #F6FEF9;
}

.kp-contract-closed--completed h5 { color: #067647; }
.kp-contract-closed--completed .kp-contract-closed__reason { border-top-color: #ABEFC6; }

@media (max-width: 575.98px) {
  .kp-contract-closed { padding: 14px; }
}

/* ─── AN UNREAD NOTIFICATION LOOKS UNREAD ──────────────────────────────────
   Every row in the bell looked identical, read or not, so the count on the
   badge was the only clue that anything was new and there was no way to tell
   WHICH ones. Raised at the review as point 2, 11 Nov 2026.

   Three signals, because one is easy to miss: the text is heavier, the row
   has a tinted background, and a dot sits on the left edge. */

.navbar-right-notification-wrapper-list-item.is-unread {
  background: #FFF6F4;
  position: relative;
}

.navbar-right-notification-wrapper-list-item.is-unread::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--kp-primary, #F7412B);
}

.navbar-right-notification-wrapper-list-item.is-unread
  .navbar-right-notification-wrapper-list-item-content-title {
  font-weight: 650;
  color: var(--kp-text, #1C2030);
}

/* The hover tint must not wipe out the unread tint, or a row stops looking
   unread the moment you point at it. */
.navbar-right-notification-wrapper-list-item.is-unread:has(.kp-notif-hit:hover) {
  background: #FFEDE9;
}

/* ─── CONTRACT GROUPS ──────────────────────────────────────────────────────
   The employer was searching five hundred contracts to find the handful that
   are signed and not yet started. That is not a search problem, it is a
   missing group. "Waiting to start" leads the row and carries its count.
   11 Nov 2026. */

.kp-contract-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.kp-contract-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--kp-border, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  color: var(--kp-muted, #6b7280);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.kp-contract-tab:hover { background: #F6F7F9; color: var(--kp-text, #1C2030); }

.kp-contract-tab.is-active {
  background: var(--kp-text, #1C2030);
  border-color: var(--kp-text, #1C2030);
  color: #fff;
}

.kp-contract-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #EEF0F3;
  color: var(--kp-text, #1C2030);
  font-size: 12px;
  font-weight: 650;
}

.kp-contract-tab.is-active .kp-contract-tab-count {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

/* The one that needs doing. It keeps its colour even when another tab is
   selected, so it is still findable from anywhere on the page. */
.kp-contract-tab.is-lead {
  border-color: #FDA29B;
  color: #B42318;
}

.kp-contract-tab.is-lead .kp-contract-tab-count { background: #FEE4E2; color: #B42318; }

.kp-contract-tab.is-lead.is-active {
  background: var(--kp-primary, #F7412B);
  border-color: var(--kp-primary, #F7412B);
  color: #fff;
}

.kp-contract-tab.is-lead.is-active .kp-contract-tab-count {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

.kp-contract-tabs-note {
  margin: -6px 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--kp-muted, #6b7280);
}

@media (max-width: 575.98px) {
  /* One scrolling row rather than four stacked lines of pills, which pushed
     the first contract off the screen. */
  .kp-contract-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: -4px;
    padding: 2px 4px 6px;
  }
  .kp-contract-tabs::-webkit-scrollbar { display: none; }
  .kp-contract-tab { flex: 0 0 auto; }
}

/* ─── COUNTS ON THE OFFER TABS ─────────────────────────────────────────────
   An employer was clicking through six tabs looking for an offer that was
   sitting under a seventh. A tab that says how many are in it ends the
   hunt. 11 Nov 2026. */

.kp-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #EEF0F3;
  color: var(--kp-text, #1C2030);
  font-size: 11.5px;
  font-weight: 650;
  vertical-align: middle;
}

.filter-tab.active .kp-tab-count {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

/* Nine tabs do not fit a phone in rows -- they fit in one scrolling line. */
@media (max-width: 767.98px) {
  .filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs .filter-tab { flex: 0 0 auto; white-space: nowrap; }
}

/* ─── WORK HAS NOT STARTED YET ─────────────────────────────────────────────
   Shown in place of the Start Work button while the agreed start date is
   still ahead. The server refuses too, with the same date. */

.kp-start-blocked {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid #FEDF89;
  border-left: 4px solid #DC6803;
  border-radius: 10px;
  background: #FFFCF5;
}

.kp-start-blocked strong { font-size: 14.5px; color: #93370D; }
.kp-start-blocked span { font-size: 13px; color: var(--kp-muted, #6b7280); }

/* The dates ran out before work began. The same shape, read in red, because
   it is not a wait -- there is nothing coming, and the two buttons beside it
   are the way out. It takes the full width so the buttons sit under it on a
   phone rather than beside it. */
.kp-start-blocked--expired {
  display: flex;
  width: 100%;
  border-color: #FECDCA;
  border-left-color: #D92D20;
  background: #FFFBFA;
}

.kp-start-blocked--expired strong { color: #912018; }

/* The legal line at the foot of the signed-in menu. Quiet, but present:
   somebody already signed up had no way back to what they agreed to once
   the visible footer was removed. */
.kp-navmodal-legal {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, .07);
  text-align: center;
  font-size: 12.5px;
  color: #9aa3b0;
}

.kp-navmodal-legal a { color: #6b7280; text-decoration: none; }
.kp-navmodal-legal a:hover { color: #111827; text-decoration: underline; }
.kp-navmodal-legal span { margin: 0 6px; }

/* The legal line at the foot of the account menu, on both sides. Quiet, and
   below Log Out: present for anyone who wants it, never competing with the
   things people actually come to this menu for. */
.profile-settings-menu-legal {
  list-style: none;
  margin-top: 10px;
  padding: 14px 16px 4px;
  border-top: 1px solid rgba(0, 0, 0, .07);
  text-align: center;
  font-size: 12.5px;
  color: #9aa3b0;
}

.profile-settings-menu-legal a { color: #6b7280; text-decoration: none; }
.profile-settings-menu-legal a:hover { color: #111827; text-decoration: underline; }
.profile-settings-menu-legal span { margin: 0 6px; }

/* The account menu's top corner on a phone.
   ---------------------------------------------------------------------------
   The panel is rounded, but it cannot clip what is inside it on mobile: the
   legacy template slides .profile-settings-menu-inner in from left:-100% as
   an absolutely positioned overlay, and clipping the ancestor hides that
   panel entirely. So `overflow: hidden` is desktop-only -- see portal.css.

   The consequence is that the white user card at the top keeps its square
   corners and pokes past the panel's rounded ones, which reads as a panel
   that has been cut off at the top.

   The fix is not to clip the parent but to round the child: the first thing
   inside carries the radius itself, so there is nothing left to clip. */
@media (max-width: 991.98px) {
  .profile-settings-menu .kp-sidebar-user-card:first-child,
  .profile-settings-menu-inner .kp-sidebar-user-card:first-child,
  .profile-settings-menu > .kp-sidebar-user-card,
  .profile-settings-menu-inner > .kp-sidebar-user-card {
    border-top-left-radius: var(--kp-radius-lg);
    border-top-right-radius: var(--kp-radius-lg);
  }

  /* And the card is given the breathing room a heading deserves, rather
     than sitting hard against the edge of the sheet. */
  .kp-sidebar-user-card {
    padding: 18px 16px 16px;
  }
}

/* ---------------------------------------------------------------------
   Verified badge (x-kabs.verified-badge)

   Defined once here so the badge looks the same wherever a person is
   shown -- the employer's list, an offer, and the public profile, which
   previously had only a grey tick the size of a full stop. The portal
   screens carry their own copy of the colours in their page <style>; this
   block is what makes the badge work on the pages that do not.
   --------------------------------------------------------------------- */
.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 9px;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.verification-badge.verified { background: #DCFCE7; color: #166534; }
.verification-badge.unverified { background: #F3F4F6; color: #4B5563; }
.verification-badge svg { flex: 0 0 auto; }

/* ---------------------------------------------------------------------
   My Documents (employer and resource both)
   --------------------------------------------------------------------- */
.kp-doc-request {
  border: 1px solid #FDBA74;
  border-left: 4px solid #EA580C;
  background: #FFF7ED;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.kp-doc-request strong { display: block; color: #9A3412; margin-bottom: 4px; }
.kp-doc-request p { color: #7C2D12; }
.kp-doc-request small { display: block; margin-top: 6px; color: #9A3412; opacity: .8; }

.kp-doc-help { color: #667085; margin-bottom: 18px; line-height: 1.6; }
.kp-doc-hint { display: block; margin-top: 6px; color: #98A2B3; font-size: .8rem; }
.kp-doc-error { display: block; margin-top: 6px; color: #D92D20; font-size: .82rem; }
.kp-doc-empty { color: #667085; margin: 0; }

.kp-doc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #EAECF0;
}
.kp-doc-row:last-child { border-bottom: 0; padding-bottom: 0; }
.kp-doc-row-main { min-width: 0; flex: 1 1 260px; }
.kp-doc-title { font-weight: 600; color: #101828; word-break: break-word; }
.kp-doc-meta { color: #667085; font-size: .82rem; margin-top: 2px; word-break: break-word; }
.kp-doc-note { color: #B42318; font-size: .82rem; margin-top: 6px; }

.kp-doc-row-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.kp-doc-row-side form { margin: 0; }

.kp-doc-badge {
  font-size: .7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 9px;
  line-height: 1;
  white-space: nowrap;
}
.kp-doc-badge--pending { background: #FEF0C7; color: #93370D; }
.kp-doc-badge--approved { background: #DCFCE7; color: #166534; }
.kp-doc-badge--declined { background: #FEE4E2; color: #912018; }

.kp-doc-link {
  background: none;
  border: 0;
  padding: 0;
  font-size: .85rem;
  font-weight: 600;
  color: #175CD3;
  text-decoration: none;
  cursor: pointer;
}
.kp-doc-link:hover { text-decoration: underline; }
.kp-doc-link--danger { color: #B42318; }

@media (max-width: 575.98px) {
  .kp-doc-row { flex-direction: column; align-items: stretch; }
  .kp-doc-row-side { justify-content: flex-start; }
}

/* ---------------------------------------------------------------------------
   THE GUEST BUTTONS IN THE HEADER: Community and Log In

   Both carry .btn-outline-1.color-one, which the template paints in
   --main-color-one -- the brand GREEN, for text and border alike. On a white
   bar that reads perfectly. This header is the red band, so the pair sat there
   as dark green on red: about 1.6:1, which is not a contrast ratio so much as
   a rumour. Sign Up was fine throughout because it is a filled button with
   white text, which is why only two of the three were reported missing.
   Client, 23 Nov 2026.

   White text on a translucent white fill, and the hover inverts to a white
   fill with the brand colour on it -- the opposite way round to the template's
   own hover, which fills GREEN and would be just as hard to read here.
   --------------------------------------------------------------------------- */
.navbar-right-btn .cmn-btn.btn-outline-1.color-one {
  color: #fff;
  border-color: rgba(255, 255, 255, .82);
  /* A DARK wash, not a light one. White text over a 12% white wash on this red
     measures 3.2:1 -- better than the 1.6:1 it replaced, and still under the
     4.5:1 that ordinary text needs. Darkening the pill instead puts it at
     6.0:1. Worth knowing for anything else placed on this bar: on a mid-red
     like this, lightening the backdrop moves white text the WRONG way. */
  background: rgba(0, 0, 0, .24);
}

.navbar-right-btn .cmn-btn.btn-outline-1.color-one:hover,
.navbar-right-btn .cmn-btn.btn-outline-1.color-one:focus-visible {
  background: #fff;
  border-color: #fff;
  /* The fallback matters: --main-color-one is declared on the page, not in
     this file, so a stylesheet loaded on its own still gets the green. */
  color: var(--main-color-one, #007456);
}

.navbar-right-btn .cmn-btn.btn-outline-1.color-one:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
