/* ==========================================================================
   Banco de Talentos — complementa style.css (mesmas cores e tipografia)
   ========================================================================== */

[hidden] { display: none !important; }
.t-body { background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; }
.t-body main { flex: 1; }
.t-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.t-header .container { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.t-header img { width: 130px; height: 44px; object-fit: contain; }
.t-header__right { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text); }
.t-header__right a { color: var(--navy); font-weight: 600; }
.t-link { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: 14px; }

.demo-bar { background: #fff7d6; color: #6b5300; font-size: 13px; line-height: 18px; text-align: center; padding: 8px 16px; }
.demo-bar strong { font-weight: 700; }

.t-hero { background: var(--navy); color: #fff; padding: 56px 0 120px; position: relative; overflow: hidden; }
.t-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/bg-servicos.jpg") center / cover; opacity: .25; }
.t-hero .container { position: relative; }
.t-hero .eyebrow { font-size: 18px; letter-spacing: 2px; }
.t-hero h1 { margin-top: 8px; font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -.8px; }
.t-hero p { margin-top: 16px; max-width: 640px; font-size: 18px; line-height: 28px; color: var(--slate-light); }

.t-wrap { margin-top: -80px; position: relative; padding-bottom: 64px; }
.t-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }

.t-card { background: #fff; border: 1px solid var(--border); padding: 32px; }
.t-card + .t-card { margin-top: 24px; }
.t-card h2 { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--navy); }
.t-card h3 { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--navy); }
.t-card > p, .t-muted { color: var(--text); font-size: 15px; line-height: 24px; }
.t-muted { color: #6b7280; font-size: 14px; }

.t-steps { margin-top: 20px; display: grid; gap: 16px; counter-reset: passo; }
.t-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 22px; }
.t-steps li::before { counter-increment: passo; content: counter(passo); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--lime); color: var(--navy); font-weight: 700; }
.t-steps strong { display: block; color: var(--navy); }

/* Abas Entrar / Criar conta */
.t-tabs { display: flex; border-bottom: 1px solid var(--border); margin: -8px 0 24px; }
.t-tabs button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 8px; font-size: 16px; font-weight: 600; color: #6b7280; }
.t-tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--lime); }

