:root {
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-border: #d8dbe0;
  --color-text: #1c1f26;
  --color-muted: #5b6270;
  --color-primary: #1e3a5f;
  --color-primary-hover: #16304f;
  --color-error-bg: #fdecea;
  --color-error-text: #7a271a;
  --color-success-bg: #e6f4ea;
  --color-success-text: #1e4620;
  --color-warning-bg: #fff4e0;
  --color-warning-text: #7a5200;
  --color-info-bg: #e3eefc;
  --color-info-text: #1c4c85;
  --color-danger: #b3261e;
  --color-danger-hover: #8f1e18;
  --color-accent: #3b5fe0;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.appbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--color-primary);
  color: #fff;
}

.appbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.appbar__brand {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.03em;
}

.appbar__divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.25);
}

.appbar__product {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.role-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
}

.appbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.appbar__right .link-button {
  color: rgba(255, 255, 255, 0.8);
}

.appbar__right .link-button:hover {
  color: #fff;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.subnav {
  display: flex;
  gap: 4px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 20px;
}

.subnav__tab {
  display: inline-block;
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.subnav__tab:hover {
  color: var(--color-text);
}

.subnav__tab--active {
  color: var(--color-primary);
  background: #eef2fb;
  border-radius: var(--radius) var(--radius) 0 0;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px;
}

.auth-card {
  max-width: 380px;
  margin: 64px auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}

.auth-card h1 {
  margin-top: 0;
  font-size: 22px;
}

.auth-card__subtitle {
  color: var(--color-muted);
  margin-top: -8px;
  font-size: 14px;
}

form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 4px;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

form textarea {
  resize: vertical;
}

form fieldset {
  border: none;
  padding: 0;
  margin: 24px 0 0;
}

form fieldset:first-of-type {
  margin-top: 0;
}

form legend {
  font-weight: 700;
  font-size: 15px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.static-field {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--color-muted);
}

.field-hint {
  font-size: 12px;
  color: var(--color-muted);
  margin: 4px 0 0;
}

.radio-row {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.radio-label input,
.checkbox-label input {
  width: auto;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--secondary:hover {
  background: #eef2fb;
}

.btn--danger {
  background: #fff;
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
  width: 100%;
}

.btn--danger:hover {
  background: var(--color-error-bg);
}

.link-button {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.inline-form {
  display: inline;
}

.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 8px;
}

.alert--error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.alert--warning {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.alert--success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h2 {
  margin-top: 0;
  font-size: 16px;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  background: var(--color-bg);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.table tr:last-child td {
  border-bottom: none;
}

.table__notes-cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.status-badge--approved {
  background: var(--color-info-bg);
  color: var(--color-info-text);
}

.status-badge--live,
.status-badge--filled {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.status-badge--rejected,
.status-badge--cancelled {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.status-badge--candidate-amber {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.status-badge--candidate-info {
  background: var(--color-info-bg);
  color: var(--color-info-text);
}

.status-badge--candidate-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.status-badge--candidate-error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.status-badge--candidate-muted {
  background: var(--color-bg);
  color: var(--color-muted);
}

.status-badge--button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.detail-list {
  margin: 20px 0;
}

.detail-list dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  margin-top: 14px;
}

.detail-list dd {
  margin: 2px 0 0;
  font-size: 14px;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 12px;
}

.decision-reject-form {
  flex: 1;
  min-width: 240px;
}

/* --- Job request detail page --- */

.jr-header {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.jr-header__back {
  margin: 0 0 14px;
  font-size: 13px;
}

.jr-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.jr-header__top h1 {
  margin: 0;
  font-size: 24px;
}

.jr-header__badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.jr-header__subtitle {
  color: var(--color-muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.jr-action-card {
  border: 1px solid #c7d3ec;
  background: #f4f7fd;
  margin-bottom: 20px;
}

.jr-action-card h2 {
  margin-top: 0;
}

.jr-action-card > * + h2 {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.jr-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

.jr-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.jr-sidebar {
  min-width: 0;
}

.detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.detail-card h2 {
  margin: 0 0 16px;
  font-size: 15px;
}

.jr-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jr-timeline__item {
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
  position: relative;
}

.jr-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.jr-timeline__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 4px;
  z-index: 1;
}

.jr-timeline__item--success .jr-timeline__dot {
  background: var(--color-success-text);
}

.jr-timeline__item--danger .jr-timeline__dot {
  background: var(--color-danger);
}

.jr-timeline__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.jr-timeline__body strong {
  font-size: 13px;
}

@media (max-width: 800px) {
  .jr-layout {
    grid-template-columns: 1fr;
  }
}

/* Small layout/spacing utilities — CSP blocks inline style="" attributes
   (style-src 'self', no unsafe-inline), so one-off overrides need a real
   class instead. */
.field-grid__full {
  grid-column: 1 / -1;
}

.btn--auto {
  width: auto;
}

.mt-8 {
  margin-top: 8px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-20 {
  margin-bottom: 20px;
}

/* --- Sectioned form pages (e.g. new job request) --- */

.form-page {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pill-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill-toggle__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}

.pill-toggle__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pill-toggle__option:hover {
  border-color: var(--color-primary);
}

.pill-toggle__option:has(input:checked) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.stat-card__label {
  font-size: 13px;
  color: var(--color-muted);
}

.stat-card__value {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 6px 0 4px;
}

.stat-card__delta {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
}

.stat-card__delta--positive {
  color: var(--color-success-text);
}

.stat-card__delta--warning {
  color: var(--color-warning-text);
}

.stat-card__link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.stat-card__link:hover {
  text-decoration: underline;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 860px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.panel__header h2 {
  margin: 0;
  font-size: 16px;
}

.panel__link {
  font-size: 13px;
  color: var(--color-accent);
  text-decoration: none;
}

.panel__link:hover {
  text-decoration: underline;
}

.panel .table {
  margin-top: 12px;
}

.days-open {
  font-weight: 700;
}

.days-open--warning {
  color: var(--color-warning-text);
}

.days-open--danger {
  color: var(--color-danger);
}

.days-open--ok {
  color: var(--color-success-text);
}

.bar-chart-row {
  margin-top: 16px;
}

.bar-chart-row__head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bar-chart-row__track {
  height: 8px;
  background: var(--color-bg);
  border-radius: 999px;
  overflow: hidden;
}

.bar-chart-row__fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 999px;
}

.empty-note {
  color: var(--color-muted);
  font-size: 14px;
}

.action-panel {
  background: var(--color-warning-bg);
  border: 1px solid #f0d9a6;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.action-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.action-panel__header h2 {
  margin: 0;
  font-size: 15px;
  color: var(--color-warning-text);
}

.action-panel__count {
  background: var(--color-warning-text);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}

.action-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f0d9a6;
}

.action-item:first-of-type {
  border-top: none;
  padding-top: 10px;
}

.action-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.action-item__meta {
  font-size: 12px;
  color: var(--color-muted);
}

.action-item__form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-item__form select {
  width: auto;
  min-width: 160px;
  padding: 8px 10px;
  font-size: 13px;
}

.action-item__form .btn {
  margin-top: 0;
  padding: 8px 14px;
  font-size: 13px;
}

.admin-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.admin-subnav__tab {
  padding: 8px 4px;
  margin-right: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.admin-subnav__tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.role-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--color-bg);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.role-pill--admin {
  background: #eef2fb;
  color: var(--color-primary);
  border-color: #c9d6f0;
}

.role-pill--manager {
  background: var(--color-info-bg);
  color: var(--color-info-text);
  border-color: #bcd6f2;
}

.role-pill--store {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-color: #bfe0c8;
}

.temp-password {
  display: inline-block;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
}

.list-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.list-header h1 {
  margin: 0;
  font-size: 20px;
}

.list-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input {
  width: 220px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
}

.search-form__btn {
  padding: 8px 14px;
  font-size: 13px;
}

.list-header__actions .btn {
  margin-top: 0;
  width: auto;
  padding: 9px 16px;
}

.result-count {
  font-size: 13px;
  color: var(--color-muted);
  margin: -12px 0 16px;
}

.mass-add-result {
  margin-bottom: 24px;
}

.mass-add-result__errors {
  margin-top: 16px;
}

.mass-add-result__errors li {
  font-size: 13px;
  color: var(--color-error-text);
}

.pipeline-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.store-pipeline-group__heading {
  font-size: 14px;
  color: var(--color-muted);
  margin: 20px 0 10px;
}

.pipeline-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 15px;
}

.pipeline-note {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.pipeline-note--green {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.pipeline-note--amber {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.pipeline-note--red {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.pipeline-stepper {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 92px;
  text-align: center;
}

.pipeline-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--color-bg);
  color: var(--color-muted);
  border: 2px solid var(--color-border);
  flex-shrink: 0;
}

.pipeline-step__label {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 6px;
  line-height: 1.3;
}

.pipeline-step--done .pipeline-step__dot {
  background: var(--color-success-text);
  border-color: var(--color-success-text);
  color: #fff;
}

.pipeline-step--done .pipeline-step__label {
  color: var(--color-text);
}

.pipeline-step--current .pipeline-step__label {
  color: var(--color-text);
  font-weight: 700;
}

.pipeline-step--current.pipeline-step--green .pipeline-step__dot {
  background: var(--color-success-text);
  border-color: var(--color-success-text);
  color: #fff;
}

.pipeline-step--current.pipeline-step--amber .pipeline-step__dot {
  background: var(--color-warning-text);
  border-color: var(--color-warning-text);
  color: #fff;
}

.pipeline-step--current.pipeline-step--red .pipeline-step__dot {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: #fff;
}

.pipeline-connector {
  flex: 1 1 auto;
  min-width: 12px;
  height: 2px;
  background: var(--color-border);
  margin-top: 14px;
}

.pipeline-connector--done {
  background: var(--color-success-text);
}

.pipeline-action-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.pipeline-action-form .btn {
  margin-top: 12px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.calendar--5days {
  --calendar-days: 5;
}

.calendar {
  display: grid;
  grid-template-columns: 64px repeat(var(--calendar-days, 7), minmax(120px, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--color-surface);
}

.calendar__corner {
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
}

.calendar__day-header {
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.calendar__day-date {
  font-weight: 400;
  color: var(--color-muted);
}

.calendar__hour-label {
  padding: 6px;
  font-size: 11px;
  color: var(--color-muted);
  text-align: right;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.calendar__cell {
  min-height: 56px;
  padding: 3px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.calendar__cell--over {
  background: var(--color-info-bg);
}

.calendar__card {
  background: #eef2fb;
  border: 1px solid #c9d6f0;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  cursor: grab;
}

.calendar__card a {
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.calendar__card-meta {
  color: var(--color-muted);
  margin-top: 2px;
}

.calendar__card--dragging {
  opacity: 0.4;
}

/* Denser variant for a 15-minute-slot grid (recruitment's screening
   calendar) — hourly slots have far more room to fill than a quarter-hour
   one does, so this shrinks row height and card padding to suit. */
.calendar--compact .calendar__cell {
  min-height: 26px;
  padding: 1px 3px;
}

.calendar--compact .calendar__hour-label {
  padding: 2px 6px;
  font-size: 10px;
}

.calendar--compact .calendar__card {
  padding: 2px 4px;
  font-size: 10px;
}

/* Candidates master-detail (store/manager) */

.candidates-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-height: 60vh;
}

.candidates-list-panel {
  width: 340px;
  flex-shrink: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.candidates-list-panel__header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--color-border);
}

.candidates-list-panel__header h1 {
  margin: 0 0 12px;
  font-size: 19px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.candidates-list-panel__count {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
}

.candidates-list-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.candidates-list-panel__header input[type="search"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 10px;
}

.candidates-list {
  max-height: 70vh;
  overflow-y: auto;
}

.candidates-list__group-label {
  padding: 12px 16px 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.candidates-list-panel__hint {
  padding: 0 16px;
}

.candidates-list-boxes {
  padding: 12px;
  overflow-y: auto;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.candidates-list-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.candidates-list-box .empty-note {
  padding: 12px 14px;
}

.candidates-list-box__title {
  margin: 0;
  padding: 10px 14px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.candidates-list-box .candidate-row {
  border-bottom: 1px solid var(--color-border);
}

.candidates-list-box .candidate-row:last-child {
  border-bottom: none;
}

.candidate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
}

.candidate-row:hover {
  background: var(--color-bg);
}

.candidate-row--selected {
  background: #eef2fb;
}

.candidate-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e4e9f5;
  color: var(--color-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.candidate-row__body {
  flex: 1;
  min-width: 0;
}

.candidate-row__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-row__meta {
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-row__badge {
  flex-shrink: 0;
}

.candidates-detail-panel {
  flex: 1;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.candidates-detail-panel__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  color: var(--color-muted);
  font-size: 14px;
}

.candidate-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.candidate-detail__header h1 {
  margin: 0;
  font-size: 24px;
}

.candidate-detail__subtitle {
  color: var(--color-muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .candidates-layout {
    flex-direction: column;
  }
  .candidates-list-panel {
    width: 100%;
  }
}

.field-grid label {
  margin-top: 0;
}

.candidate-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.candidate-detail__actions .btn {
  margin-top: 0;
  width: auto;
}

.candidate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-option {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.action-option--danger {
  background: var(--color-error-bg);
  border-color: #f2c6c1;
}

.action-option--success {
  background: var(--color-success-bg);
  border-color: #bfe2c8;
}

.screening-add-card {
  margin: 12px;
}

/* --- Screening slot picker: click a slot, done --- */

.slot-picker__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.slot-picker__nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}

.slot-picker__date-input {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}

.slot-picker__suffix {
  flex-shrink: 0;
  color: var(--color-muted);
  font-size: 12px;
}

.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slot-form {
  display: contents;
}

.slot-btn {
  min-width: 58px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.slot-btn:hover {
  border-color: var(--color-primary);
  background: #eef2fb;
}

.slot-btn--occupied {
  background: var(--color-bg);
  color: var(--color-muted);
  cursor: not-allowed;
  border-style: dashed;
}

.screening-calendar__time-col {
  width: 80px;
}

/* A booking spans several 15-minute rows — tint the whole block the same
   color (matching its type badge) with a solid stripe down the left edge,
   so it reads as one continuous booking rather than a run of separate rows. */
.screening-calendar__row--success {
  background: var(--color-success-bg);
}

.screening-calendar__row--success .calendar__hour-label {
  border-left: 3px solid var(--color-success-text);
}

.screening-calendar__row--info {
  background: var(--color-info-bg);
}

.screening-calendar__row--info .calendar__hour-label {
  border-left: 3px solid var(--color-info-text);
}

.action-option h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}

.action-option .field-grid {
  margin-bottom: 10px;
}

.action-option label {
  margin-top: 0;
}

.action-option .btn {
  margin-top: 10px;
}

/* --- Outcome picker: contextual, mistake-resistant candidate actions --- */

.outcome-section {
  margin-bottom: 20px;
}

.outcome-section__heading {
  margin: 0;
  font-size: 14px;
}

.outcome-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.outcome-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.outcome-card:hover {
  border-color: var(--color-primary);
}

.outcome-card__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.outcome-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-muted);
}

.outcome-card__body {
  flex: 1;
  min-width: 0;
}

.outcome-card__body strong {
  display: block;
  font-size: 14px;
}

.outcome-card__hint {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
}

.outcome-card__dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  position: relative;
}

.outcome-card:has(.outcome-card__input:checked) {
  border-color: var(--color-primary);
  background: #eef2fb;
}

.outcome-card:has(.outcome-card__input:checked) .outcome-card__icon {
  background: #dbe4f7;
  color: var(--color-primary);
}

.outcome-card:has(.outcome-card__input:checked) .outcome-card__dot {
  border-color: var(--color-primary);
}

.outcome-card:has(.outcome-card__input:checked) .outcome-card__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-primary);
}

.outcome-card--danger:has(.outcome-card__input:checked) {
  border-color: var(--color-danger);
  background: var(--color-error-bg);
}

.outcome-card--danger:has(.outcome-card__input:checked) .outcome-card__icon {
  background: #f6d4d1;
  color: var(--color-danger);
}

.outcome-card--danger:has(.outcome-card__input:checked) .outcome-card__dot {
  border-color: var(--color-danger);
}

.outcome-card--danger:has(.outcome-card__input:checked) .outcome-card__dot::after {
  background: var(--color-danger);
}

.outcome-card--success:has(.outcome-card__input:checked) {
  border-color: var(--color-success-text);
  background: var(--color-success-bg);
}

.outcome-card--success:has(.outcome-card__input:checked) .outcome-card__icon {
  background: #cbe8d3;
  color: var(--color-success-text);
}

.outcome-card--success:has(.outcome-card__input:checked) .outcome-card__dot {
  border-color: var(--color-success-text);
}

.outcome-card--success:has(.outcome-card__input:checked) .outcome-card__dot::after {
  background: var(--color-success-text);
}

.outcome-reveal {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  margin-bottom: 10px;
}

.outcome-reveal--danger {
  background: var(--color-error-bg);
  border-color: #f2c6c1;
}

.outcome-reveal--success {
  background: var(--color-success-bg);
  border-color: #bfe2c8;
}

.outcome-reveal label {
  margin-top: 0;
}

.outcome-reveal .field-grid {
  margin-bottom: 10px;
}

.outcome-reveal .btn {
  margin-top: 10px;
}

.status-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--color-success-bg);
  border: 1px solid #bfe2c8;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 18px;
}

.status-summary__text strong {
  color: var(--color-success-text);
}

.status-summary__edit {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.reschedule-panel {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.reschedule-panel h4 {
  margin: 0 0 10px;
  font-size: 13px;
}

.reschedule-panel .field-grid {
  margin-bottom: 10px;
}

.reschedule-panel .btn {
  margin-top: 6px;
}

.candidate-filters {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.candidate-filters__search input {
  width: 100%;
}

.candidate-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.candidate-filters__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.candidate-filters__pills {
  margin-bottom: 0;
}

.candidate-filters__select {
  width: auto;
  min-width: 150px;
  margin: 0;
}

.candidate-filters__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.candidate-filters__footer .result-count {
  margin: 0;
}

.filter-pill__count {
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--color-bg);
  font-size: 11px;
}

.filter-pill--active .filter-pill__count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.table__action-cell {
  white-space: nowrap;
  text-align: right;
}

.candidate-filters .btn {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

.table-scroll {
  overflow-x: auto;
}

/* Screening week view — one column per day, one row per 15 minutes; cards
   are absolutely positioned by screening-week.js so they can span rows. */
.wk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.wk-toolbar__title {
  margin: 0;
  font-size: 18px;
}

.wk-toolbar__pills {
  margin-bottom: 0;
}

.wk {
  --wk-days: 5;
  display: grid;
  grid-template-columns: 56px repeat(var(--wk-days), minmax(130px, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow-x: auto;
  margin-top: 12px;
}

.wk--7days {
  --wk-days: 7;
}

.wk__corner,
.wk__day-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.wk__day-header--today {
  background: var(--color-info-bg);
  color: var(--color-info-text);
}

.wk__times {
  border-right: 1px solid var(--color-border);
}

.wk__time {
  height: 22px;
  padding: 0 6px;
  font-size: 10px;
  line-height: 14px;
  color: var(--color-muted);
  text-align: right;
}

.wk__col {
  position: relative;
  border-right: 1px solid var(--color-border);
}

.wk__col:last-child {
  border-right: none;
}

.wk__slot {
  height: 22px;
  border-top: 1px dotted var(--color-border);
}

.wk__slot--hour {
  border-top: 1px solid var(--color-border);
}

.wk__card {
  position: absolute;
  left: 3px;
  right: 3px;
  z-index: 1;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid;
  border-left-width: 4px;
  font-size: 11px;
  line-height: 1.25;
  cursor: grab;
}

.wk__card--info {
  background: var(--color-info-bg);
  border-color: var(--color-info-text);
}

.wk__card--success {
  background: var(--color-success-bg);
  border-color: var(--color-success-text);
}

.wk__card--locked {
  cursor: default;
}

.wk__card a {
  font-weight: 700;
  color: inherit;
}

.wk__card-meta {
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wk__card--dragging {
  opacity: 0.35;
}

.wk__ghost {
  position: absolute;
  left: 3px;
  right: 3px;
  z-index: 3;
  padding: 2px 6px;
  border: 2px dashed var(--color-accent);
  border-radius: 6px;
  background: rgba(59, 95, 224, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  pointer-events: none;
}

.wk__ghost--bad {
  border-color: var(--color-danger);
  background: rgba(179, 38, 30, 0.12);
  color: var(--color-danger);
}

.wk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Candidates filter panel (admin) */
.candidate-filters {
  gap: 16px;
  padding: 18px 20px;
}

.candidate-filters__search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235b6270' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center;
  font-size: 14px;
  font-family: inherit;
}

.candidate-filters__search input:focus,
.candidate-filters__select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.candidate-filters__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.candidate-filters__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 16px;
}

.candidate-filters__field label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.candidate-filters__select {
  width: 100%;
  min-width: 0;
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6270' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.candidate-filters__footer {
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.sort-btn {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
}

.sort-btn:hover {
  color: var(--color-text);
}

.sort-btn[data-dir="asc"]::after {
  content: " \25B2";
  font-size: 9px;
}

.sort-btn[data-dir="desc"]::after {
  content: " \25BC";
  font-size: 9px;
}

/* Store dashboard: "Your roles" */
.store-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.store-hero__title {
  margin: 0;
  font-size: 26px;
}

.store-hero__sub {
  margin: 2px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.store-hero__cta {
  margin-top: 0;
  padding: 12px 22px;
  font-size: 15px;
}

.attention-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--color-warning-bg);
  border: 1px solid #f0d9a8;
  color: var(--color-warning-text);
}

.attention-banner p {
  margin: 2px 0 0;
  font-size: 13px;
}

.attention-banner .btn {
  margin-top: 0;
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

.empty-state p {
  max-width: 420px;
  margin: 0 auto 8px;
  color: var(--color-muted);
}

.role-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.role-card--amber { border-left-color: #e0a800; }
.role-card--blue { border-left-color: var(--color-accent); }
.role-card--green { border-left-color: #2e7d32; }
.role-card--red { border-left-color: var(--color-danger); }

.role-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.role-card__title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.role-card__meta {
  font-size: 12px;
  color: var(--color-muted);
}

.role-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--color-bg);
  color: var(--color-muted);
}

.role-pill--amber { background: var(--color-warning-bg); color: var(--color-warning-text); }
.role-pill--blue { background: var(--color-info-bg); color: var(--color-info-text); }
.role-pill--green { background: var(--color-success-bg); color: var(--color-success-text); }
.role-pill--red { background: var(--color-error-bg); color: var(--color-error-text); }

.role-card__detail {
  margin: 4px 0 16px;
  font-size: 15px;
}

.role-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.role-card__actions .btn {
  margin-top: 0;
}

.role-track {
  display: flex;
  list-style: none;
  margin: 18px 0 14px;
  padding: 0;
}

.role-track__step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
}

.role-track__step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--color-border);
}

.role-track__step:first-child::before {
  display: none;
}

.role-track__step--done::before,
.role-track__step--current::before {
  background: #2e7d32;
}

.role-track__dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  font-size: 12px;
  font-weight: 700;
}

.role-track__step--done .role-track__dot {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

.role-track__step--current .role-track__dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.role-track--amber .role-track__step--current .role-track__dot { background: #e0a800; border-color: #e0a800; }
.role-track--red .role-track__step--current .role-track__dot { background: var(--color-danger); border-color: var(--color-danger); }
.role-track--green .role-track__step--current .role-track__dot { background: #2e7d32; border-color: #2e7d32; }

.role-track__step--current {
  color: var(--color-text);
  font-weight: 700;
}

.store-footer-links {
  margin-top: 24px;
  font-size: 13px;
  color: var(--color-muted);
}

.role-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border-left: 5px solid var(--color-border);
}

.role-summary p {
  margin: 2px 0 0;
  font-size: 14px;
}

.role-summary .btn {
  margin-top: 0;
}

.role-summary--amber { background: var(--color-warning-bg); border-left-color: #e0a800; }
.role-summary--blue { background: var(--color-info-bg); border-left-color: var(--color-accent); }
.role-summary--green { background: var(--color-success-bg); border-left-color: #2e7d32; }
.role-summary--red { background: var(--color-error-bg); border-left-color: var(--color-danger); }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-16 { margin-top: 16px; }

.field-hint--tight {
  margin: -4px 0 8px;
}

.field-grid__full {
  grid-column: 1 / -1;
}

.empty-note--pad {
  padding: 16px;
}

.static-field--big {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}

.next-step {
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  border-left: 5px solid var(--color-border);
  background: var(--color-bg);
  font-size: 15px;
}

.next-step--amber { background: var(--color-warning-bg); border-left-color: #e0a800; color: var(--color-warning-text); }
.next-step--blue { background: var(--color-info-bg); border-left-color: var(--color-accent); color: var(--color-info-text); }
.next-step--green { background: var(--color-success-bg); border-left-color: #2e7d32; color: var(--color-success-text); }

.modal {
  max-width: 440px;
  width: calc(100% - 32px);
  padding: 24px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal::backdrop {
  background: rgba(20, 24, 33, 0.55);
}

.modal__title {
  margin: 0 0 8px;
  font-size: 20px;
}

.modal__text {
  margin: 0 0 20px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.5;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal__actions .btn {
  margin-top: 0;
}

.form-intro {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.5;
}

.awaiting-list {
  margin: 0 0 4px;
  padding-left: 20px;
  font-size: 14px;
}

.jr-header--form {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.outcome-reveal--warning {
  background: var(--color-warning-bg);
  border-color: #f0d9a8;
  color: var(--color-warning-text);
}

.duration-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.duration-picker__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.duration-picker__pills {
  margin-bottom: 0;
}

.slot-btn:disabled {
  cursor: not-allowed;
}

/* Store: past requests */
.past-back {
  margin: 0 0 8px;
  font-size: 14px;
}

.past-head {
  margin-bottom: 20px;
}

.past-head h1 {
  margin: 0;
  font-size: 26px;
}

.past-head__sub {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.past-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 22px 8px;
  margin-bottom: 20px;
}

.past-card__title {
  margin: 0 0 8px;
  font-size: 16px;
}

.past-empty {
  margin: 4px 0 16px;
  color: var(--color-muted);
}

.past-table {
  width: 100%;
  border-collapse: collapse;
}

.past-table th {
  padding: 8px 12px 8px 0;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}

.past-table td {
  padding: 14px 12px 14px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.past-table tr:last-child td {
  border-bottom: none;
}

.past-ref {
  font-size: 13px;
  color: var(--color-muted);
  background: var(--color-bg);
  padding: 3px 8px;
  border-radius: 6px;
}

.past-link {
  font-weight: 600;
  color: var(--color-text);
}

.past-table {
  table-layout: fixed;
}

.past-table th:first-child,
.past-table td:first-child {
  width: 130px;
}

.past-table th:last-child,
.past-table td:last-child {
  width: 150px;
}

.jr-timeline__note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-style: italic;
  color: var(--color-text);
}

.role-track--muted .role-track__step--current .role-track__dot { background: var(--color-muted); border-color: var(--color-muted); }
.role-summary--muted { background: var(--color-bg); border-left-color: var(--color-muted); }

/* An option's details open directly under its own card, tucked in with an
   accent edge so it reads as part of that option. */
.outcome-picker > .outcome-reveal {
  margin: -4px 0 6px 20px;
  border-left-width: 4px;
  border-left-color: var(--color-primary);
}

.outcome-picker > .outcome-reveal--danger {
  border-left-color: var(--color-danger);
}

.outcome-picker > .outcome-reveal--success {
  border-left-color: #2e7d32;
}

.outcome-picker > .outcome-reveal--warning {
  border-left-color: #e0a800;
}

.outcome-reveal label {
  display: block;
  margin-bottom: 4px;
}

.outcome-reveal .field-hint--tight {
  margin: 0 0 8px;
}

.quick-reason {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-reason__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.quick-reason .btn {
  margin-top: 0;
}

.reveal-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  font-size: 12px;
  color: var(--color-muted);
}

.reveal-or::before,
.reveal-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.outcome-reveal label {
  font-size: 13px;
  font-weight: 600;
}

/* Area manager: My stores */
.am-section {
  margin-bottom: 28px;
}

.am-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 18px;
}

.am-count {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-bg);
  font-size: 13px;
  color: var(--color-muted);
}

.am-count--alert {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.am-clear {
  padding: 18px 20px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-muted);
  background: var(--color-surface);
}

.approval-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid #e0a800;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}

.approval-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.approval-card__title {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.approval-card__meta {
  font-size: 13px;
  color: var(--color-muted);
}

.approval-card .btn {
  margin-top: 0;
}

.approval-card__note {
  margin: 10px 0 0;
  font-style: italic;
  color: var(--color-muted);
  font-size: 14px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 24px;
  margin: 16px 0 0;
}

.facts--wide {
  margin-top: 8px;
  padding-bottom: 12px;
}

.facts dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.facts dd {
  margin: 2px 0 0;
  font-size: 15px;
}

.facts__warn {
  color: var(--color-danger);
  font-weight: 700;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.store-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.store-card__head {
  margin-bottom: 10px;
}

.store-card__name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
}

.store-card__code {
  font-size: 12px;
  color: var(--color-muted);
}

.store-card__empty {
  margin: 4px 0 12px;
  color: var(--color-muted);
  font-size: 14px;
}

.store-role {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
}

.store-role:hover {
  text-decoration: none;
  background: #eaedf2;
}

.store-role__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.store-role .role-pill {
  font-size: 12px;
  padding: 3px 10px;
}

.store-card__more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

.role-mini {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.role-mini__seg {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--color-border);
}

.role-mini__seg--done {
  background: #2e7d32;
}

.role-mini__seg--current {
  background: var(--color-accent);
}

.role-mini--amber .role-mini__seg--current { background: #e0a800; }
.role-mini--red .role-mini__seg--current { background: var(--color-danger); }
.role-mini--green .role-mini__seg--current { background: #2e7d32; }
.role-mini--muted .role-mini__seg--current { background: var(--color-muted); }

.role-mini__label {
  font-size: 12px;
  color: var(--color-muted);
}

.store-open-role {
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 12px;
}

.store-open-role:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.store-open-role__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.choose-store {
  max-width: 480px;
  margin: 48px auto;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.decision-box {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.decision-box--approve {
  background: var(--color-success-bg);
  border-color: #bfe2c8;
}

.decision-box--decline {
  background: var(--color-error-bg);
  border-color: #f2c6c1;
}

.decision-box label {
  margin-top: 8px;
}

.decision-box .btn {
  margin-top: 12px;
}

.past-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.past-filter label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.past-card--alert {
  border-left: 5px solid #e0a800;
}

.past-btn {
  margin-top: 0;
  padding: 7px 16px;
}

.past-muted {
  font-size: 13px;
  color: var(--color-muted);
}

.choose-store__terms {
  margin: 12px 0 0;
}

.attention-banner--stack {
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
}

.banner-stores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banner-stores li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.banner-stores__name {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
}

.banner-stores__count {
  font-size: 13px;
}

.banner-stores .btn {
  margin-top: 0;
  padding: 7px 18px;
}

.store-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--color-info-bg);
  color: var(--color-info-text);
  font-size: 15px;
}

.store-banner__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.store-banner__code {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.8;
}

.candidate-row__store {
  color: var(--color-text);
}

.filter-pills--stores {
  margin-top: -6px;
}

.modal__for {
  margin: -2px 0 10px;
  font-size: 14px;
  color: var(--color-muted);
}

/* Acting as another user (recruitment admins only) */
.acting-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #a1231b; color: #fff; padding: 8px 24px; font-size: 14px; }
.acting-banner .inline-form { margin: 0; }
.acting-banner__stop { background: #fff; color: #a1231b; border: 0; border-radius: 6px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.act-as { display: inline-block; margin-right: 10px; }
.act-as summary { cursor: pointer; color: var(--color-primary); font-size: 13px; font-weight: 600; }
.act-as__form { margin-top: 8px; padding: 12px; min-width: 280px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; }
.act-as__form label { display: block; font-size: 13px; margin: 8px 0 4px; }
.act-as__form .btn { margin-top: 10px; }

/* --- Admin job page --- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mb-16 { margin-bottom: 16px; }

.jr-header__count { color: var(--color-muted); font-weight: 500; }
.jr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.jr-toolbar__buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jr-toolbar .btn { margin-top: 0; }

/* Indeed status: heading, state pill and slide switch */
.indeed-status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.indeed-status__title { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.indeed-status__row { display: flex; align-items: center; gap: 12px; }
.indeed-status__row .inline-form { margin: 0; }
.indeed-status__hint { font-size: 12px; color: var(--color-muted); }
.state-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.state-pill--live { background: var(--color-success-bg); color: var(--color-success-text); border: 1px solid #b9dcc0; }
.state-pill--paused { background: var(--color-warning-bg); color: var(--color-warning-text); border: 1px solid #f0d9a8; }
.state-pill--closed { background: #eef0f4; color: var(--color-muted); border: 1px solid var(--color-border); }
.switch { position: relative; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: #b9bfca; cursor: pointer; transition: background 0.15s ease; }
.switch--on { background: #2e9d4a; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.15s ease; }
.switch--on .switch__knob { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid rgba(59, 95, 224, 0.45); outline-offset: 2px; }

/* Dropdown menu */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__caret { font-size: 11px; margin-left: 4px; }
.menu__list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 6px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; box-shadow: 0 12px 32px rgba(20, 24, 33, 0.16); display: flex; flex-direction: column; }
.menu__item { text-align: left; padding: 9px 12px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 14px; color: var(--color-text); cursor: pointer; }
.menu__item:hover { background: #f0f2f6; }
.menu__item--danger { color: var(--color-danger); }

/* "What to do next" cards */
.next-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 20px; background: #f4f7fd; border: 1px solid #c7d3ec; border-radius: var(--radius); }
.next-card--success { background: var(--color-success-bg); border-color: #b9dcc0; }
.next-card__head h2 { margin: 0 0 2px; font-size: 17px; }
.next-card__head .field-hint { margin: 0; }
.next-card .btn { margin-top: 0; }
.next-card__form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.next-card__form select { min-width: 200px; margin: 0; }
.next-card .decision-grid { flex-basis: 100%; }

/* Release card */
.release-card { display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 20px; background: linear-gradient(135deg, #eaf6ee, #f4faf6); border: 1px solid #b9dcc0; border-left: 6px solid #2e9d4a; border-radius: var(--radius); }
.release-card__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #2e9d4a; color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.release-card__body { flex: 1; min-width: 0; }
.release-card__body h2 { margin: 0 0 2px; font-size: 18px; }
.release-card__body .field-hint { margin: 0 0 10px; }
.release-card__btn { margin-top: 0; padding: 12px 22px; font-size: 15px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--color-text); }
a.chip:hover { text-decoration: none; border-color: var(--color-primary); }
.chip__avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #e3e8f4; color: var(--color-primary); font-size: 10px; font-weight: 700; flex: none; }

/* Candidates + notes */
.jr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.jr-grid .detail-card { margin: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.cand-summary { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cand-summary__pill { padding: 3px 10px; border-radius: 999px; background: #eef0f4; color: var(--color-muted); font-size: 12px; font-weight: 700; }
.cand-summary__pill--good { background: var(--color-success-bg); color: var(--color-success-text); }
.cand-summary__pill--info { background: var(--color-info-bg); color: var(--color-info-text); }
.cand-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }

.note-form textarea { width: 100%; margin: 0 0 8px; }
.note-form__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.note-form__row .field-hint { margin: 0; font-size: 12px; }
.note-form__row .btn { margin-top: 0; flex: none; }
.note-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.note { padding: 10px 12px; background: #fffbea; border: 1px solid #f0e2a4; border-radius: 8px; }
.note__body { margin: 0 0 6px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--color-muted); }
.note__meta .inline-form { margin: 0; }
.note__delete { color: var(--color-muted); font-size: 12px; }

/* Panel-style dialogs */
.modal--panel { padding: 0; max-height: 88vh; overflow: auto; }
.modal--wide { max-width: 640px; }
.modal__body { padding: 24px; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal__head .modal__title { margin: 0; }
.modal__close { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--color-muted); cursor: pointer; padding: 0 4px; }
.modal__close:hover { color: var(--color-text); }
.modal__section { margin: 22px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); }
.modal__body label { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 600; }
.modal__body .radio-label label { display: inline; margin: 0; font-weight: 400; }
.modal__body .modal__actions { margin-top: 18px; }
.modal__body form > .btn { margin-top: 14px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; }
.detail-grid dt { font-size: 12px; color: var(--color-muted); margin-bottom: 2px; }
.detail-grid dd { margin: 0; font-size: 14px; font-weight: 600; }
.detail-grid dd .field-hint { display: block; font-weight: 400; margin: 2px 0 0; }
.detail-grid__full { grid-column: 1 / -1; }
.act-as--block { display: block; margin: 18px 0 0; }

@media (max-width: 900px) {
  .jr-grid { grid-template-columns: 1fr; }
  .release-card { flex-wrap: wrap; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* Candidates by stage */
.cand-section { margin-top: 20px; }
.cand-section:first-of-type { margin-top: 8px; }
.cand-section__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; font-size: 15px; }
.cand-section__hint { font-size: 12px; font-weight: 400; color: var(--color-muted); }
.cell-sub { display: block; font-size: 12px; color: var(--color-muted); font-weight: 400; }
.cell-muted { color: var(--color-muted); }

/* Close job sense-check */
.close-check { margin: 14px 0; padding: 12px 14px; background: var(--color-warning-bg); border: 1px solid #f0d9a8; border-radius: 8px; }
.close-check strong { display: block; color: var(--color-warning-text); }
.close-check .field-hint { margin: 2px 0 10px; }
.check-row { display: flex !important; align-items: flex-start; gap: 10px; margin: 12px 0 0 !important; font-weight: 600 !important; font-size: 14px !important; cursor: pointer; }
.check-row input { margin-top: 3px; flex: none; }
.check-row--warn { padding: 10px 12px; background: var(--color-warning-bg); border: 1px solid #f0d9a8; border-radius: 8px; color: var(--color-warning-text); font-weight: 500 !important; }
.check-row[hidden] { display: none !important; }
.chip__status { font-weight: 500; color: var(--color-muted); font-size: 12px; }
.check-row input[type="checkbox"] { width: auto; height: auto; margin: 3px 0 0; padding: 0; flex: none; }

/* Close-role walkthrough */
.wizard-progress { display: flex; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: step; }
.wizard-progress li { flex: 1; padding: 8px 10px; border-radius: 8px; background: #eef0f4; color: var(--color-muted); font-size: 12px; font-weight: 700; text-align: center; counter-increment: step; }
.wizard-progress li::before { content: counter(step) ". "; }
.wizard-progress li.is-current { background: var(--color-primary); color: #fff; }
.wizard-progress li.is-done { background: var(--color-success-bg); color: var(--color-success-text); }
.wizard-step[hidden] { display: none; }
.wizard-step__title { margin: 0 0 10px; font-size: 16px; }
.wizard-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.wizard-actions .btn { margin-top: 0; }
.wizard-actions__spacer { flex: 1; }
.wizard-actions [hidden] { display: none; }
.cand-group { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 8px; background: #fafbfc; }
.cand-group--good { background: var(--color-success-bg); border-color: #b9dcc0; }
.cand-group--warn { background: var(--color-warning-bg); border-color: #f0d9a8; }
.cand-group strong { display: block; }
.cand-group .field-hint { margin: 2px 0 10px; }
.cand-group__count { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); font-size: 12px; }

.close-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px 16px; align-items: start; padding: 10px 0; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.close-row:first-of-type { border-top: 0; }
.close-row__who .cell-sub { margin-top: 2px; }
.close-row__fields { display: flex; flex-direction: column; gap: 6px; }
.close-row__fields select, .close-row__fields input[type="text"] { width: 100%; margin: 0; }
.check-row--tight { margin: 2px 0 0 !important; font-weight: 500 !important; font-size: 13px !important; }
@media (max-width: 700px) { .close-row { grid-template-columns: 1fr; } }

/* Screening call pop-up and notes */
.card-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-head__actions .btn { margin-top: 0; }
.call-history { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.call-history li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.call-error { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--color-error-bg); color: var(--color-error-text); font-size: 14px; font-weight: 600; }
.call-error[hidden] { display: none; }
.call-sub { margin: 8px 0 0 22px; padding-left: 12px; border-left: 3px solid var(--color-border); }
.call-q { margin: 16px 0 4px; font-weight: 600; }
.script-box { margin: 8px 0 14px; padding: 10px 14px; background: #f4f7fd; border: 1px solid #c7d3ec; border-left: 5px solid var(--color-primary); border-radius: 8px; }
.script-box__label { display: inline-block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary); }
.script-box p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.day-grid { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px 12px; align-items: center; margin: 8px 0 4px; }
.day-grid label { margin: 0; font-weight: 600; }
.day-grid input { margin: 0; }
.wizard-step input[type="text"], .wizard-step input[type="tel"], .wizard-step input[type="email"], .wizard-step textarea { width: 100%; }
.call-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 8px 0 12px; }
.call-summary dt { font-size: 12px; color: var(--color-muted); margin-bottom: 1px; }
.call-summary dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.day-summary { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 4px 0 12px; }
.day-summary > div { padding: 6px 8px; background: #f4f6fa; border-radius: 8px; text-align: center; font-size: 12px; }
.day-summary span { display: block; color: var(--color-muted); font-weight: 700; }
.call-text { margin: 10px 0; }
.call-text__label { font-size: 12px; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.call-text p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 700px) { .call-summary { grid-template-columns: 1fr; } .day-summary { grid-template-columns: repeat(4, 1fr); } }

/* Big yes / no buttons */
.choice-group { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.modal__body .choice { display: inline-flex !important; position: relative; margin: 0 !important; font-weight: 700 !important; font-size: 15px !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; }
.choice span { display: block; padding: 11px 24px; min-width: 104px; text-align: center; background: #fff; border: 2px solid #d8dbe0; border-radius: 10px; color: #4b5361; transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease; }
.choice:hover span { border-color: #aab2c0; }
.choice input:focus-visible + span { outline: 3px solid rgba(59, 95, 224, 0.45); outline-offset: 2px; }
.choice--yes input:checked + span { background: #e3f4e8; border-color: #2e9d4a; color: #17612c; }
.choice--no input:checked + span { background: #fdeaea; border-color: #c9433a; color: #a1231b; }
.choice--unsure input:checked + span { background: #fff4e0; border-color: #e0a800; color: #7a5200; }
.choice--neutral input:checked + span { background: #e3eefc; border-color: var(--color-primary); color: var(--color-primary); }
.choice--wide { display: flex !important; }
.choice--wide span { width: 100%; text-align: left; padding: 13px 16px; font-weight: 600; }
/* A tick (or cross) appears at the start of whichever button is chosen */
.choice--yes input:checked + span::before { content: "\2713\00a0\00a0"; font-weight: 800; }
.choice--no input:checked + span::before { content: "\2715\00a0\00a0"; font-weight: 800; }
.wizard-progress li.is-done::before { content: "\2713\00a0"; }
.call-sub .choice-group { margin-top: 4px; }

/* Screening call: match score and final decision */
.score-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0 10px; }
.modal__body .score { display: inline-flex !important; position: relative; margin: 0 !important; cursor: pointer; }
.score input { position: absolute; opacity: 0; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; }
.score span { display: block; width: 40px; padding: 9px 0; text-align: center; font-weight: 700; background: #fff; border: 2px solid #d8dbe0; border-radius: 10px; color: #4b5361; }
.score:hover span { border-color: #aab2c0; }
.score input:focus-visible + span { outline: 3px solid rgba(59, 95, 224, 0.45); outline-offset: 2px; }
.score input:checked + span { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.score-of { margin-left: 6px; font-size: 13px; color: var(--color-muted); }
.call-finish { display: grid; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e3e6ec; }
.call-finish__label { font-size: 13px; color: var(--color-muted); }
.btn--success { background: #1e8e3e; border-color: #1e8e3e; color: #fff; }
.btn--success:hover { background: #187433; border-color: #187433; }
.btn--link { background: none; border: 0; color: var(--color-muted); text-decoration: underline; }

/* Store / area manager view of recruitment's screening notes */
.notes-card { border: 2px solid #1f6feb; border-left-width: 8px; background: #f5f9ff; box-shadow: 0 4px 16px rgba(31, 111, 235, 0.12); }
.notes-card__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.notes-card__head h2 { margin: 0 0 4px; font-size: 20px; }
.notes-card__head .field-hint { margin: 0; }
.notes-card__sub { margin: 16px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
.match-badge { flex: none; text-align: center; padding: 8px 16px; border-radius: 12px; color: #fff; line-height: 1.1; }
.match-badge b { display: block; font-size: 24px; text-transform: none; }
.match-badge small { font-size: 15px; font-weight: 600; opacity: 0.85; }
.match-badge span { font-size: 11px; font-weight: 600; opacity: 0.95; }
.match-badge--high { background: #1e8e3e; } .match-badge--mid { background: #d98200; } .match-badge--low { background: #c62828; }
.fact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.fact { background: #fff; border: 1px solid #d5e2f7; border-radius: 10px; padding: 10px 12px; }
.fact span { display: block; font-size: 12px; font-weight: 600; color: var(--color-muted); text-transform: none; letter-spacing: 0; }
.fact b { display: block; margin-top: 2px; font-size: 18px; text-transform: none; overflow-wrap: anywhere; }
.fact em { display: block; font-size: 12px; font-style: normal; color: var(--color-muted); }
.fact--yes { border-color: #9fd6ac; background: #f1faf3; } .fact--yes b { color: #14732e; }
.fact--no { border-color: #f0b4b4; background: #fdf3f3; } .fact--no b { color: #b3261e; }
.notes-card .day-summary > div { background: #fff; border: 1px solid #d5e2f7; }
.notes-card .day-summary b { display: block; text-transform: none; font-size: 13px; }
.notes-card .call-text { background: #fff; border: 1px solid #d5e2f7; border-radius: 10px; padding: 10px 14px; }
.notes-card .call-text p { font-size: 15px; }
.day-summary b, .call-summary dd { text-transform: none; }

/* Screening call: the call on the left, the store's job request on the right */
.modal--split { max-width: 1180px; width: calc(100vw - 32px); }
.call-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.job-side { position: sticky; top: 0; background: #f5f9ff; border: 1px solid #d5e2f7; border-left: 5px solid #1f6feb; border-radius: 12px; padding: 16px 18px; }
.job-side__title { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
.job-side__store { margin: 0 0 12px; font-size: 16px; }
.job-side__list { margin: 0; display: grid; gap: 10px; }
.job-side__list dt { font-size: 12px; color: var(--color-muted); }
.job-side__list dd { margin: 1px 0 0; font-size: 14px; font-weight: 600; text-transform: none; overflow-wrap: anywhere; }
.job-side__comments { white-space: pre-wrap; font-weight: 400 !important; }
@media (max-width: 900px) { .call-split { grid-template-columns: 1fr; } .job-side { position: static; order: -1; } }
.call-finish__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.day-off { padding: 8px 18px; font-weight: 700; font-size: 14px; background: #fff; color: #a1231b; border: 2px solid #e9b7b3; border-radius: 10px; cursor: pointer; }
.day-off:hover { border-color: #c9433a; }
.day-off.is-off { background: #c9433a; border-color: #c9433a; color: #fff; }
.day-grid input.is-off { background: #fdeaea; border-color: #c9433a; color: #a1231b; font-weight: 700; }

/* Review step: short answers sit in two columns, long ones take the full width */
.call-summary--review { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.call-summary--review .is-long { grid-column: 1 / -1; }
.call-summary--review .is-long dd { font-weight: 400; white-space: pre-wrap; max-height: 9em; overflow: auto; }
.call-summary--review dd { font-size: 14px; }
.invite-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; background: #f5f9ff; border: 1px solid #d5e2f7; border-left: 5px solid #1f6feb; border-radius: 10px; }
.invite-bar p { margin: 0; }
