/* =========================================================================
   MM Recruitment - Staff dashboard (staff-admin.html)

   Layered on tokens.css (ivory / gold / champagne / charcoal tokens and
   the shared header/footer chrome) and portal.css (forms, modals,
   badges). This file owns everything inside <main class="los-admin-page">.

   History: the fork this portal came from kept its dashboard chrome
   (.los-admin-hero, .los-tab-nav, .los-summary-card, .los-enquiry-table,
   .los-section ...) in a style.css that was never carried across, so
   the live dashboard rendered with browser defaults. This file now
   defines that chrome from scratch, as a light ivory/white surface
   with gold accents to match mmrecruitmentltd.co.uk, rather than the
   navy console the forked code assumed.

   Layout contract (all widths, no horizontal page scroll):
     - summary cards: 2 / 3 / 6 columns at phone / tablet / desktop
     - Action Centre cards: 1 / 2 / 3 columns
     - Overview panels (access, tasks, activity): 1 / 1 / 2 columns
     - data tables scroll horizontally inside their own card
   ========================================================================= */

/* -------------------------------------------------------------------
   Page shell
   ------------------------------------------------------------------- */
.los-admin-page {
  background: var(--ivory);
  overflow-x: hidden;
  padding-bottom: 56px;
}
/* The dashboard has its own sticky tab bar - the marketing header
   scrolls away so the two never stack. */
body.los-body .site-header { position: static; }

.los-admin-hero {
  background:
    radial-gradient(55% 70% at 90% 0%, rgba(233, 215, 180, 0.55), transparent 65%),
    var(--white);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(28px, 4vw, 44px) 0 clamp(22px, 3vw, 32px);
}
.los-admin-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 6px;
}
.los-admin-title-row .eyebrow { margin: 0; }
.los-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.los-signed-in-as {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(177, 138, 67, 0.12);
  border: 1px solid rgba(177, 138, 67, 0.3);
  color: var(--gold-dark);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}
.los-signed-in-as::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d8a56;
  flex: 0 0 auto;
}
.los-admin-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 8px;
}
.los-admin-intro {
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0;
}

/* Status banner - shown only when one or more loads genuinely failed.
   Never shown for "zero rows"; that is what the per-section empty
   states are for. */
.los-load-status {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(163, 49, 44, 0.35);
  background: rgba(163, 49, 44, 0.07);
  color: #7d2520;
  font-size: 0.92rem;
}
.los-load-status[hidden] { display: none; }
.los-load-status p { margin: 0; flex: 1 1 320px; }
.los-load-status strong { font-weight: 700; }

/* -------------------------------------------------------------------
   Tab navigation
   ------------------------------------------------------------------- */
.los-tab-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.los-tab-nav-inner {
  display: flex;
  gap: 4px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 10px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.los-tab-nav-inner::-webkit-scrollbar { display: none; }

.los-tab {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.los-tab:hover { color: var(--charcoal); background: rgba(38, 35, 31, 0.05); }
.los-tab[aria-selected="true"] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}
.los-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.los-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(177, 138, 67, 0.16);
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.los-tab[aria-selected="true"] .los-tab-count { background: var(--gold); color: var(--white); }
.los-tab-count[hidden] { display: none; }

/* -------------------------------------------------------------------
   Sections and panels
   ------------------------------------------------------------------- */
.los-section { padding: clamp(24px, 3.5vw, 40px) 0 0; }
.los-section > .container > h2,
.los-lite-panel-header h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin: 0 0 4px;
}
.los-lite-panel-header h3 { font-size: 1.05rem; margin: 0 0 4px; }
.los-lite-panel-header { margin: 28px 0 14px; }
.los-lite-panel-header:first-child { margin-top: 0; }
.los-demo-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  max-width: 72ch;
}

.los-panel {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  min-width: 0;
}
.los-panel .los-lite-panel-header { margin: 0 0 14px; }
.los-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}
.los-panel-grid .los-panel { margin: 0; }
.los-panel-grid > .los-panel.is-wide { grid-column: 1 / -1; }

/* -------------------------------------------------------------------
   Overview: summary cards
   ------------------------------------------------------------------- */