/* Campos */
.t-form { display: grid; gap: 18px; }
.t-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.t-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.t-field label, .t-label { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.t-field label .opt { font-weight: 400; color: #6b7280; }
.t-field input, .t-field select, .t-field textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 22px; color: #191c1e;
  background: #fff; border: 1px solid var(--border); border-radius: 0; padding: 11px 14px; outline: none; transition: border-color .2s;
}
.t-field input:focus, .t-field select:focus, .t-field textarea:focus { border-color: var(--navy); }
.t-field textarea { min-height: 96px; resize: vertical; }
.t-field select { appearance: none; -webkit-appearance: none; background: #fff url("../img/ic-select.svg") right 8px center / 22px no-repeat; padding-right: 36px; }
.t-field .hint { margin-top: 6px; font-size: 13px; line-height: 18px; color: #6b7280; }
.t-field.invalid input, .t-field.invalid select, .t-field.invalid textarea { border-color: #c62828; }

.t-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 21px; color: var(--text); }
.t-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.t-check a { color: var(--navy); text-decoration: underline; }

.t-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t-chips label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); padding: 7px 12px; font-size: 14px; cursor: pointer; background: #fff; }
.t-chips input { accent-color: var(--navy); }
.t-chips label:has(input:checked) { border-color: var(--navy); background: rgba(0, 35, 71, .06); }

.t-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.t-btn-sec { background: #fff; border: 1px solid var(--navy); color: var(--navy); font-weight: 600; font-size: 14px; padding: 10px 18px; }
.t-btn-sec:hover { background: rgba(0, 35, 71, .05); }
.t-btn-danger { background: none; border: 1px solid #c62828; color: #c62828; font-weight: 600; font-size: 14px; padding: 10px 18px; }
.t-card .btn { padding: 14px 32px; font-size: 15px; letter-spacing: 1.2px; border-radius: 0; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.t-msg { font-size: 14px; line-height: 20px; padding: 12px 14px; border-left: 4px solid; display: none; }
.t-msg.show { display: block; }
.t-msg.ok { background: #edf7ee; border-color: #2e7d32; color: #1b5e20; }
.t-msg.err { background: #fdecec; border-color: #c62828; color: #8e1c1c; }
.t-msg.info { background: #eef3fa; border-color: var(--navy); color: var(--navy); }

/* Formulário do currículo */
.cv-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.cv-nav { position: sticky; top: 96px; background: #fff; border: 1px solid var(--border); padding: 12px 0; }
.cv-nav a { display: block; padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--text); border-left: 3px solid transparent; }
.cv-nav a:hover { color: var(--navy); border-color: var(--lime); }
.cv-nav .cv-progress { padding: 8px 20px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; font-size: 13px; color: #6b7280; }
.cv-nav .cv-progress strong { display: block; font-size: 22px; color: var(--navy); }
.cv-nav .bar-bg { height: 6px; background: var(--bg-gray); margin-top: 8px; }
.cv-nav .bar-fill { height: 100%; background: var(--lime); width: 0; transition: width .3s; }
.cv-section { scroll-margin-top: 96px; }
.cv-section > h2 { margin-bottom: 4px; }
.cv-section > .t-muted { margin-bottom: 20px; }

.rep { display: grid; gap: 14px; }
.rep-item { border: 1px solid var(--border); background: var(--bg-soft); padding: 40px 16px 16px; position: relative; }
.rep-item .rep-remove { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #c62828; font-size: 13px; font-weight: 600; }

/* Outras profissões: escolher na lista + etiquetas removíveis */
.t-addrow { display: flex; gap: 10px; }
.t-addrow select { flex: 1; min-width: 0; }
.t-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.t-tags:empty { display: none; }
.t-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 35, 71, .07); border: 1px solid rgba(0, 35, 71, .25); color: var(--navy); font-size: 14px; padding: 6px 6px 6px 12px; }
.t-tag button { background: none; border: 0; color: var(--navy); font-size: 18px; line-height: 1; padding: 0 4px; }

/* Bloco que só aparece para quem atua em offshore */
/* Profissão fora da lista */
.t-outra { border: 1px solid var(--navy); border-left: 4px solid var(--lime); background: #f5f8fc; padding: 18px; display: grid; gap: 14px; }
.t-outra__title { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--navy); }
.t-parecidas { margin-top: 8px; background: #fff; border: 1px solid var(--border); padding: 10px 12px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t-parecidas button { background: var(--lime); color: var(--navy); border: 0; font-weight: 700; font-size: 13px; padding: 5px 10px; cursor: pointer; }
.t-offshore {border: 1px solid var(--navy); border-left: 4px solid var(--lime); background: #f5f8fc; padding: 18px; display: grid; gap: 14px; }
.t-offshore__title { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--navy); }
.t-offshore .t-muted { margin-top: -8px; }
.rep-item .t-row, .rep-item .t-row-3 { gap: 12px; }
.rep-item .t-field { margin-bottom: 12px; }
.rep-item .t-field:last-child { margin-bottom: 0; }
.rep-add { justify-self: start; }

.save-bar {
  position: sticky; bottom: 0; z-index: 40; margin-top: 24px; background: #fff; border-top: 3px solid var(--lime);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.save-bar .t-muted { margin: 0; }

/* Validade das certificações */
.val { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 8px; white-space: nowrap; }
.val::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.val-valida { color: #1b5e20; background: #edf7ee; }
.val-vencendo { color: #8a5a00; background: #fff4dc; }
.val-vencida { color: #8e1c1c; background: #fdecec; }
.val-sem-validade { color: #4b5563; background: var(--bg-gray); }

/* ==========================================================================
   Painel RH
   ========================================================================== */
.rh-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rh-top h1 { font-size: 30px; line-height: 38px; color: var(--navy); }
.rh-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.rh-filters { background: #fff; border: 1px solid var(--border); padding: 20px; display: grid; gap: 16px; position: sticky; top: 96px; }
.rh-filters h2 { font-size: 16px; color: var(--navy); }
.rh-filters .t-field input, .rh-filters .t-field select { font-size: 14px; padding: 9px 12px; }

.rh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.rh-stat { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--lime); padding: 12px 16px; }
.rh-stat strong { display: block; font-size: 26px; line-height: 32px; color: var(--navy); }
.rh-stat span { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #6b7280; font-weight: 600; }

/* Passo 1: escolher o cargo */
.rh-passo { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--lime); padding: 24px; }
.rh-passo__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.rh-passo__head h2 { display: inline; font-size: 24px; line-height: 32px; color: var(--navy); vertical-align: middle; }
.rh-passo__head p { margin-top: 6px; }
.rh-passo__num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 10px; background: var(--lime); color: var(--navy); font-weight: 800; vertical-align: middle; }
.rh-passo__num--sm { width: 24px; height: 24px; font-size: 13px; margin-right: 6px; }
.rh-busca-cargo { flex: 1 1 280px; max-width: 380px; }
.rh-busca-cargo input { padding: 12px 14px; font-size: 15px; }
.rh-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px 24px; }
.rh-grupo h3 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #6b7280; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; display: flex; justify-content: space-between; }
.rh-grupo h3 span { color: var(--navy); }
.rh-cargos { display: grid; gap: 4px; }
.rh-cargo { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--bg-soft); border: 1px solid transparent; padding: 9px 12px; font-size: 14px; color: var(--navy); font-weight: 600; cursor: pointer; }
.rh-cargo:hover, .rh-cargo:focus-visible { border-color: var(--navy); background: #fff; }
.rh-cargo b { min-width: 28px; text-align: center; background: var(--lime); color: var(--navy); font-size: 13px; padding: 1px 8px; }
.rh-cargo--vazio { color: #6b7280; font-weight: 500; }
.rh-cargo--vazio b { background: var(--bg-gray); color: #6b7280; }
.rh-nada { padding: 16px 0; color: #6b7280; }
.rh-sugestoes { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.rh-sugestoes h3 { font-size: 18px; line-height: 26px; color: var(--navy); }
.rh-sugestoes > p.t-muted { margin: 4px 0 12px; max-width: 760px; }
.rh-sug-lista { display: grid; gap: 12px; }
.rh-sug { border: 1px solid var(--border); border-left: 4px solid var(--lime); background: var(--bg-soft); padding: 14px 16px; display: grid; gap: 10px; }
.rh-sug__topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rh-sug__nome { font-size: 16px; font-weight: 700; color: var(--navy); }
.rh-sug__meta { font-size: 13px; color: #6b7280; }
.rh-sug blockquote { margin: 0; padding: 6px 10px; background: #fff; border-left: 3px solid var(--border); font-size: 13px; line-height: 20px; color: var(--text); }
.rh-sug__acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-sug__acoes .t-btn-sec { padding: 7px 12px; font-size: 13px; }
.rh-sug__form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: #fff; border: 1px solid var(--border); padding: 12px; }
.rh-sug__form .t-field { flex: 1 1 200px; }
.rh-sug__form .t-field input, .rh-sug__form .t-field select { font-size: 14px; padding: 9px 12px; }
.rh-sug__form .btn { padding: 10px 18px; font-size: 13px; border-radius: 0; }
.rh-feedbacks { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.rh-feedbacks summary { cursor: pointer; font-size: 16px; font-weight: 700; color: var(--navy); }
.rh-feedbacks summary span { display: inline-block; margin-left: 6px; background: var(--lime); color: var(--navy); font-size: 12px; padding: 1px 8px; }
.rh-feedbacks > p { margin: 8px 0 10px; }
.rh-feedbacks ul { display: grid; gap: 8px; }
.rh-feedbacks li { background: var(--bg-soft); border-left: 3px solid var(--lime); padding: 8px 12px; font-size: 14px; line-height: 21px; }
.rh-feedbacks li small { display: block; color: #6b7280; font-size: 12px; margin-top: 2px; }
.rh-por-nome { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.rh-por-nome__form { display: flex; gap: 12px; align-items: flex-end; margin-top: 12px; max-width: 520px; }
.rh-por-nome__form .t-field { flex: 1; }
/* Passo 2: cargo escolhido */
.rh-escolhido { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--navy); color: #fff; padding: 16px 20px; margin-bottom: 16px; }
.rh-escolhido__rotulo { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--lime); font-weight: 700; }
.rh-escolhido strong { font-size: 22px; line-height: 30px; }
.rh-escolhido .t-btn-sec { border-color: #fff; }
.rh-mais { padding: 16px; text-align: center; border-top: 1px solid #eef0f2; }
@media (max-width: 720px) {
  .rh-passo { padding: 18px 16px; }
  .rh-grupos { grid-template-columns: 1fr; }
  .rh-por-nome__form { flex-direction: column; align-items: stretch; }
}

.rh-list { background: #fff; border: 1px solid var(--border); }
.rh-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); }
.rh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rh-table th { text-align: left; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #6b7280; padding: 10px 18px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.rh-table td { padding: 14px 18px; border-bottom: 1px solid #eef0f2; vertical-align: top; }
.rh-table tr.row { cursor: pointer; }
.rh-table tr.row:hover td { background: #f7f9fb; }
.rh-table .nome { font-weight: 600; color: var(--navy); }
.rh-table .sub { font-size: 13px; color: #6b7280; margin-top: 2px; }
.rh-empty { padding: 48px 24px; text-align: center; color: #6b7280; }

.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; text-transform: uppercase; letter-spacing: .5px; }
.st-novo { background: #e7f0ff; color: #1d4ed8; }
.st-em_analise { background: #fff4dc; color: #8a5a00; }
.st-entrevistado { background: #f1e8ff; color: #6b21a8; }
.st-contratado { background: #edf7ee; color: #1b5e20; }
.st-arquivado { background: var(--bg-gray); color: #4b5563; }

/* Ficha do candidato (gaveta lateral) */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 13, 33, .45); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: #fff; z-index: 160; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-bg.open { opacity: 1; visibility: visible; }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.drawer-head h2 { font-size: 24px; line-height: 30px; color: var(--navy); }
.drawer-close { background: none; border: 0; padding: 6px; color: var(--navy); }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 16px 24px; display: grid; gap: 12px; background: var(--bg-soft); }

.ficha h3 { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #6b7280; margin: 24px 0 10px; }
.ficha h3:first-child { margin-top: 0; }
.ficha dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.ficha dt { color: #6b7280; }
.ficha dd { margin: 0; color: #191c1e; }
.ficha .item { border-left: 3px solid var(--lime); padding: 4px 0 4px 12px; margin-bottom: 12px; font-size: 14px; line-height: 21px; }
.ficha .item strong { color: var(--navy); }
.ficha table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ficha td { padding: 8px 0; border-bottom: 1px solid #eef0f2; }

/* Impressão da ficha (Salvar como PDF) */
@media print {
  body.printing > *:not(.drawer) { display: none !important; }
  body.printing .drawer { position: static; transform: none; width: 100%; }
  body.printing .drawer-close, body.printing .drawer-foot, body.printing .no-print { display: none !important; }
  body.printing .drawer-body { overflow: visible; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .t-grid, .cv-layout, .rh-layout { grid-template-columns: 1fr; }
  .cv-nav, .rh-filters { position: static; }
  .cv-nav { display: none; }
  .rh-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .t-header__right .t-muted { display: none; }
  .t-hero { padding: 40px 0 104px; }
  .t-hero h1 { font-size: 30px; line-height: 36px; }
  .t-hero p { font-size: 16px; line-height: 24px; }
  .t-card { padding: 22px 18px; }
  .t-row, .t-row-3 { grid-template-columns: 1fr; }
  .t-addrow { flex-direction: column; }
  .save-bar { flex-direction: column; align-items: stretch; padding: 12px 16px; }
  .save-bar .btn { width: 100%; }
  .rh-table thead { display: none; }
  .rh-table tr.row { display: block; border-bottom: 1px solid #eef0f2; }
  .rh-table td { display: block; border: 0; padding: 6px 16px; }
  .rh-table td:first-child { padding-top: 14px; }
  .rh-table td:last-child { padding-bottom: 14px; }
  .ficha dl { grid-template-columns: 1fr; gap: 2px; }
  .ficha dd { margin-bottom: 8px; }
}
