:root {
  /* Marca Salchimonster — paleta alineada con Salchigest v3 (trabajo) */
  --brand-50:  #fff3ed;
  --brand-100: #ffe1cc;
  --brand-200: #ffc299;
  --brand-300: #ff9f66;
  --brand-400: #ff7d3d;
  --brand-500: #ff5a1f;
  --brand-600: #e64612;
  --brand-700: #bc340a;
  --brand-800: #952706;
  --brand-900: #6e1c04;

  /* Legacy aliases (compat con resto del CSS) */
  --brand-black: #0f172a;
  --brand-white: #ffffff;
  --brand-yellow: var(--brand-500);
  --brand-yellow-dim: var(--brand-600);

  /* Tokens semánticos (light) */
  --bg-app: #f6f7fb;
  --bg-surface: #ffffff;
  --bg-surface-2: #f1f3f9;
  --border: #e3e6ee;
  --border-strong: #cdd2dc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-soft-orange: rgba(255, 90, 31, 0.10);

  /* Radios y sombras */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);

  /* Mantengo los nombres viejos para no romper el resto */
  --bg: var(--bg-app);
  --card: var(--bg-surface);
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --ink-mute: var(--text-muted);
  --accent: var(--brand-500);
  --accent-soft: var(--accent-soft-orange);
  --accent-dark: var(--brand-700);
  --line: var(--border);
  --gold: #c9a961;
  --green: #10b981;
  --green-soft: #d1fae5;
  --warn: #f59e0b;
  --warn-soft: #fef3c7;
  --info: #3b82f6;
  --info-soft: #dbeafe;
  --purple: #8b5cf6;
  --purple-soft: #ede9fe;

  --font-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Roboto', var(--font-sans);
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Conserva nombre antiguo para no romper otras reglas */
  --font-display-brand: var(--font-display);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* Cuando la app va embebida en un iframe, ocultamos el botón
   "Entrar equipo" (acceso de personal) — la integración externa
   no necesita esa ruta de login. También quitamos sticky/sombras
   de los headers para que el iframe se vea limpio. */
html.in-iframe #btn-staff-auth { display: none !important; }
html.in-iframe .mode-bar {
  position: static !important;
  box-shadow: none !important;
  border-bottom: none !important;
}
html.in-iframe .cand-header {
  box-shadow: none !important;
  border-bottom: none !important;
}

/* ============ MODE BAR (estilo Salchigest v3) ============ */
.mode-bar {
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.mode-bar * { font-weight: 700; }
.mode-bar .mode-bar-brand,
.mode-bar .mode-bar-brand * {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}
.mode-bar-brand::before {
  content: '';
  width: 28px;
  height: 28px;
  background: url('imagenes/logo.png') center/contain no-repeat;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}
.mode-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.mode-switcher {
  margin-left: auto;
  display: flex;
  gap: 4px;
  background: var(--bg-surface-2);
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.mode-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  transition: background 0.15s, color 0.15s;
}
.mode-btn:hover { color: var(--text-primary); background: rgba(15,23,42,0.04); }
.mode-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(255,90,31,0.35);
}
.reset-btn {
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.reset-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-2);
  border-color: var(--border-strong);
}

/* ============ APP ============ */
.app { display: none; min-height: calc(100vh - 41px); }
.app.active { display: block; }

/* ============ CANDIDATE ============ */
.cand-app { background: var(--bg); }
.cand-header {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.cand-header * { font-weight: 700; }
.cand-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}
.cand-logo::before {
  content: '';
  width: 36px;
  height: 36px;
  background: url('imagenes/logo.png') center/contain no-repeat;
  border-radius: 0;
  flex-shrink: 0;
  box-shadow: none;
}
.cand-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: var(--radius-md);
}
.cand-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.cand-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(255,90,31,0.35);
}
.cand-tab:hover:not(.active) { color: var(--text-primary); background: rgba(15,23,42,0.04); }

.cand-content { max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }
.cand-screen { display: none; animation: fadeUp 0.3s; }
.cand-screen.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Landing */
.hero {
  text-align: center;
  margin-bottom: 48px;
  padding: 40px 0;
}
.hero-headline {
  margin: 0 0 16px;
  line-height: 1.1;
}
.hero-brand-mark {
  font-family: var(--font-display-brand);
  font-weight: 900;
  font-size: clamp(2rem, 6.5vw, 3.5rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: inline-block;
  margin-bottom: 0.35em;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  line-height: 1.35;
}
.hero-tagline em {
  font-style: italic;
  color: var(--accent);
}
.hero p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 7px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: all 0.15s;
}
.filter-chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.filter-chip:hover:not(.active) { border-color: var(--ink-soft); }