.los-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.los-summary-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.los-summary-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gold);
  opacity: 0.85;
}
.los-summary-card span {
  display: block;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.los-summary-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.05;
  color: var(--charcoal);
}
.los-summary-card small {
  display: block;
  margin-top: 6px;
  min-height: 1.2em;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.los-summary-card.is-error { border-color: rgba(163, 49, 44, 0.4); }
.los-summary-card.is-error strong { color: var(--text-muted); }
.los-summary-card.is-error small { color: #a3312c; font-weight: 600; }
.los-summary-card.is-loading strong,
.los-summary-card.is-loading small {
  color: transparent;
  border-radius: 6px;
  background: linear-gradient(90deg, #efeae0 25%, #f7f3ea 50%, #efeae0 75%);
  background-size: 200% 100%;
  animation: los-shimmer 1.2s linear infinite;
}
.los-summary-card.is-loading strong { width: 56px; }
.los-summary-card.is-loading small { width: 70%; }
@keyframes los-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .los-summary-card.is-loading strong, .los-summary-card.is-loading small { animation: none; }
}

/* -------------------------------------------------------------------
   Overview: Action Centre
   ------------------------------------------------------------------- */
.los-priority-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 8px;
}
.los-priority-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  min-width: 0;
}
.los-priority-card:hover { border-color: rgba(177, 138, 67, 0.6); box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.los-priority-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.los-priority-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.los-priority-count {
  flex: 0 0 auto;
  min-width: 26px;
  text-align: center;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.8rem;
}
.los-priority-count.is-zero { background: var(--light); color: var(--text-muted); }
.los-priority-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.los-priority-list li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 7px 0;
  border-top: 1px solid var(--hairline);
  overflow-wrap: anywhere;
}
.los-priority-list li:first-child { border-top: 0; padding-top: 10px; }
.los-priority-card:hover .los-priority-list li { color: var(--gold-dark); }
.los-priority-empty { color: var(--text-muted); font-size: 0.86rem; margin: 10px 0 0; }

/* -------------------------------------------------------------------
   Lists: tasks, access requests, activity, unlinked employers
   ------------------------------------------------------------------- */
.los-task-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.los-task-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 0;
}
.los-task-item.is-overdue { border-color: rgba(163, 49, 44, 0.45); background: rgba(163, 49, 44, 0.05); }
.los-task-item-title { flex: 1 1 200px; min-width: 0; color: var(--charcoal); overflow-wrap: anywhere; }
.los-task-item-due { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.los-task-item.is-overdue .los-task-item-due { color: #a3312c; font-weight: 600; }
.los-task-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); flex: 0 0 auto; }

.los-activity-action { font-weight: 600; color: var(--charcoal); }
.los-activity-entity { color: var(--text-muted); font-size: 0.85rem; }

/* Inputs rendered inside list rows (staff access approval, employer
   linking) - compact, and allowed to wrap onto their own line on
   narrow screens rather than widening the page. */
.los-task-item input[type="text"],
.los-task-item select,
.los-link-org-select,
.los-new-org-name {
  flex: 1 1 150px;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--charcoal);
}
.los-task-item .button { flex: 0 0 auto; }
@media (max-width: 480px) {
  .los-task-item-title { flex-basis: 100%; }
}

