/* =====================================================
   PORTAL REDE — R&S (Recrutamento e Seleção)
   Vagas · Kanban de triagem · Página pública
   ===================================================== */

/* ---------- Cards de vaga ---------- */

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--success);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.job-card:hover { transform: translateY(-2px); }
.job-card.expired { border-top-color: var(--danger); }
.job-card.closed { border-top-color: var(--line-strong); }

.job-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-dept {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pine);
}
.job-status {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
}
.job-status.open { background: var(--success-soft); color: var(--success); }
.job-status.expired { background: var(--danger-soft); color: var(--danger); }
.job-status.closed { background: var(--paper); color: var(--ink-faint); }

.job-card h3 { font-size: 16.5px; }
.job-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.job-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-faint); }
.job-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}

/* ---------- Kanban ---------- */

.kb-board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: flex-start;
}
.kb-col {
  flex: 0 0 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.kb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 14px;
}
.kb-count {
  background: rgba(255, 255, 255, .25);
  border-radius: var(--radius-pill);
  padding: 1px 9px;
  font-size: 12px;
}
.kb-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  max-height: 64vh;
  overflow-y: auto;
}
.kb-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.kb-card:hover { border-color: var(--pine); transform: translateY(-1px); text-decoration: none; }
.kb-name { font-weight: 700; font-size: 13.5px; }
.kb-meta { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-job {
  display: inline-block;
  background: var(--pine-soft);
  color: var(--pine);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
}
.kb-when { font-size: 11px; color: var(--ink-faint); margin-top: 5px; }
.kb-empty { text-align: center; color: var(--ink-faint); font-size: 12.5px; padding: 24px 0; }

/* ---------- Respostas (Q&A) ---------- */

.qa-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.qa-item:last-child { border-bottom: none; }
.qa-q { font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.qa-a { font-size: 14px; margin-top: 3px; white-space: pre-line; }

/* ---------- Página pública ---------- */

.rsp-body { background: var(--paper); }
.rsp-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.rsp-logo { max-height: 38px; border-radius: 8px; }
.rsp-chip {
  background: var(--lime);
  color: var(--pine-deep);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
}

.rsp-hero {
  position: relative;
  background: linear-gradient(120deg, var(--pine-deep), var(--pine));
  color: #fff;
  text-align: center;
  padding: 56px 20px 120px;
  overflow: hidden;
}
.rsp-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rsp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 51, 68, .72);
}
.rsp-hero-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.rsp-dept {
  display: inline-block;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  margin-bottom: 12px;
}
.rsp-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; }
.rsp-hero-desc { color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.6; margin-top: 12px; }
.rsp-hero-meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
}

.rsp-main { max-width: 680px; margin: -70px auto 40px; padding: 0 16px; position: relative; z-index: 3; }
.rsp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 18px;
}
.rsp-card h2 { font-size: 18px; margin-bottom: 14px; }
.rsp-desc { font-size: 14.5px; line-height: 1.75; white-space: pre-line; }

.rsp-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin: 26px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rsp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}
.rsp-options { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.rsp-stars { display: flex; gap: 4px; }
.rsp-stars label { cursor: pointer; }
.rsp-stars input { display: none; }
.rsp-stars span { font-size: 30px; color: var(--line-strong); transition: color .15s var(--ease), transform .15s var(--ease); }
.rsp-stars label:hover span { transform: scale(1.15); color: var(--warn); }
.rsp-stars input:checked + span { color: var(--warn); }
.rsp-stars label:has(~ label input:checked) span { color: var(--warn); }

.rsp-footer { text-align: center; font-size: 12.5px; color: var(--ink-faint); padding: 20px; }

/* ---------- Home estilo app store ---------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.app-tile-1 .mod-ico { background: #E0F4F8; color: #0C6478; }
.app-tile-2 .mod-ico { background: #E9F6EE; color: #15803D; }
.app-tile-3 .mod-ico { background: #FBF1DE; color: #B07C10; }
.app-tile-4 .mod-ico { background: #F2EBFB; color: #6D28D9; }
.app-tile-5 .mod-ico { background: #FBEAE5; color: #C2452D; }
.app-tile-6 .mod-ico { background: #E7EEFB; color: #2563EB; }
.app-tile-7 .mod-ico { background: #FDEEF3; color: #BE185D; }
.app-tile-8 .mod-ico { background: #EAF7F1; color: #0F766E; }

.apps-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink-faint);
  margin: 26px 0 12px;
}
.apps-section-label:first-of-type { margin-top: 4px; }

/* ---------- Configurações da rede ---------- */

.cfg-modules { display: flex; flex-direction: column; }
.cfg-module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.cfg-module-row:last-child { border-bottom: none; }
.cfg-module-name { display: block; font-weight: 700; font-size: 14.5px; }
.cfg-module-desc { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* Switch profissional */
.toggle { position: relative; display: inline-flex; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.toggle-track {
  width: 46px; height: 26px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  transition: background-color .2s var(--ease);
  display: inline-block;
  position: relative;
}
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s var(--ease);
}
.toggle input:checked + .toggle-track { background: var(--pine); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--lime); outline-offset: 2px; }

/* Matriz de permissões */
.cfg-members .cfg-th { text-align: center; font-size: 10.5px; }
.cfg-members .cfg-check { text-align: center; }
.cfg-members .cfg-check input {
  width: 17px; height: 17px;
  accent-color: var(--pine);
  cursor: pointer;
}
