.nav button .nav-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; color: #a8b5cc; }
.nav button:hover .nav-icon { color: #e2e9f5; }
.nav button.active .nav-icon { color: #c7b7ff; }
.nav button:focus-visible { outline: 2px solid #b9a1ff; outline-offset: 2px; }
@media(max-width: 900px) { .nav button .nav-icon { flex-basis: 18px; width: 18px; height: 18px; } }
.intake-table [data-rate-error][hidden] { display: none; }
.intake-table [data-draft="hourlyRateExVat"] { min-width: 155px; }
.rate-cell-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ddd5f8; border-radius: 8px; padding: 7px 9px; background: #f8f6ff; color: #5938c8; font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; }
.rate-cell-button:hover { background: #eee8ff; border-color: #a68ce9; }
.rate-cell-button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.rate-cell-button svg { flex-shrink: 0; }
.candidate-rate-field { padding: 12px 14px; background: #f8f6ff; border: 1px solid #e2daf9; border-radius: 11px; }

/* Password issuance follows the portal's existing modal and button language. */
.password-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.password-reset-section { border-top: 1px solid #d9dfeb; padding-top: 18px; margin-top: 18px; }
.password-reset-section p { color: #75819a; font-size: 13px; margin: 8px 0 12px; }
.password-reset-section small { display: block; margin-top: 8px; }
.system-confirm.access-credentials { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.access-credentials .modal-body { padding: 20px; }
.system-confirm.access-credentials .modal-body > p { margin: 0 0 16px; }
.access-credentials textarea { min-height: 132px; font: 13px/1.6 ui-monospace, monospace; overflow-wrap: anywhere; }
.system-confirm.access-credentials .access-copy-status { color: #5840c7; font-size: 13px; margin: 10px 0; }
.access-credentials .modal-foot { flex-wrap: wrap; }

/* Contextual table filters stay anchored to the column header. */
.filter-popover {
  right: auto;
  top: auto;
  width: min(340px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(21, 34, 61, 0.2);
}

.popover-shade {
  background: transparent;
}

.responsible-preview > span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.responsible-preview > span > div {
  min-width: 0;
  flex: 1;
}

.responsible-preview > span b,
.responsible-preview > span i,
.responsible-preview > span em {
  display: block;
}

.responsible-preview > span em {
  grid-column: auto;
}

.participant-remove {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border: 1px solid #d6dce6;
  border-radius: 7px;
  background: #fff;
  color: #7f8999;
  cursor: pointer;
}

.participant-remove:hover {
  border-color: #f0aeba;
  background: #fff7f8;
  color: var(--red);
}

.restore-attendees {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--violet);
  font-size: 11px;
  cursor: pointer;
}

.exchange-connect-inline {
  margin-left: auto;
  white-space: nowrap;
}

.onboarding-next {
  margin-top: 5px;
  max-width: 190px;
  color: var(--muted);
  line-height: 1.3;
}

.onboarding-actions {
  align-items: center;
  white-space: nowrap;
}

.complete-action {
  min-height: 29px;
  padding: 5px 9px;
  border: 1px solid #a9d9ca;
  border-radius: 8px;
  background: #effaf6;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.complete-action:hover {
  border-color: var(--green);
  background: var(--green-bg);
}

.complete-action.completed {
  border-color: #d6dce6;
  background: #fff;
  color: #657186;
}

.onboarding-date {
  margin-top: 16px;
}

.resume-eye svg,
.resume-view-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.resume-file-control {
  display: grid;
  gap: 7px;
}

.resume-file-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resume-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #d7cff8;
  border-radius: 8px;
  background: #f5f2ff;
  color: var(--violet);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.resume-view-btn:hover {
  border-color: #ad9af9;
  background: #ece7ff;
}

.resume-preview-modal {
  height: min(900px, 94vh);
}

.resume-preview-body {
  min-height: 0;
  flex: 1;
  padding: 14px;
  background: #e8ecf2;
}

.resume-preview-frame {
  width: 100%;
  height: 100%;
  border: 1px solid #d1d8e3;
  border-radius: 11px;
  background: #fff;
}

.candidate-quick-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.candidate-quick-filter > div:first-child strong,
.candidate-quick-filter > div:first-child small {
  display: block;
}

.candidate-quick-filter > div:first-child small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.quick-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 8px 7px 12px;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #fff;
  color: #4d596e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.quick-filter:hover {
  border-color: #b8a8f5;
  background: #faf9ff;
}

.quick-filter b {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 22px;
  padding: 0 6px;
  border-radius: 7px;
  background: #eef1f6;
  color: #657186;
  font-size: 11px;
}

.quick-filter.active {
  border-color: var(--violet);
  background: #eeeaff;
  color: #5635cd;
  box-shadow: 0 0 0 2px rgba(110, 67, 245, .08);
}

.quick-filter.active b {
  background: var(--violet);
  color: #fff;
}

@media(max-width: 900px) {
  .candidate-quick-filter {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Test assignment is a first-class step between resume intake and approval. */
.journey-rail {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.test-assignment-card {
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid #d9dff0;
  border-radius: 14px;
  background: linear-gradient(155deg, #fbfaff, #f6f8fc);
}

.test-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}

.test-progress span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border-radius: 9px;
  background: #e9edf4;
  color: #738096;
  font-size: 10px;
}

.test-progress i {
  display: grid;
  place-items: center;
  flex: 0 0 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  color: #7e899d;
  font-style: normal;
  font-weight: 800;
}

.test-progress b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-progress span.done {
  background: #e8e2ff;
  color: #5634cf;
}

.test-progress span.done i {
  background: #6e43f5;
  color: #fff;
}

.test-hint {
  margin: 0 0 11px;
  color: #647086;
  font-size: 11px;
}

.system-confirm {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink, #172033);
  box-shadow: 0 24px 80px rgb(13 21 37 / 24%);
}
.system-confirm[open] { display: flex; flex-direction: column; }
.system-confirm::backdrop { background: rgb(13 21 37 / 48%); backdrop-filter: blur(4px); }
.system-confirm .modal-head { flex-shrink: 0; gap: 16px; }
.system-confirm h2 { margin: 5px 0 0; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.system-confirm .modal-body { min-height: 0; overscroll-behavior: contain; }
.system-confirm .modal-body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #526078; font-size: 14px; line-height: 1.6; }
.system-confirm .modal-foot { flex-shrink: 0; flex-wrap: wrap; }
.system-confirm .modal-foot .btn { min-width: 112px; justify-content: center; }
.system-confirm.is-danger .btn-danger { background: #c73555; border-color: #c73555; color: #fff; }
.system-confirm.is-danger .btn-danger:hover { background: #ae2846; }
.system-confirm button:focus-visible { outline: 2px solid var(--violet, #6339ef); outline-offset: 3px; }

.candidate-profile-cell {
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.feedback-author { display:grid; gap:4px; padding:14px; margin-bottom:16px; border-radius:10px; background:#f3f0ff; }
.feedback-author small { color:var(--muted); }

/* Inline validation replaces browser balloons on all portal forms. */
input.field-invalid,
textarea.field-invalid,
select.field-invalid,
.field input.field-invalid,
.field textarea.field-invalid { border-color: #ce4960; background: #fffafb; }
.field-invalid:focus { outline-color: rgba(206, 73, 96, .18); }
.field-validation,
.field > .field-validation {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 5px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff0f3;
  color: #a52c43;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.field-validation::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  height: 16px;
  margin-top: 1px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 750;
}

/* Decision dialogs need room for the author, request and mandatory comment. */
#feedback-form {
  width: min(780px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
}
#feedback-form .modal-head,
#feedback-form .modal-foot { flex-shrink: 0; }
#feedback-form .modal-body { min-height: 0; overflow: auto; }
#feedback-form .modal-body > p { overflow-wrap: anywhere; }
#feedback-form textarea { min-height: 128px; }
#feedback-form .smart-select.open .select-menu {
  position: static;
  margin-top: 6px;
}
@media (max-width: 600px) {
  #feedback-form { width: 100vw; height: 100dvh; max-height: 100dvh; }
  #feedback-form .modal-foot { flex-wrap: wrap; }
}
.responsible-preview .roster-person { display:flex; align-items:center; gap:10px; }
.roster-person > div { flex:1; min-width:0; overflow-wrap:anywhere; }
.roster-person:not(.is-selected) { opacity:.8; }
.participant-toggle { flex-shrink:0; padding:5px 8px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--violet); font-size:11px; cursor:pointer; }

/* Keep long experience, request names and headers from redistributing columns. */
.candidate-data-table { table-layout: fixed; }
.formatted-date { display: flex; gap: 6px; align-items: center; min-width: 0; }
.formatted-date > input[type="text"] { flex: 1; min-width: 0; }
.formatted-date > input[data-date-ready] { flex: 0 0 36px; width: 36px; min-width: 36px; padding: 6px; color: transparent; cursor: pointer; }
.formatted-date > input[data-date-ready]::-webkit-datetime-edit { display: none; }
.formatted-date > input[data-date-ready]::-webkit-calendar-picker-indicator { margin: 0; cursor: pointer; }
.formatted-date:has(.field-validation) { flex-wrap: wrap; }
.candidate-data-table .row-actions { flex-wrap: nowrap; gap: 8px; }
.candidate-data-table .row-actions .icon-action { flex: 0 0 32px; width: 32px; height: 32px; }
.candidate-data-table th,
.candidate-data-table td { white-space: normal; overflow-wrap: anywhere; }
.candidate-data-table th { vertical-align: middle; border-bottom: 1px solid var(--line); }
.candidate-data-table th > div { border-bottom: 0; min-height: 58px; }
.candidate-data-table .filter-btn { flex-shrink: 0; }
.candidate-data-table .request-pill { max-width: 100%; overflow: visible; text-overflow: clip; }
.candidate-data-table .status { max-width: 100%; white-space: normal; }
.candidate-data-table .file-chip { min-width: 0; }
.candidate-data-table .file-chip > span,
.candidate-data-table .file-chip > i { flex-shrink: 0; }
.candidate-data-table .file-chip b { min-width: 0; white-space: nowrap; }

.test-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #e4e8f0;
}

.test-file-row > div:first-child {
  min-width: 0;
}

.test-file-row small {
  display: block;
  margin-bottom: 4px;
  color: #7d8799;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.test-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-actions:empty { display: none; }
.test-actions .btn { min-height: 30px; padding: 5px 8px; font-size: 11px; justify-content: center; white-space: nowrap; }
.test-actions > .mini-danger { min-height: 30px; padding: 5px 3px; white-space: nowrap; text-align: center; }

.test-actions > div > small {
  margin-top: 6px;
  max-width: 220px;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.test-upload {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.test-upload input {
  display: none;
}

.test-file-chip b {
  flex: 1;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
}

.test-file-controls { display: flex; align-items: center; gap: 6px; min-width: 0; }
.test-file-controls .test-file-chip { flex: 1; min-width: 0; height: 30px; gap: 6px; }
.test-file-controls .test-file-chip > span { flex-shrink: 0; width: 32px; }
.test-file-controls .test-file-chip > i { flex-shrink: 0; }
.test-file-controls .test-replace { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 0; height: 30px; }
.test-file-controls .test-replace:focus-visible { outline: 2px solid var(--purple, #6339ef); outline-offset: 2px; }

@media (max-width: 560px) {
  .test-file-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .test-actions { justify-content: flex-end; flex-wrap: wrap; }
}

.mini-danger {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.test-locked {
  font-size: 10px;
  font-weight: 700;
}

.status.test-ready_to_send {
  background: #eee9ff;
  color: #5c39d4;
}

.status.test-sent {
  background: var(--amber-bg);
  color: var(--amber);
}

.status.test-result_received {
  background: var(--green-bg);
  color: var(--green);
}

.feedback-gate {
  margin-bottom: 8px;
  font-size: 11px;
}

@media(max-width: 1180px) {
  .journey-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 900px) {
  .journey-rail {
    grid-template-columns: 1fr;
  }

}
.slot-diagnostics { grid-column: 1 / -1; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9fd; }
.diagnostic-heading, .diagnostic-person-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.diagnostic-heading h3 { margin: 0 0 6px; font-size: 15px; }
.slot-diagnostics p { margin: 6px 0 12px; color: var(--muted); font-size: 12px; }
.diagnostic-person { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.diagnostic-person small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.diagnostic-person details summary { cursor: pointer; color: var(--violet); font-weight: 600; font-size: 12px; }
.diagnostic-person ul { list-style: none; padding: 0; margin: 10px 0 0; }
.diagnostic-person details ul { max-height: 220px; overflow: auto; }
.slot-grid > .empty { grid-column: 1 / -1; }
.diagnostic-person li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; font-size: 12px; }
.slot-diagnostics .diagnostic-note { margin: 14px 0 0; font-size: 11px; }
@media (max-width: 600px) { .diagnostic-heading, .diagnostic-person-head { flex-direction: column; } }
.availability-schedule { margin: 0 0 24px; overflow: hidden; min-width: 0; }
#calendar-schedule { min-width: 0; scroll-margin-top: 88px; }
.timetable-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px 14px; }
.timetable-heading h2 { margin: 5px 0; font-size: 20px; letter-spacing: -.02em; }
.timetable-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.timetable-nav { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.timetable-nav strong { font-variant-numeric: tabular-nums; font-size: 14px; }
.timetable-days { display: flex; gap: 6px; padding: 0 22px 16px; overflow-x: auto; }
.timetable-days button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; }
.timetable-days button.active { color: var(--violet); border-color: var(--violet); background: #f1ecff; font-weight: 700; }
.timetable-scroll { overflow-x: auto; max-width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timetable-grid { min-width: 1000px; }
.timetable-row { display: grid; grid-template-columns: 220px repeat(18, minmax(42px, 1fr)); align-items: stretch; border-bottom: 1px solid #e9edf4; }
.timetable-row:last-child { border-bottom: 0; }
.timetable-name { position: sticky; left: 0; z-index: 2; background: #fff; padding: 13px 16px; border-right: 1px solid var(--line); }
.timetable-name b { display: block; font-size: 12px; overflow-wrap: anywhere; }
.timetable-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.timetable-hours { background: #f5f7fb; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timetable-hours .timetable-name { background: #f5f7fb; }
.timetable-hour { grid-column: span 2; padding: 12px 5px; border-left: 1px solid var(--line); }
.timetable-common { border-bottom: 2px solid #d9d1f4; background: #f8f6ff; }
.timetable-common .timetable-name { background: #f8f6ff; }
.timetable-cell { display: flex; padding: 9px 2px; align-items: center; border-right: 1px solid #f1f3f8; }
.time-block { width: 100%; min-height: 30px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.time-Free { background: #ddf3e8; color: #176c4e; border-color: #96ceb3; }
.time-Busy { background: #5684d8; color: white; border-color: #426dbd; }
.time-OOF { background: #f6d5e0; color: #9d3359; border-color: #dfa0b7; }
.time-Tentative { background: repeating-linear-gradient(135deg, #ffefd1 0 5px, #eecb83 5px 7px); color: #775611; border-color: #d5b56e; }
.time-NoData { background: repeating-linear-gradient(135deg, #f1f3f6 0 5px, #dce1e8 5px 7px); color: #66758a; border-color: #cad2de; }
.time-Published { background: #e4f3f3; color: #296f73; border: 1px dashed #69a2a5; }
.time-Outside { background: #e9ecf1; color: #788497; border-color: #dce1e8; }
.time-block:focus-visible, .timetable-days button:focus-visible, .timetable-scroll:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.timetable-detail { min-height: 42px; padding: 12px 22px; color: #43506b; background: #f8f9fd; font-size: 12px; overflow-wrap: anywhere; }
.timetable-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 16px 22px 8px; }
.timetable-legend > span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #57637a; }
.timetable-legend i { display: inline-block; width: 16px; height: 12px; border-radius: 3px; }
.timetable-note { margin: 0; padding: 6px 22px 18px; font-size: 11px; color: var(--muted); }
@media(max-width: 700px) { .timetable-heading { align-items: flex-start; flex-direction: column; padding: 16px; gap: 12px; } .timetable-days { padding-left: 16px; } .timetable-row { grid-template-columns: 160px repeat(18, minmax(42px, 1fr)); } .timetable-grid { min-width: 940px; } }