.los-empty-note { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.los-empty-note[hidden] { display: none; }
.los-empty-note.is-error { color: #a3312c; font-weight: 600; }

/* -------------------------------------------------------------------
   Filters
   ------------------------------------------------------------------- */
.los-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.los-filter-bar input[type="search"],
.los-filter-bar select {
  font: inherit;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--charcoal);
  min-width: 0;
  flex: 1 1 220px;
  max-width: 100%;
}
.los-filter-bar select { flex: 0 1 240px; }
.los-filter-bar input:focus-visible,
.los-filter-bar select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.los-filter-bar input::placeholder { color: var(--text-muted); }
.los-active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(177, 138, 67, 0.14);
  color: var(--gold-dark);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.los-active-filter-chip[hidden] { display: none; }
.los-active-filter-chip button {
  appearance: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
}

/* Inbox filter pills reuse .los-tab but sit inside the page, not the
   sticky bar. */
.los-filter-bar .los-tab { padding: 8px 14px; font-size: 0.84rem; }

/* -------------------------------------------------------------------
   Data tables
   ------------------------------------------------------------------- */
.los-enquiry-table-wrap {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.los-enquiry-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.los-enquiry-table th,
.los-enquiry-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.los-enquiry-table th {
  background: #f6f1e6;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}
.los-enquiry-table th:first-child { border-top-left-radius: var(--radius); }
.los-enquiry-table th:last-child { border-top-right-radius: var(--radius); }
.los-enquiry-table td { color: var(--text); font-size: 0.9rem; }
.los-enquiry-table tbody tr { cursor: pointer; transition: background 0.12s ease; }
.los-enquiry-table tbody tr:hover { background: rgba(233, 215, 180, 0.22); }
.los-enquiry-table tr:last-child td { border-bottom: 0; }
.los-enquiry-table td strong { color: var(--charcoal); font-weight: 600; }
.los-enquiry-table select {
  font: inherit;
  font-size: 0.86rem;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--charcoal);
}
.los-enquiry-table td button.link-button { color: var(--gold-dark); }
.los-empty-row td {
  color: var(--text-muted);
  white-space: normal;
  padding: 26px 18px;
  text-align: center;
  cursor: default;
}
.los-empty-row.is-error td { color: #a3312c; font-weight: 600; }
.los-enquiry-table tbody tr.los-empty-row:hover { background: transparent; }
.los-table-subtext {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: normal;
  max-width: 34ch;
}
/* The name/headline column carries wrapped sub-text, so give it room
   before the table starts scrolling sideways on narrow screens. */
.los-enquiry-table td:first-child { min-width: 220px; }

/* -------------------------------------------------------------------
   Applications pipeline strip
   ------------------------------------------------------------------- */
.los-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 18px 0 8px;
}
.los-pipeline-stage {
  flex: 1 1 120px;
  padding: 14px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--white);
  text-align: center;
  min-width: 0;
}
.los-pipeline-stage span {
  display: block;
  color: var(--gold-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.los-pipeline-stage strong {
  display: block;
  margin-top: 6px;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
}
.los-pipeline-arrow { display: none; align-items: center; color: var(--text-muted); font-size: 1.1rem; }

/* -------------------------------------------------------------------
   Badges, progress, stage pills
   ------------------------------------------------------------------- */
.los-mini-progress { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.los-mini-progress-track { width: 64px; height: 6px; border-radius: 999px; background: var(--light); overflow: hidden; }
.los-mini-progress-fill { height: 100%; background: var(--gold); border-radius: 999px; }
.los-mini-progress span { font-size: 0.84rem; color: var(--text-muted); }

.los-stage-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.los-stage-registered { background: var(--light); color: var(--text-muted); }
.los-stage-in_progress { background: rgba(58, 122, 189, 0.14); color: #2c5f93; }
.los-stage-submitted { background: rgba(177, 138, 67, 0.18); color: var(--gold-dark); }
.los-stage-under_review { background: rgba(201, 142, 44, 0.2); color: #8a5a1a; }
.los-stage-reviewed { background: rgba(45, 138, 86, 0.16); color: #1f6b41; }

.los-progress-track { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.los-progress-step {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--text-muted);
}
.los-progress-step.is-complete { border-color: rgba(177, 138, 67, 0.5); color: var(--gold-dark); }
.los-progress-step.is-current { border-color: var(--gold); color: var(--charcoal); background: rgba(177, 138, 67, 0.12); font-weight: 600; }

/* -------------------------------------------------------------------
   Buttons inside the dashboard - compact variants of tokens.css's
   pill buttons, plus the loading spinner and destructive style the
   dashboard scripts already rely on.
   ------------------------------------------------------------------- */
.los-admin-page .button,
.portal-modal .button {
  padding: 10px 20px;
  font-size: 0.88rem;
}
.los-admin-page .button.primary, .portal-modal .button.primary { box-shadow: none; }
.button.destructive { color: #a3312c; border-color: #a3312c; background: transparent; }
.button.destructive:hover { background: #a3312c; color: var(--white); }
.button:disabled, .button:disabled:hover { cursor: not-allowed; opacity: 0.5; transform: none; box-shadow: none; }
.button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.button.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: calc(50% - 8px);
  left: calc(50% - 8px);
  border: 2px solid currentColor;
  border-color: var(--charcoal) transparent var(--charcoal) var(--charcoal);
  border-radius: 50%;
  animation: button-spin 0.7s linear infinite;
}
.button.primary.is-loading::after { border-color: var(--white) transparent var(--white) var(--white); }
@keyframes button-spin { to { transform: rotate(360deg); } }
.los-admin-page .portal-form-message { font-weight: 600; color: var(--charcoal); }
.los-admin-page .portal-form-message.is-error { color: #a3312c; }
.los-admin-page .portal-inline-form input {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.92rem;
  flex: 1 1 200px;
  min-width: 0;
}
.los-admin-page .portal-inline-form input[type="date"] { flex: 0 1 170px; }

/* -------------------------------------------------------------------
   Modals (candidate / employer / application) - light surface from
   portal.css; this only adds the wide variant and inner scrolling.
   ------------------------------------------------------------------- */
.portal-modal-panel-wide { width: min(760px, 100%); }
#los-candidate-modal .portal-modal-panel,
#los-employer-modal .portal-modal-panel,
#los-application-modal .portal-modal-panel {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
#los-candidate-modal h3, #los-employer-modal h3, #los-application-modal h3 { font-size: 1.05rem; margin: 18px 0 8px; }
#los-application-modal .los-workflow-section { border-top: 1px solid var(--hairline); padding-top: 16px; margin-top: 16px; }
.portal-modal .portal-form-field label { color: var(--charcoal); }

/* Note composer (candidate modal, application modal, inbox reply) */
.los-note-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.los-note-compose-panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
  background: var(--ivory);
}
.los-note-compose-preview { margin: 0 0 10px; font-size: 0.86rem; color: var(--text-muted); }
.los-note-textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--charcoal);
  padding: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
}
.los-note-compose-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.los-note-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
}
.los-note-badge.is-internal { background: var(--light); color: var(--text-muted); }
.los-note-badge.is-sent-to-candidate { background: rgba(177, 138, 67, 0.18); color: var(--gold-dark); }
.los-note-badge.is-visible-to-employer { background: rgba(58, 122, 189, 0.14); color: #2c5f93; }

.los-recipient-fieldset { border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 10px 12px 12px; margin: 0 0 12px; }
.los-recipient-fieldset legend { padding: 0 6px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-muted); }
.los-recipient-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 0.9rem; color: var(--charcoal); padding: 6px 2px; cursor: pointer; min-height: 32px; }
.los-recipient-checkbox input[type="checkbox"] { width: auto; flex-shrink: 0; accent-color: var(--gold); }

/* Candidate modal summary */
.los-candidate-summary-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--ivory);
}
.los-candidate-summary-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.los-candidate-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 18px; margin: 0 0 10px; }
.los-candidate-summary-grid dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-muted); }
.los-candidate-summary-grid dd { margin: 2px 0 0; font-size: 0.9rem; color: var(--charcoal); }
.los-candidate-missing-info { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 10px; }
.los-candidate-missing-info.is-complete { color: #1f6b41; }
.los-review-status-control { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .los-candidate-summary-grid { grid-template-columns: 1fr; } }

/* Action list variant (used inside modals) */
.los-action-centre-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.los-action-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--ivory); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 10px 12px; }
.los-action-item-main { flex: 1 1 200px; min-width: 0; }
.los-action-item-title { color: var(--charcoal); font-weight: 600; }
.los-action-item-meta { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.los-action-item-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; padding: 2px 8px; border-radius: 999px; background: rgba(163, 49, 44, 0.12); color: #a3312c; white-space: nowrap; }

/* -------------------------------------------------------------------
   Recruitment Inbox
   ------------------------------------------------------------------- */
.los-inbox-conversation-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.los-inbox-conversation-item { border-radius: var(--radius); background: var(--white); border: 1px solid var(--hairline); padding: 14px 16px; }
.los-inbox-conversation-item.is-unread { background: rgba(233, 215, 180, 0.28); border-color: rgba(177, 138, 67, 0.45); }
.los-inbox-conversation-summary { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.los-inbox-conversation-summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.los-inbox-unread-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 7px; }
.los-inbox-conversation-text { flex: 1 1 auto; min-width: 0; }
.los-inbox-conversation-text strong { color: var(--charcoal); }
.los-inbox-conversation-text p { margin: 4px 0; word-break: break-word; color: var(--text); }
.los-inbox-conversation-actions { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.los-inbox-reply-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }

/* -------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */
@media (min-width: 640px) {
  .los-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .los-priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .los-pipeline-arrow { display: flex; }
}
@media (min-width: 960px) {
  .los-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .los-summary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .los-priority-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .los-tab-nav-inner { padding: 8px 16px; }
  .los-panel { padding: 18px 16px; }
  .los-summary-card strong { font-size: 1.6rem; }
  .los-admin-page .button { min-height: 44px; }
  .link-button { min-height: 44px; display: inline-flex; align-items: center; }
}

/* -------------------------------------------------------------------
   Job Matching workspace
   ------------------------------------------------------------------- */
.los-match-toggles { gap: 6px 18px; margin-top: -4px; }
.los-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--text); cursor: pointer; }
.los-check input { accent-color: var(--gold); width: 16px; height: 16px; }
.los-match-vacancy-summary {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 0 14px;
}
.los-match-vacancy-summary[hidden] { display: none; }
.los-match-required { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.los-match-skill {
  display: inline-block;
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--ivory);
  color: var(--text);
  margin: 2px 4px 2px 0;
}
.los-match-skill.is-essential { border-color: rgba(177, 138, 67, 0.6); background: rgba(177, 138, 67, 0.12); color: var(--gold-dark); font-weight: 600; }
.los-match-skill.is-desirable { color: var(--text-muted); }
.los-match-skill.is-matched { background: rgba(45, 138, 86, 0.14); border-color: rgba(45, 138, 86, 0.4); color: #1f6b41; font-weight: 600; }
.los-match-skill.is-missing { background: rgba(163, 49, 44, 0.1); border-color: rgba(163, 49, 44, 0.4); color: #a3312c; font-weight: 600; }
.los-match-skill.is-transferable { background: rgba(58, 122, 189, 0.12); border-color: rgba(58, 122, 189, 0.4); color: #2c5f93; }
.los-match-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  padding: 5px 10px;
  border-radius: 10px;
  min-width: 64px;
}
.los-match-chip strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.los-match-chip small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.los-match-chip.is-strong { background: rgba(45, 138, 86, 0.14); color: #1f6b41; }
.los-match-chip.is-good { background: rgba(177, 138, 67, 0.16); color: var(--gold-dark); }
.los-match-chip.is-possible { background: rgba(58, 122, 189, 0.12); color: #2c5f93; }
.los-match-chip.is-weak { background: var(--light); color: var(--text-muted); }
.los-match-chip.is-blocked, .los-match-chip.is-unknown { background: var(--light); color: var(--text-muted); font-size: 0.8rem; font-weight: 600; flex-direction: row; }
.los-match-dim { display: inline-block; min-width: 34px; text-align: center; font-weight: 700; padding: 2px 6px; border-radius: 6px; font-size: 0.85rem; }
.los-match-dim.is-strong { background: rgba(45, 138, 86, 0.14); color: #1f6b41; }
.los-match-dim.is-good { background: rgba(177, 138, 67, 0.16); color: var(--gold-dark); }
.los-match-dim.is-weak { background: rgba(163, 49, 44, 0.1); color: #a3312c; }
.los-match-dim.is-na { color: var(--text-muted); font-weight: 400; }
.los-match-table tbody tr.is-blocked td { opacity: 0.55; }
.los-match-table td { white-space: normal; }
.los-match-table td:first-child { min-width: 220px; }
.los-match-dimension { border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 10px; background: var(--white); }
.los-match-dimension.is-na { background: var(--ivory); color: var(--text-muted); }
.los-match-dimension-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.los-match-dimension-head span { font-size: 0.82rem; color: var(--text-muted); }
.los-match-dimension p { margin: 0 0 6px; font-size: 0.9rem; }
.los-match-skilllists > div { margin: 6px 0; }
.los-match-list-label { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-right: 8px; min-width: 120px; }
.los-match-evidence { margin: 4px 0 0; padding-left: 18px; font-size: 0.86rem; color: var(--text); }
.los-match-evidence li { margin: 2px 0; }
.los-match-flags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; }
.los-match-flags li { padding: 4px 10px; border-radius: 6px; background: var(--light); color: var(--text-muted); }
.los-match-flags li.is-block { background: rgba(163, 49, 44, 0.1); color: #a3312c; font-weight: 600; }
.los-match-flags li.is-warn { background: rgba(201, 142, 44, 0.18); color: #8a5a1a; font-weight: 600; }
.los-match-flags li.is-info { background: rgba(58, 122, 189, 0.12); color: #2c5f93; }
.los-match-reclist { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.los-match-reclist li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--ivory); }
