:root {
  --bg: #f2f6fa;
  --bg-grad: linear-gradient(160deg, #f4f8fb 0%, #e9f3f6 100%);
  --card: #ffffff;
  --border: #e5edf1;
  --text: #0f1f2a;
  --muted: #6b7f8c;
  --primary: #0aa5ba;
  --primary-dark: #077885;
  --primary-light: #e0f5f8;
  --primary-grad: linear-gradient(135deg, #0db9cf 0%, #077885 100%);
  --danger: #e5484d;
  --warn: #d97706;
  --ok: #16a34a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(13, 40, 51, .04), 0 4px 16px rgba(13, 40, 51, .05);
  --shadow-2: 0 4px 12px rgba(13, 40, 51, .08), 0 12px 32px rgba(13, 40, 51, .10);
  --side-bg: linear-gradient(180deg, #0c2b33 0%, #0a3540 55%, #07404c 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-dark); text-decoration: none; }
h1,h2,h3,h4 { letter-spacing: -.02em; font-weight: 700; }

/* ===== LOGIN ===== */
#login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(13,185,207,.28), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(7,120,133,.30), transparent 55%),
    linear-gradient(160deg, #0c2b33 0%, #0a3540 60%, #07404c 100%);
}
.login-card {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 24px; padding: 44px 40px; width: 100%; max-width: 400px;
  box-shadow: 0 24px 80px rgba(2, 20, 26, .45);
  text-align: center;
  animation: rise .45s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.login-logo { height: 54px; margin-bottom: 18px; }
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.login-card form { text-align: left; display: flex; flex-direction: column; gap: 16px; }
.login-msg { color: var(--danger); font-size: 13px; min-height: 18px; text-align: center; }

/* ===== LAYOUT ===== */
#app { display: flex; min-height: 100vh; }
#sidebar {
  width: 252px; background: var(--side-bg); color: #d9eef2;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0;
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px; }
.side-brand img { height: 40px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.side-brand b { display: block; font-size: 14.5px; color: #fff; }
.side-brand span { font-size: 10.5px; color: #7fb9c4; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
#side-nav { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
#side-nav a {
  display: block; padding: 11px 14px; border-radius: 12px;
  color: #b9d8de; font-weight: 500; font-size: 13.5px;
  transition: background .15s, color .15s, transform .15s;
}
#side-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
#side-nav a.active {
  background: var(--primary-grad); color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(13,185,207,.35);
}

/* grupos do menu */
.nav-group-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 11px 14px; border-radius: 12px;
  color: #b9d8de; font-weight: 600; font-size: 13.5px; text-align: left;
  transition: background .15s, color .15s;
}
.nav-group-head:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-group-head .chev { font-size: 11px; transition: transform .2s; opacity: .7; }
.nav-group.fechado .chev { transform: rotate(-90deg); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; margin: 2px 0 4px; border-left: 1px solid rgba(255,255,255,.12); margin-left: 18px; }
.nav-group.fechado .nav-sub { display: none; }
.nav-sub a { font-size: 13px; padding: 9px 12px; }
.side-footer {
  padding: 14px 16px; margin: 10px 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
#user-chip b { display: block; font-size: 13px; color: #fff; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#user-chip span { font-size: 11px; color: #7fb9c4; text-transform: capitalize; }
.side-footer .btn-ghost { color: #9cc7cf; }
.side-footer .btn-ghost:hover { color: #ff9b9e; }

#main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#topbar {
  background: rgba(255,255,255,.75); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229,237,241,.9);
  padding: 14px 28px; position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
}
#btn-voltar { font-size: 16px; padding: 5px 13px; }
#topbar h2 { font-size: 18px; }
#page-container { padding: 26px 28px; flex: 1; }
.page { display: none; }
.page.active { display: block; animation: fadein .2s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

/* ===== COMPONENTES ===== */
.btn {
  border: 1px solid transparent; border-radius: 12px; padding: 10px 18px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: transform .12s, box-shadow .12s, background .15s, border-color .15s, color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary-grad); color: #fff; box-shadow: 0 3px 10px rgba(13,185,207,.30); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(13,185,207,.42); transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); box-shadow: var(--shadow-1); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-danger { background: linear-gradient(135deg, #f0565b, #d13438); color: #fff; box-shadow: 0 3px 10px rgba(229,72,77,.3); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: #3c5361; }
input, select, textarea {
  border: 1.5px solid var(--border); border-radius: 11px; padding: 10px 13px;
  font-size: 13.5px; font-family: inherit; background: #fff; color: var(--text); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,185,207,.15);
}
textarea { resize: vertical; min-height: 70px; }
.req::after { content: " *"; color: var(--danger); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .spacer { flex: 1; }
.toolbar input[type="search"], .toolbar select { width: auto; min-width: 190px; }

table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 12px 16px; background: #f7fafc; border-bottom: 1px solid var(--border); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid #f0f5f8; font-size: 13.5px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: #f4fbfc; }
.tbl .clickable { cursor: pointer; }
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.b-teal { background: var(--primary-light); color: var(--primary-dark); }
.b-blue { background: #e3effe; color: #1d5bd8; }
.b-yellow { background: #fdf3d6; color: #a16207; }
.b-green { background: #ddf7e4; color: #15803d; }
.b-red { background: #fee5e5; color: #c22f34; }
.b-gray { background: #eef2f6; color: #52667a; }
.b-purple { background: #efe9fe; color: #6d28d9; }

.empty {
  text-align: center; padding: 56px 20px; color: var(--muted);
  background: rgba(255,255,255,.7); border: 1.5px dashed #cfdde4; border-radius: var(--radius);
}
.empty .ico { font-size: 44px; display: block; margin-bottom: 12px; }
.empty p { margin-bottom: 16px; }

/* skeleton */
.skel { background: linear-gradient(90deg,#eaf1f5 25%,#f7fafc 50%,#eaf1f5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-row { display: flex; gap: 14px; padding: 13px 16px; background: #fff; border-bottom: 1px solid #f0f5f8; }
.skel-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.skel-row:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.skel-row .skel { flex: 1; }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(7, 30, 38, .5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; z-index: 100;
  padding: 30px 16px; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 20px; width: 100%; max-width: 640px;
  box-shadow: 0 24px 80px rgba(2, 20, 26, .35);
  animation: pop .18s cubic-bezier(.2,.9,.3,1.15);
}
.modal.modal-lg { max-width: 880px; }
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: .4; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; }
.modal-close { background: #f0f5f8; border: none; font-size: 15px; cursor: pointer; color: var(--muted); line-height: 1; width: 32px; height: 32px; border-radius: 50%; transition: .15s; }
.modal-close:hover { background: #fee5e5; color: var(--danger); }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* grid de formulário */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 13px; }
.fgrid .span2 { grid-column: span 2; }
.fgrid .span-full { grid-column: 1 / -1; }
.fsection { margin-bottom: 20px; }
.fsection > h4 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary-dark); margin-bottom: 12px; padding-bottom: 7px;
  border-bottom: 2px solid var(--primary-light);
}

/* aviso de sessão prestes a expirar (barra fixa — nunca um modal, para não
   fechar formulários abertos e fazer o usuário perder o que digitou) */
#aviso-sessao {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: linear-gradient(135deg, #b45309, #92400e); color: #fff;
  padding: 12px 20px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); animation: descer .25s ease-out;
}
@keyframes descer { from { transform: translateY(-100%); } }
#aviso-sessao b { font-variant-numeric: tabular-nums; }
#aviso-sessao .btn-primary { background: #fff; color: #92400e; box-shadow: none; }

/* toast */
#toast-root { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #10222b; color: #fff; padding: 13px 20px; border-radius: 14px;
  font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  animation: slidein .25s cubic-bezier(.2,.9,.3,1.2); max-width: 380px;
  border-left: 4px solid var(--primary);
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.toast.err { border-left-color: #ff7b7f; }
.toast.ok { border-left-color: #4ade80; }

/* tabs */
.tabs { display: flex; gap: 6px; background: rgba(255,255,255,.8); border: 1px solid var(--border); border-radius: 14px; padding: 5px; margin-bottom: 20px; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.tabs button {
  background: none; border: none; padding: 9px 16px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-radius: 10px; font-family: inherit;
  transition: .15s;
}
.tabs button:hover { color: var(--primary-dark); }
.tabs button.active { color: #fff; background: var(--primary-grad); box-shadow: 0 3px 10px rgba(13,185,207,.3); }

/* cards grid (vagas, dashboard) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.vaga-card { cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.vaga-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-2); }
.vaga-card h4 { margin-bottom: 8px; }
.vaga-card .meta { color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }

/* visualizador de documentos (PDF/imagem) */
.visualizador { width: 100%; height: 70vh; border: 1px solid var(--border); border-radius: 12px; background: #f7fafc; }
.visualizador-img { text-align: center; }
.visualizador-img img { max-width: 100%; max-height: 70vh; border-radius: 12px; box-shadow: var(--shadow-1); }

/* parecer da diretoria */
.parecer-box { border: 1.5px solid var(--primary); border-radius: 14px; padding: 18px; background: var(--primary-light); margin-top: 16px; }
.parecer-box h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-dark); margin-bottom: 12px; }
.parecer-registrado { background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--border); }
.decisao-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 13px; }
.d-efetivar { background: #ddf7e4; color: #15803d; }
.d-prorrogar { background: #fdf3d6; color: #a16207; }
.d-demitir { background: #fee5e5; color: #b91c1c; }

/* cabeçalho e busca do pipeline */
.pipeline-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pipeline-head h3 { font-size: 17px; }
.pipeline-busca { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.kb-busca-lista { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.kb-busca-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 13px;
  background: #f7fafc; border: 1px solid var(--border); border-radius: 10px;
}
.kb-busca-item b { display: block; font-size: 13px; }
.kb-busca-item .stat-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-busca-vazio { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.vaga-card-acoes { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.vaga-card-acoes .badge { margin-right: auto; }

/* select com incluir/editar/excluir */
.select-gerenciavel { display: flex; gap: 6px; align-items: stretch; }
.select-gerenciavel select { flex: 1; min-width: 0; }
.select-gerenciavel .sg-btn {
  border: 1.5px solid var(--border); background: #fff; border-radius: 10px;
  width: 34px; flex-shrink: 0; cursor: pointer; font-size: 13px; color: var(--muted);
  transition: .15s; font-family: inherit;
}
.select-gerenciavel .sg-btn:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); }
.select-gerenciavel .sg-btn.sg-del:hover { border-color: var(--danger); color: var(--danger); background: #fee5e5; }
.sg-editor {
  margin-top: 8px; padding: 14px; border: 1.5px solid var(--primary);
  border-radius: 12px; background: var(--primary-light);
}
.sg-editor h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-dark); margin-bottom: 10px; }
.sg-editor .sg-acoes { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.sg-editor label { background: transparent; }

/* editor de etapas */
.etapa-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.etapa-row input { flex: 1; }
.etapa-drag {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--primary-light);
  color: var(--primary-dark); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* kanban */
#kanban-board { display: flex; gap: 16px; overflow-x: auto; align-items: flex-start; padding-bottom: 12px; }
.kb-col { background: rgba(255,255,255,.65); border: 1px solid var(--border); border-radius: var(--radius); width: 268px; flex-shrink: 0; backdrop-filter: blur(6px); }
.kb-col-head { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--border); }
.kb-col-head .cnt { background: var(--primary-light); color: var(--primary-dark); border-radius: 99px; padding: 2px 9px; font-size: 11px; font-weight: 700; }
.kb-cards { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.kb-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  cursor: grab; box-shadow: var(--shadow-1); transition: transform .12s, box-shadow .12s;
}
.kb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.kb-card b { display: block; font-size: 13px; margin-bottom: 2px; }
.kb-card span { font-size: 11.5px; color: var(--muted); display: block; }
.kb-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 12px 0; }
.kb-ghost { opacity: .35; transform: rotate(2deg); }

/* ===== FUNIL DE VAGAS ===== */
.funil-status-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.fs-card {
  flex: 1; min-width: 122px; background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 14px 16px; cursor: pointer; font-family: inherit;
  text-align: left; transition: .15s; box-shadow: var(--shadow-1);
}
.fs-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.fs-card.ativo { border-color: var(--primary); background: var(--primary-light); }
.fs-card b { display: block; font-size: 26px; font-weight: 800; color: var(--primary-dark); line-height: 1.1; }
.fs-card span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tbl tr.linha-sel { background: var(--primary-light) !important; }

.funil { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.funil-faixa-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.funil-faixa {
  height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; color: #fff; font-weight: 700; transition: width .35s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 3px 12px rgba(13,40,51,.12); min-width: 200px;
}
.funil-faixa .ff-nome { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.funil-faixa .ff-num { font-size: 20px; font-weight: 800; margin-left: 14px; }
.funil-meta { font-size: 12px; color: var(--muted); }
.funil-meta b { color: var(--primary-dark); }
.funil-passo { font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.funil-saida {
  margin-top: 12px; font-size: 12.5px; font-weight: 600; color: #b91c1c;
  background: #fee5e5; border: 1px solid #fecaca; border-radius: 10px; padding: 8px 16px;
}

/* pipeline de acompanhamento da vaga */
.vaga-pipeline { display: flex; align-items: center; gap: 6px; margin: 16px 0 6px; flex-wrap: wrap; }
.vp-step { display: flex; align-items: center; gap: 8px; }
.vp-step b { font-size: 12px; display: block; color: var(--muted); }
.vp-step small { display: block; font-size: 10.5px; color: var(--muted); }
.vp-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: #eef2f6; color: var(--muted); border: 1.5px solid var(--border);
}
.vp-step.feito .vp-dot { background: var(--primary-grad); color: #fff; border-color: transparent; }
.vp-step.feito b { color: var(--text); }
.vp-step.atual .vp-dot { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); }
.vp-step.atual b { color: var(--primary-dark); }
.vp-linha { flex: 1; min-width: 14px; height: 2px; background: var(--border); border-radius: 2px; }

/* avaliação */
.q-row { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: center; padding: 13px 18px; background: #fff; border-bottom: 1px solid #f0f5f8; }
.q-row:hover { background: #f4fbfc; }
.q-row .q-txt b { color: var(--primary-dark); margin-right: 6px; }
.q-row .q-txt small { display: block; color: var(--muted); margin-top: 2px; }
.q-opts { display: flex; gap: 7px; justify-content: flex-end; }
.q-opts label {
  flex-direction: row; align-items: center; gap: 4px; font-weight: 600; font-size: 12.5px;
  cursor: pointer; border: 1.5px solid var(--border); border-radius: 10px; padding: 7px 12px;
  transition: .15s;
}
.q-opts label:hover { border-color: var(--primary); }
.q-opts label:has(input:checked) { background: var(--primary-grad); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(13,185,207,.3); }
.q-opts input { width: auto; accent-color: var(--primary-dark); }
.q-group-head { background: linear-gradient(90deg, var(--primary-light), rgba(224,245,248,.35)); color: var(--primary-dark); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; padding: 10px 18px; }
.aval-score-bar {
  position: sticky; bottom: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-top: 2px solid var(--primary); padding: 14px 22px;
  display: flex; align-items: center; gap: 20px; justify-content: flex-end;
  box-shadow: 0 -6px 20px rgba(13, 40, 51, .08);
}
.aval-score-bar b { font-size: 18px; color: var(--primary-dark); }

/* dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dash-grid .card h4 { font-size: 13px; margin-bottom: 14px; color: #3c5361; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }
.dash-grid .card { min-height: 120px; }
.dash-full { grid-column: 1 / -1; }
.stat-big { font-size: 34px; font-weight: 800; background: var(--primary-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-sub { color: var(--muted); font-size: 12.5px; }
.mini-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-cards .mc { flex: 1; min-width: 110px; background: #f7fafc; border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; transition: .15s; }
.mini-cards .mc:hover { border-color: var(--primary); box-shadow: var(--shadow-1); }
.mini-cards .mc b { display: block; font-size: 23px; }
.mini-cards .mc span { font-size: 11.5px; color: var(--muted); }
.chart-box { position: relative; height: 240px; }

/* perfil colaborador */
.perfil-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-1); }
.perfil-foto {
  width: 68px; height: 68px; border-radius: 22px;
  background: var(--primary-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(13,185,207,.35);
}
.perfil-foto img { width: 100%; height: 100%; object-fit: cover; }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 13px 22px; }
.dl div b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }

/* linhas dinâmicas (dependentes etc.) */
.dyn-row { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.dyn-row-3 { grid-template-columns: 2fr 1.2fr 1fr auto; }
.dyn-row-form { grid-template-columns: 1.6fr 1.6fr 1.3fr 1fr 1fr auto; }

.import-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.import-cards .ic {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 16px 12px; text-align: center;
  cursor: pointer; font-weight: 600; font-size: 13px; transition: .15s; background: #fff;
}
.import-cards .ic:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.import-cards .ic.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.import-cards .ic .ico { font-size: 24px; display: block; margin-bottom: 6px; }

.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-list .fi { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-size: 13px; box-shadow: var(--shadow-1); }
.file-list .fi .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.alert { border-radius: 12px; padding: 13px 16px; font-size: 13.5px; margin-bottom: 12px; }
.alert-red { background: #fee5e5; color: #991b1b; border: 1px solid #fecaca; }
.alert-yellow { background: #fdf3d6; color: #92400e; border: 1px solid #fde68a; }
.alert-green { background: #ddf7e4; color: #166534; border: 1px solid #bbf7d0; }
.alert-blue { background: #e3effe; color: #1e40af; border: 1px solid #bfdbfe; }

@media (max-width: 900px) {
  #app { flex-direction: column; }
  #sidebar { width: 100%; height: auto; position: static; }
  #side-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-grid { grid-template-columns: 1fr; }
  .q-row { grid-template-columns: 1fr; }
  .q-opts { justify-content: flex-start; }
  .dyn-row, .dyn-row-3, .dyn-row-form { grid-template-columns: 1fr 1fr; }
}

/* ===== Modo consulta (perfil Gestor): somente leitura, sem extração de dados ===== */
body.modo-consulta #main, body.modo-consulta .modal-box { user-select: none; -webkit-user-select: none; }
body.modo-consulta input, body.modo-consulta textarea { user-select: text; -webkit-user-select: text; }

#marca-dagua {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden;
  display: flex; flex-wrap: wrap; gap: 70px 90px; align-content: flex-start;
  transform: rotate(-24deg) scale(1.6); transform-origin: center;
}
#marca-dagua span { font-size: 12px; font-weight: 600; color: #0f3b45; opacity: .055; white-space: nowrap; letter-spacing: .04em; }

/* impressão e "salvar como PDF" ficam sem conteúdo para este perfil */
@media print {
  body.modo-consulta #app, body.modo-consulta #modal-root { display: none !important; }
  body.modo-consulta::after {
    content: "Impressão não autorizada — perfil Gestor. Solicite o documento ao RH.";
    display: block; padding: 40mm 20mm; font: 600 14pt Inter, sans-serif; text-align: center; color: #991b1b;
  }
}

/* pipeline de aprovação da vaga — etapa recusada */
.vp-step.recusado .vp-dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.aprov-etapas { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
