/* =========================================================================
   ORT — Recrutement & Formation (app administrative)
   ========================================================================= */

.ort-wrap {
  overflow-y: auto;
  max-height: calc(100% - 44px);
}
.ort-loading, .ort-empty {
  padding: 60px 20px; text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 1.5px;
}
.ort-empty-icon svg {
  width: 36px; height: 36px;
  stroke: var(--accent-flame); fill: none; stroke-width: 1.5;
  opacity: 0.5; margin-bottom: 10px;
}

/* --- Table registre --- */
.ort-table {
  width: 100%;
  border-collapse: collapse;
}
.ort-table th, .ort-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  font-size: 12.5px;
}
.ort-table thead th {
  background: var(--bg-panel);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ort-table tbody tr { cursor: pointer; transition: background 0.12s; }
.ort-table tbody tr:hover { background: var(--bg-elevated); }
.ort-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-flame);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.ort-name { font-weight: 600; color: var(--text-primary); }
.ort-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.ort-recruiter { font-family: var(--font-mono); font-size: 11px; }
.ort-mono { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.ort-score {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-flame);
}

/* Avatar (photo candidat) */
.ort-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
}
.ort-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ort-avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.ort-avatar-fallback svg { width: 60%; height: 60%; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Chip statut coloré */
.chip.ort-status-chip {
  --st: #7d8ba3;
  background: color-mix(in srgb, var(--st) 15%, transparent);
  color: var(--st);
  border: 1px solid color-mix(in srgb, var(--st) 40%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Chip décision */
.chip.decision-accepted { background: rgba(45,125,63,0.15); color: #2d7d3f; border: 1px solid rgba(45,125,63,0.4); }
.chip.decision-rejected { background: rgba(216,17,68,0.15); color: #d81144; border: 1px solid rgba(216,17,68,0.4); }
.chip.decision-hold     { background: rgba(161,120,76,0.15); color: var(--accent-flame); border: 1px solid rgba(161,120,76,0.4); }

/* =========================================================================
   Fiche candidat
   ========================================================================= */

.ort-sheet {
  padding: 16px 18px 30px;
  overflow-y: auto;
  height: 100%;
}
.ort-sheet-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 16px;
}
.ort-sheet-photo {
  width: 90px; height: 90px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.ort-sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ort-sheet-photo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.ort-sheet-photo-fallback svg { width: 55%; height: 55%; stroke: currentColor; fill: none; stroke-width: 1.5; }

.ort-sheet-heading { flex: 1; min-width: 0; }
.ort-sheet-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-flame);
  letter-spacing: 0.5px;
}
.ort-sheet-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 4px 0 8px;
}
.ort-sheet-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ort-sheet-actions { display: flex; gap: 6px; flex-shrink: 0; }

.ort-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-flame);
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.ort-block-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-flame);
  margin-bottom: 8px;
}
.ort-block-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 12px;
  padding: 6px 0;
}
.ort-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.ort-block-grid > div {
  padding: 6px 10px;
  background: var(--bg-panel);
  border-radius: 3px;
  min-width: 0;
}
.ort-block-grid label,
.ort-block-full label,
.ort-mini-block label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.ort-block-grid > div > div,
.ort-block-full > div,
.ort-mini-block > div {
  font-size: 12.5px;
  color: var(--text-primary);
}
.ort-block-full {
  padding: 6px 10px;
  background: var(--bg-panel);
  border-radius: 3px;
  margin-top: 6px;
}
.ort-longtext {
  white-space: pre-wrap;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Entretien : deux colonnes points forts / points faibles */
.ort-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.ort-mini-block {
  padding: 8px 10px;
  border-radius: 3px;
  background: var(--bg-panel);
}
.ort-mini-strengths  { border-left: 3px solid #5ab378; }
.ort-mini-weaknesses { border-left: 3px solid #d81144; }

/* =========================================================================
   Timeline
   ========================================================================= */

.ort-block-timeline .ort-block-label .btn { font-size: 10px; padding: 4px 8px; }
.ort-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ort-tl-item {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-panel);
  border-radius: 3px;
  border-left: 2px solid var(--accent-flame);
}
.ort-tl-icon {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(161, 120, 76, 0.2);
  color: var(--accent-flame);
  display: flex; align-items: center; justify-content: center;
}
.ort-tl-icon svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.ort-tl-body { flex: 1; min-width: 0; }
.ort-tl-heading {
  font-size: 12.5px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.ort-tl-msg {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-wrap;
}
.ort-tl-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: 0.5px;
}