.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.vacancy-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.vacancy-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); border-color: var(--accent); }
.vacancy-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, var(--brand-black) 0%, var(--accent) 55%, var(--brand-black) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.vacancy-video::before {
  content: '▶';
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.95);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.vacancy-video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.vacancy-body { padding: 20px; }
.vacancy-position {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.vacancy-meta {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.vacancy-salary {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.vacancy-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.vacancy-location .vacancy-city-text {
  font-weight: 600;
  color: var(--ink);
}
.vacancy-desc { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.5; }

.btn {
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn:disabled { background: var(--line); color: var(--ink-mute); cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--ink); color: white; border-color: var(--ink); transform: none; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-large { padding: 14px 28px; font-size: 15px; }
.btn-success {
  background: var(--green);
}
.btn-success:hover { background: #3a6346; }
.btn-warn {
  background: var(--warn);
}

/* Wizard */
.wizard {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}
.wizard-progress {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  gap: 8px;
}
.wizard-step {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
}
.wizard-step.done { background: var(--accent); }
.wizard-step.current { background: var(--accent); }
.wizard-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.wizard-subtitle { color: var(--ink-mute); font-size: 13px; margin-bottom: 28px; }
.wizard-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
/* Complementos de prueba (modal): el textarea debe ir dentro de .field para heredar padding */
.field.test-followup-field {
  margin-bottom: 0;
  margin-top: 12px;
}
.field.test-followup-field textarea {
  min-height: 130px;
  padding: 12px 16px;
  line-height: 1.55;
  resize: vertical;
}
.field-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
}
.field-checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.field-checkbox span { font-size: 13px; color: var(--ink-soft); }

.field input.field-invalid,
.field select.field-invalid,
.field textarea.field-invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}
.field .field-hint {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-dark);
  margin-top: 6px;
  line-height: 1.35;
}
.field .field-hint:empty { display: none; }

/* Portal */
.portal {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.portal-header {
  padding: 32px;
  background: linear-gradient(135deg, #1a1816 0%, #2a2724 100%);
  color: white;
}
.portal-header-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #c9c2b8;
  margin-bottom: 4px;
}
.portal-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.portal-header p { color: #c9c2b8; font-size: 14px; }

/* Timeline */
.timeline {
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  justify-content: space-between;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex: 1;
  min-width: 80px;
}
.timeline-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-mute);
}
.timeline-step.done .timeline-dot { background: var(--green); border-color: var(--green); color: white; }
.timeline-step.current .timeline-dot { background: var(--accent); border-color: var(--accent); color: white; box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-step.rejected .timeline-dot { background: var(--ink); border-color: var(--ink); color: white; }
.timeline-label { font-size: 10.5px; color: var(--ink-mute); font-weight: 500; line-height: 1.2; }
.timeline-step.done .timeline-label, .timeline-step.current .timeline-label { color: var(--ink); font-weight: 600; }

.portal-body { padding: 32px; }
.portal-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.test-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.test-card-info { flex: 1; }
.test-card-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.test-card-meta { font-size: 12px; color: var(--ink-mute); }
.test-status {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.test-status.pending { background: var(--warn-soft); color: var(--warn); }
.test-status.done { background: var(--green-soft); color: var(--green); }
.test-status.rejected { background: var(--accent-soft); color: var(--accent-dark); }

/* Generic modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-backdrop#detail-modal { align-items: stretch; justify-content: flex-end; padding: 0; }

.generic-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0;
  animation: modalIn 0.25s;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

.modal-head {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: sticky; top: 0;
  background: white;
  z-index: 2;
}
.modal-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.modal-head p { color: var(--ink-mute); font-size: 13px; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 18px;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--accent); color: white; }
.modal-body { padding: 24px 28px; }
.modal-foot { padding: 16px 28px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; position: sticky; bottom: 0; background: white; }

/* Test runner */
.test-q { margin-bottom: 24px; }
.test-q-label { font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.test-options { display: flex; flex-direction: column; gap: 8px; }
.test-option {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.test-option:hover { border-color: var(--ink-soft); background: var(--bg); }
.test-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.test-option input { accent-color: var(--accent); }
.test-option label, .test-option span { flex: 1; cursor: pointer; font-size: 14px; }

.scale-row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.scale-btn {
  flex: 1;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  background: white;
  transition: all 0.15s;
}
.scale-btn:hover { border-color: var(--ink-soft); }
.scale-btn.selected { background: var(--accent); color: white; border-color: var(--accent); }
.scale-btn-num { font-size: 18px; font-weight: 700; display: block; margin-bottom: 2px; }
.scale-btn-label { font-size: 10px; color: var(--ink-mute); }
.scale-btn.selected .scale-btn-label { color: rgba(255,255,255,0.8); }

/* Result panels */
.result-banner {
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.result-banner.success { background: var(--green-soft); border: 1px solid var(--green); }
.result-banner.warning { background: var(--warn-soft); border: 1px solid var(--warn); }
.result-banner.info { background: var(--info-soft); border: 1px solid var(--info); }
.result-banner h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.result-banner p { font-size: 14px; }
.score-display {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.coupon-box {
  background: linear-gradient(135deg, #fff8e7 0%, #fce8e5 100%);
  border: 2px dashed var(--accent);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-top: 16px;
}
.coupon-code {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin: 8px 0;
}

.interview-card {
  background: linear-gradient(135deg, var(--accent-soft) 0%, white 100%);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 24px;
}
.interview-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.interview-row strong { min-width: 100px; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Doc legal modal */
.legal-doc-content {
  max-height: 420px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.legal-doc-content h2 { font-family: var(--font-display); font-size: 18px; margin: 16px 0 8px; color: var(--ink); }
.legal-doc-content h3 { font-family: var(--font-display); font-size: 15px; margin: 12px 0 6px; color: var(--ink); }
.legal-doc-content p { margin-bottom: 8px; }
.legal-doc-content ul, .legal-doc-content ol { margin: 8px 0 8px 24px; }
.scroll-hint {
  text-align: center;
  font-size: 11px;
  color: var(--warn);
  background: var(--warn-soft);
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Video player */
.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}
.video-status.done { background: var(--green-soft); color: var(--green); }

/* ============ HR/LEADER VIEW ============ */
.hr-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 41px);
}
.hr-sidebar {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
  padding: 18px 12px 24px 12px;
  overflow-y: auto;
}
.hr-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding: 4px 8px;
}
.hr-brand::before {
  content: '';
  width: 28px;
  height: 28px;
  background: url('imagenes/logo.png') center/contain no-repeat;
  border-radius: 0;
  flex-shrink: 0;
}
.hr-user {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.hr-nav-section {
  font-family: var(--font-display);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 10px;
  margin: 16px 0 6px;
}
.hr-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
  border-left: none;
  position: relative;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.hr-nav-item:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.hr-nav-item.active {
  background: var(--accent-soft-orange);
  color: var(--accent);
  font-weight: 600;
}
.hr-nav-item.active::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.hr-nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 100px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.hr-main { padding: 32px 40px; overflow-x: hidden; }
.hr-screen { display: none; animation: fadeUp 0.3s; }
.hr-screen.active { display: block; }
.hr-page-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.hr-page-subtitle { color: var(--ink-mute); margin-bottom: 32px; font-size: 14px; }
.hr-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 24px 0 12px;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.kpi-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 32px; height: 2px; background: var(--accent);
}
.kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.kpi-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpi-trend { font-size: 11px; margin-top: 8px; font-weight: 500; }
.kpi-trend.up { color: var(--green); }
.kpi-trend.down { color: var(--accent); }

.dash-panel { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.dash-panel h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.funnel-row {
  display: grid;
  grid-template-columns: 160px 1fr 80px 60px;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 8px 0;
}
.funnel-stage { font-size: 13px; font-weight: 500; }
.funnel-bar { background: var(--bg); border-radius: 6px; height: 28px; overflow: hidden; position: relative; }
.funnel-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 6px;
  transition: width 0.6s ease;
}
.funnel-fill.blue { background: linear-gradient(90deg, var(--info) 0%, #1e40af 100%); }
.funnel-fill.green { background: linear-gradient(90deg, var(--green) 0%, #3a6346 100%); }
.funnel-count { font-family: var(--font-mono); font-weight: 600; font-size: 13px; text-align: right; }
.funnel-pct { font-size: 11px; color: var(--ink-mute); text-align: right; font-family: var(--font-mono); }

/* Kanban */
.kanban-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.kanban-palette-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.kanban-palette-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}
.kanban-palette-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kanban-palette-chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.kanban-palette-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.kanban-palette-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
}
.kanban-palette-slider-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-mute);
  margin-left: auto;
}
.kanban-palette-slider-hint { white-space: nowrap; }
.kanban-palette-slider-wrap input[type="range"] {
  width: 120px;
  accent-color: var(--accent);
}
.kanban-palette-readout {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 38px;
}
.kanban-search {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.kanban-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.kanban-col {
  --kanban-col-bg: rgba(0, 0, 0, 0.02);
  --kanban-col-border: rgba(0, 0, 0, 0.07);
  background: var(--kanban-col-bg);
  border: 1px solid var(--kanban-col-border);
  border-radius: 12px;
  padding: 12px;
  min-height: 400px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.kanban-col-header {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  padding: 0 4px;
}
.kanban-col-header-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.kanban-col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.kanban-col-count {
  background: var(--ink);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.kanban-card {
  background: white;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: grab;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.kanban-card:hover { box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1); transform: translateY(-1px); border-color: var(--accent); }
.kanban-card.dragging { opacity: 0.4; cursor: grabbing; }
.kanban-card.highlighted {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px rgba(227, 6, 19, 0.25);
  animation: pulseHighlight 1.4s ease-in-out infinite;
  position: relative;
}
.kanban-card.highlighted::after {
  content: 'NUEVO';
  position: absolute;
  top: -8px; right: -8px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  box-shadow: 0 2px 6px rgba(227, 6, 19, 0.4);
}
@keyframes pulseHighlight {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px rgba(227, 6, 19, 0.25); }
  50% { box-shadow: 0 0 0 8px var(--accent-soft), 0 8px 24px rgba(227, 6, 19, 0.35); }
}
.kanban-card-name {
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 4px;
}
.kanban-card-pos { font-size: 11.5px; color: var(--ink-mute); margin-bottom: 6px; }
.kanban-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--ink-mute); }
.kanban-card-score {
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.score-high { background: var(--green-soft); color: var(--green); }
.score-mid { background: var(--warn-soft); color: var(--warn); }
.score-low { background: var(--accent-soft); color: var(--accent-dark); }
.kanban-card-flags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.kanban-flag {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.flag-veteran { background: var(--info-soft); color: var(--info); }
.flag-hot { background: var(--accent); color: white; }
.flag-turnero { background: var(--warn-soft); color: var(--warn); }
.flag-nomina { background: var(--green-soft); color: var(--green); }
.kanban-col.drop-target {
  background: var(--accent-soft) !important;
  border-color: var(--accent) !important;
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
  box-shadow: none;
}

/* Detail modal panel */
.detail-panel {
  background: var(--bg);
  width: 100%;
  max-width: 760px;
  height: 100%;
  overflow-y: auto;
  animation: slideRight 0.25s;
}
@keyframes slideRight { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.detail-header {
  padding: 24px 32px;
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1;
}
.detail-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 18px;
  color: var(--ink-soft);
}
.detail-close:hover { background: var(--accent); color: white; }
.detail-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.detail-sub { color: var(--ink-mute); font-size: 13px; margin-bottom: 12px; }
.detail-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 16px -32px -24px;
  padding: 0 32px;
  overflow-x: auto;
}
.detail-tab {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--ink-mute);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  white-space: nowrap;
}
.detail-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.detail-tab:hover:not(.active) { color: var(--ink); }
.detail-body { padding: 24px 32px; }
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 32px;
  background: white;
  border-top: 1px solid var(--line);
  position: sticky; bottom: 0;
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-bottom: 24px; }
.info-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 2px;
}
.info-value { font-size: 13.5px; }
.score-bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 60px 60px;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}
.score-bar { background: var(--bg); height: 20px; border-radius: 4px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.5s; }
.score-mono { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }

.ai-panel {
  background: linear-gradient(135deg, var(--purple-soft) 0%, white 100%);
  border: 1px solid #c9b8e8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.ai-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--purple);
}
.ai-score { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--purple); }
.ai-list { font-size: 13px; }
.ai-list li { margin-bottom: 4px; }
.red-flag {
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin: 2px;
}

/* Requisition list */
.req-list { background: white; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.req-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  transition: background 0.15s;
}
.req-row:last-child { border-bottom: none; }
.req-row:hover { background: var(--bg); }
.req-code { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.req-position { font-weight: 600; font-size: 14px; }
.req-meta { font-size: 12px; color: var(--ink-mute); }
.status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
  display: inline-block;
}
.status-pill.pending { background: var(--warn-soft); color: var(--warn); }
.status-pill.active { background: var(--green-soft); color: var(--green); }
.status-pill.rejected { background: var(--accent-soft); color: var(--accent-dark); }
.status-pill.closed { background: var(--bg); color: var(--ink-mute); }
.status-pill.urgent { background: var(--accent); color: white; }

/* Alerta planta */
.planta-alert {
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  color: var(--warn);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
}
.planta-alert.danger { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  z-index: 300;
  transition: transform 0.25s;
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-mute);
}
.empty p { font-size: 14px; margin-bottom: 16px; }

/* Config screens */
.config-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
}
.config-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.config-card-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.config-card-meta {
  font-size: 12px;
  color: var(--ink-mute);
}
.config-card-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Computrabajo: avatar + HV adjunta + modal revisión */
.comp-cv-card .config-card-head {
  align-items: center;
  flex-wrap: wrap;
}
.comp-cv-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  flex-shrink: 0;
  background: var(--bg);
}
.comp-cv-body { flex: 1; min-width: 0; }
.comp-cv-hv-row { margin-top: 6px; }
.comp-cv-actions {
  flex-direction: column;
  align-items: flex-end;
}
@media (min-width: 640px) {
  .comp-cv-actions { flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
}
.comp-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .comp-review-grid { grid-template-columns: 1fr; }
}
.comp-review-pdf-frame {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.comp-criteria-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.comp-criteria-table th,
.comp-criteria-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.comp-criteria-table th { background: var(--bg); }

.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.toggle.on { background: var(--green); }
.toggle.on::after { transform: translateX(18px); }

.tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 2px;
}
.tag-accent { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; }
.tag-green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tag-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

.signature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border-radius: 12px;
  margin-top: 16px;
}
.signature-box {
  background: white;
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.signature-box.signed {
  border-color: var(--green);
  border-style: solid;
  background: var(--green-soft);
}
.induction-sig-canvas {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 8px;
  touch-action: none;
  cursor: crosshair;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.induction-sig-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.signature-name {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  font-style: italic;
}

@media (max-width: 720px) {
  .kanban-palette-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .kanban-palette-slider-wrap {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .hr-app { grid-template-columns: 1fr; }
  .hr-sidebar { display: none; }
  .hr-main { padding: 24px; }
  .kanban-board { grid-template-columns: repeat(7, 240px); }
  .info-grid { grid-template-columns: 1fr; }
  .signature-row { grid-template-columns: 1fr; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
.hr-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

/* Spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ CONFIG PLANTA DE PERSONAL ============ */
.planta-block-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.planta-block-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.planta-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.planta-title-input,
.planta-shift-select {
  width: 100%;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.planta-sede-picker { margin-bottom: 12px; }
.planta-sede-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: 8px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.planta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
}
.planta-chip small { color: var(--ink-mute); font-weight: 400; }
.planta-hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.planta-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}
.planta-week-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 720px;
}
.planta-week-table th {
  background: var(--ink);
  color: #fff;
  padding: 8px 4px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #2a2724;
}
.planta-th-cargo { min-width: 160px; text-align: left; padding-left: 10px !important; }
.planta-th-day { min-width: 88px; }
.planta-row-label {
  font-weight: 600;
  vertical-align: top;
  padding: 8px;
  border: 1px solid var(--line);
  background: #f3f0ea;
  white-space: nowrap;
}
.planta-cargo-select {
  width: 100%;
  max-width: 200px;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.planta-cell {
  vertical-align: top;
  padding: 4px;
  border: 1px solid var(--line);
  text-align: center;
}
.planta-cell--ok { background: #ecfccb; }
.planta-cell--warn { background: #fef9c3; }
.planta-cell--alert { background: #fecaca; }
.planta-in-num {
  width: 100%;
  max-width: 44px;
  margin: 0 auto 4px;
  display: block;
  text-align: center;
  padding: 2px 4px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.planta-in-state {
  width: 100%;
  max-width: 72px;
  margin: 0 auto 4px;
  display: block;
  font-size: 10px;
  padding: 2px;
  border-radius: 4px;
}
.planta-in-note {
  width: 100%;
  max-width: 76px;
  margin: 0 auto;
  display: block;
  font-size: 9px;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.planta-row-actions {
  border: 1px solid var(--line);
  vertical-align: middle;
  text-align: center;
  width: 48px;
}
.planta-total-row .planta-row-label { background: #e8e2d8; }
.planta-total-cell {
  font-family: var(--font-mono);
  text-align: center;
  padding: 8px 4px;
  border: 1px solid var(--line);
  background: #faf8f4;
}
.planta-block-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
