/* =====================================================================
   Allyada RH — tema (inspirado no layout Workbox)
   ===================================================================== */
:root {
  --brand: #2E2A6E;
  --brand-2: #3B4FD8;
  --brand-3: #1E2A78;
  --accent: #F5B700;
  --teal: #14B8A6;
  --bg: #F3F5FB;
  --surface: #FFFFFF;
  --border: #E4E7F0;
  --text: #1F2433;
  --muted: #6B7280;
  --sidebar-w: 248px;
  --topbar-h: 58px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.06);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 14px;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 1030;
  background: linear-gradient(90deg, var(--brand-3), var(--brand) 45%, var(--brand-2));
  color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  box-shadow: 0 2px 10px rgba(30,42,120,.25);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; white-space: nowrap; }
.topbar .brand img { height: 38px; width: 38px; }
.topbar .brand small { display: block; font-size: 10px; font-weight: 500; opacity: .75; letter-spacing: .04em; }
.topbar .btn-icon { color: #fff; background: rgba(255,255,255,.12); border: 0; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.topbar .btn-icon:hover { background: rgba(255,255,255,.22); }
.topbar .badge-dot { position: absolute; top: -4px; right: -4px; background: #EF4444; color: #fff; font-size: 10px; border-radius: 10px; padding: 1px 5px; font-weight: 700; }
.topbar .empresa-select { max-width: 260px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; font-size: 13px; }
.topbar .empresa-select option { color: var(--text); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; top: var(--topbar-h); bottom: 0; left: 0; width: var(--sidebar-w); z-index: 1020;
  background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; padding-bottom: 24px;
  transition: transform .25s ease;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #D5D9E6; border-radius: 6px; }
.sidebar .user-box { text-align: center; padding: 18px 12px 14px; border-bottom: 1px solid var(--border); }
.sidebar .avatar { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-size: 18px; }
.sidebar .user-box .nome { font-weight: 700; }
.sidebar .user-box .perfil { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.menu-group { margin: 6px 10px 0; }
.menu-group > button {
  width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: #EEF1FB; color: var(--brand);
  font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; border-radius: 10px; padding: 9px 12px; margin-top: 8px;
}
.menu-group > button .bi-chevron-down { margin-left: auto; transition: transform .2s; }
.menu-group > button.collapsed .bi-chevron-down { transform: rotate(-90deg); }
.menu-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 2px 0; border-radius: 10px; color: #374151; font-size: 13.5px;
}
.menu-link i { font-size: 15px; color: #6B7280; width: 18px; text-align: center; }
.menu-link:hover { background: #F3F5FB; color: var(--brand); }
.menu-link.active { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 4px 10px rgba(59,79,216,.3); }
.menu-link.active i { color: #fff; }
.menu-top { margin: 10px 10px 0; }

/* ---------- Conteúdo ---------- */
.main { margin-left: var(--sidebar-w); padding: calc(var(--topbar-h) + 20px) 22px 96px; min-height: 100vh; }
.page-head {
  border-radius: 18px; padding: 20px 24px; color: #fff; margin-bottom: 18px; position: relative; overflow: hidden;
  background: linear-gradient(110deg, var(--brand-3), var(--brand) 50%, var(--brand-2));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.page-head::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.page-head h1 { font-size: 21px; font-weight: 700; margin: 0; position: relative; z-index: 1; }
.page-head p { margin: 4px 0 0; opacity: .85; position: relative; z-index: 1; }
.page-head .acoes { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; font-weight: 600; }
.btn-glass:hover { background: rgba(255,255,255,.25); color: #fff; }

.card-x { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-x > .card-h { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-x > .card-h i { color: var(--brand-2); }
.card-x > .card-b { padding: 16px 18px; }

/* KPIs */
.kpi { border-radius: 16px; padding: 18px 20px; color: #fff; position: relative; overflow: hidden; min-height: 112px; display: block; }
.kpi:hover { color: #fff; transform: translateY(-1px); }
.kpi .t { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; opacity: .9; }
.kpi .v { font-size: 30px; font-weight: 800; line-height: 1.2; margin-top: 4px; }
.kpi .s { font-size: 12.5px; opacity: .9; }
.kpi i.big { position: absolute; right: 16px; top: 18px; font-size: 40px; opacity: .25; }
.kpi.k1 { background: linear-gradient(135deg, #1E2A78, #3B4FD8); }
.kpi.k2 { background: linear-gradient(135deg, #059669, #10B981); }
.kpi.k3 { background: linear-gradient(135deg, #DC2626, #F05252); }
.kpi.k4 { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.kpi.k5 { background: linear-gradient(135deg, #0E7490, #14B8A6); }
.kpi.k6 { background: linear-gradient(135deg, #B45309, #F5B700); }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); height: 100%; }
.mini .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.mini .v { font-size: 19px; font-weight: 800; line-height: 1; }
.mini .l { font-size: 10.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .04em; margin-top: 3px; }

/* ---------- Tabelas ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.toolbar .form-control, .toolbar .form-select { border-radius: 10px; font-size: 13px; }
.toolbar .busca { flex: 1 1 220px; min-width: 160px; }
.table-wrap { max-height: 62vh; overflow: auto; }
.table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: #CBD2E3; border-radius: 8px; }
.tbl { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl thead th {
  position: sticky; top: 0; z-index: 2; background: #F7F8FC; color: #4B5563; font-size: 11px; text-transform: uppercase;
  letter-spacing: .05em; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl tbody td { padding: 9px 12px; border-bottom: 1px solid #EEF0F6; vertical-align: middle; }
.tbl tbody tr:hover td { background: #F9FAFE; }
.tbl .acoes-col { white-space: nowrap; text-align: right; width: 1%; }
.btn-act { border: 1px solid var(--border); background: #fff; border-radius: 8px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: #4B5563; padding: 0; }
.btn-act:hover { background: #EEF1FB; color: var(--brand); }
.btn-act.danger:hover { background: #FEE2E2; color: #DC2626; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.tbl-foot .pagination { margin: 0; }
.pagination .page-link { border-radius: 8px !important; margin: 0 2px; font-size: 12.5px; color: var(--brand); }
.pagination .active .page-link { background: var(--brand-2); border-color: var(--brand-2); }
.vazio { text-align: center; color: var(--muted); padding: 34px 10px; }
.vazio i { font-size: 34px; display: block; margin-bottom: 6px; opacity: .5; }

/* Badges de status */
.st { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: #EEF1FB; color: var(--brand); }
.st-verde { background: #DCFCE7; color: #166534; }
.st-vermelho { background: #FEE2E2; color: #B91C1C; }
.st-amarelo { background: #FEF3C7; color: #92400E; }
.st-cinza { background: #F3F4F6; color: #4B5563; }
.st-roxo { background: #EDE9FE; color: #5B21B6; }
.st-azul { background: #DBEAFE; color: #1E40AF; }

/* Formulários */
.form-label { font-weight: 600; font-size: 12.5px; color: #374151; margin-bottom: 4px; }
.form-control, .form-select { border-radius: 10px; border-color: #D9DEEA; font-size: 13.5px; }
.form-control:focus, .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 .2rem rgba(59,79,216,.15); }
.req::after { content: " *"; color: #DC2626; }
.btn-primary { background: linear-gradient(90deg, var(--brand), var(--brand-2)); border: 0; border-radius: 10px; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline-primary { border-color: var(--brand-2); color: var(--brand-2); border-radius: 10px; font-weight: 600; }
.btn-outline-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-light { border-radius: 10px; border: 1px solid var(--border); font-weight: 600; }
.btn { border-radius: 10px; }

/* Kanban */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.kanban-col { background: #EEF1F8; border-radius: 14px; min-width: 250px; width: 250px; flex-shrink: 0; display: flex; flex-direction: column; max-height: 70vh; }
.kanban-col .kh { padding: 10px 12px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; }
.kanban-col .kb { padding: 0 8px 10px; overflow-y: auto; min-height: 60px; flex: 1; }
.kanban-col.over { outline: 2px dashed var(--brand-2); }
.kcard { background: #fff; border-radius: 10px; padding: 10px 11px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); cursor: grab; border-left: 4px solid var(--brand-2); }
.kcard .n { font-weight: 700; font-size: 13px; }
.kcard .m { font-size: 11.5px; color: var(--muted); }
.score { display: inline-block; font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 6px; }

/* Toasts / modais */
.toast-area { position: fixed; top: calc(var(--topbar-h) + 12px); right: 14px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 28px)); }
.toast-x { background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(16,24,40,.18); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; border-left: 5px solid var(--brand-2); animation: tin .25s ease; }
.toast-x.ok { border-color: #10B981; } .toast-x.erro { border-color: #EF4444; } .toast-x.aviso { border-color: #F59E0B; }
.toast-x i { font-size: 20px; }
.toast-x.ok i { color: #10B981; } .toast-x.erro i { color: #EF4444; } .toast-x.aviso i { color: #F59E0B; } .toast-x.info i { color: var(--brand-2); }
.toast-x .tt { font-weight: 700; font-size: 13px; } .toast-x .tm { font-size: 12.5px; color: #4B5563; }
.toast-x .x { margin-left: auto; border: 0; background: none; color: #9CA3AF; }
@keyframes tin { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.modal-content { border-radius: 16px; border: 0; }
.modal-header { border-bottom: 1px solid var(--border); }
.modal-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 10px; }

/* Assistente (BrainBot-style) */
.assist-fab { position: fixed; right: 18px; bottom: 18px; z-index: 1040; width: 56px; height: 56px; border-radius: 50%; border: 0; color: #fff; font-size: 24px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 20px rgba(59,79,216,.4); }
.assist-pop { position: fixed; right: 18px; bottom: 86px; z-index: 1040; width: min(330px, calc(100vw - 36px)); background: #fff; border-radius: 16px; box-shadow: 0 12px 34px rgba(16,24,40,.22); padding: 14px; display: none; }
.assist-pop.show { display: block; animation: tin .2s ease; }

.overlay { display: none; }
.detalhe dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.detalhe dd { margin-bottom: 12px; font-size: 14px; white-space: pre-line; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; border-left: 2px solid #E5E8F2; margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-2); border: 2px solid #fff; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; background: #F3F5FB; border: 1px solid var(--border); font-size: 12px; }
.text-muted-2 { color: var(--muted); }
.login-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(130deg, var(--brand-3), var(--brand) 50%, var(--brand-2)); }
.login-card { width: 100%; max-width: 410px; background: #fff; border-radius: 22px; padding: 30px 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.25); }
  body.menu-aberto .sidebar { transform: none; }
  body.menu-aberto .overlay { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(15,23,42,.45); z-index: 1015; }
  .main { margin-left: 0; padding: calc(var(--topbar-h) + 14px) 12px 90px; }
  .topbar .brand .txt { display: none; }
}
@media (max-width: 767.98px) {
  .page-head { padding: 16px; border-radius: 14px; }
  .page-head h1 { font-size: 18px; }
  .kpi .v { font-size: 24px; }
  .table-wrap { max-height: none; overflow: visible; }
  /* tabela vira cartões em telas estreitas */
  .tbl.resp thead { display: none; }
  .tbl.resp, .tbl.resp tbody, .tbl.resp tr, .tbl.resp td { display: block; width: 100%; }
  .tbl.resp tr { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin: 10px 0; padding: 6px 10px; box-shadow: var(--shadow); }
  .tbl.resp tbody td { border: 0; padding: 6px 2px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl.resp tbody td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase; text-align: left; flex-shrink: 0; max-width: 45%; }
  .tbl.resp tbody td.acoes-col { justify-content: flex-end; border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 8px; }
  .tbl.resp tbody td.acoes-col::before { content: ""; }
  .tbl.resp tbody tr:hover td { background: transparent; }
  .table-card { background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .table-card .toolbar { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
  .table-card .tbl-foot { border: 0; justify-content: center; }
  .topbar .empresa-select { max-width: 130px; }
}

/* Espelho de ponto compacto (inclusive no celular) */
.espelho { overflow-x: auto; }
.espelho .tbl td, .espelho .tbl th { padding: 7px 8px; }
@media (max-width: 767.98px) {
  .table-wrap.espelho { max-height: none; }
  .espelho .chip { padding: 2px 6px; font-size: 11px; margin-bottom: 2px; }
  .espelho .tbl { font-size: 12px; }
}

/* =====================================================================
   v3 — Tipografia (Inter + Plus Jakarta Sans), listagens e modais
   ===================================================================== */
:root {
  --font-sans: 'InterV', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: 'JakartaV', 'InterV', 'Segoe UI', system-ui, sans-serif;
  --ink: #202637;
  --ink-2: #566077;
}
body { font-family: var(--font-sans); font-size: 13.5px; color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6, .kpi .v, .mini .v, .topbar .brand, .page-head h1, .modal-title, .fs-2, .fs-3, .display-5 { font-family: var(--font-display); letter-spacing: -.01em; }
.sidebar .user-box .nome, .kcard .n, .login-card h5 { font-family: var(--font-display); }
.page-head h1 { font-weight: 700; }
.kpi .v, .mini .v { font-variant-numeric: tabular-nums; }

/* ---------- Listagens ---------- */
.card-x { border-radius: 16px; }
.toolbar { padding: 12px 14px; gap: 8px; background: #FFFFFF; border-radius: 16px 16px 0 0; }
.toolbar .form-control, .toolbar .form-select { background: #F6F7FB; border-color: #E6E9F2; }
.toolbar .form-control:focus, .toolbar .form-select:focus { background: #fff; }
.toolbar .input-group-text { background: #F6F7FB !important; border-color: #E6E9F2; color: #8A92A6; border-right: 0; }
.toolbar .busca .form-control { border-left: 0; }
.tbl { font-size: 13px; }
.tbl thead th {
  background: #FFFFFF; color: #7A8299; font-size: 10.5px; font-weight: 600; letter-spacing: .07em;
  padding: 11px 14px; border-bottom: 1px solid #E9ECF4;
}
.tbl thead th a { color: inherit; }
.tbl tbody td { padding: 11px 14px; border-bottom: 1px solid #F1F3F9; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tbl tbody td:first-child, .tbl tbody td:first-child a { color: var(--ink); font-weight: 600; }
.tbl tbody tr:nth-child(even) td { background: #FBFCFE; }
.tbl tbody tr:hover td { background: #F3F6FE; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.st { font-size: 11px; font-weight: 600; letter-spacing: .01em; padding: 3px 10px; }
.btn-act { width: 32px; height: 32px; border-radius: 9px; border-color: #E6E9F2; color: #6B7488; }
.acoes-col .btn-act + .btn-act, .acoes-col form + a, .acoes-col a + form, .acoes-col form + form, .acoes-col a + a { margin-left: 2px; }
.tbl-foot { background: #FCFCFE; border-radius: 0 0 16px 16px; }
.score { font-variant-numeric: tabular-nums; }

/* ---------- Tela de login ---------- */
.lg-wrap { min-height: 100vh; display: flex; background: #F7F8FC; }
.lg-brand {
  flex: 1.15; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; padding: 44px 52px;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(59, 79, 216, .55), transparent 60%),
    radial-gradient(700px 480px at -15% 110%, rgba(245, 183, 0, .22), transparent 55%),
    linear-gradient(160deg, #141734, #232862 55%, #2E3A9E);
}
.lg-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, transparent 35%, #000 90%);
}
.lg-brand::after {
  content: ""; position: absolute; width: 560px; height: 560px; right: -150px; bottom: -170px; pointer-events: none;
  background: url('../../img/allyada-logo-branca.svg') no-repeat center / contain; opacity: .07;
}
.lg-marca { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.lg-marca img { width: 54px; height: 54px; }
.lg-marca strong { font-family: var(--font-display); font-size: 19px; display: block; line-height: 1.1; }
.lg-marca small { font-size: 11px; letter-spacing: .14em; opacity: .7; }
.lg-meio { position: relative; z-index: 1; max-width: 480px; }
.lg-meio h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.16; margin: 0 0 10px; }
.lg-meio h1 em { font-style: normal; color: #F5B700; }
.lg-meio > p { font-size: 15px; opacity: .82; margin-bottom: 26px; }
.lg-pilar { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.lg-pilar:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.lg-pilar i { font-size: 19px; color: #F5B700; margin-top: 1px; }
.lg-pilar strong { display: block; font-size: 14px; }
.lg-pilar span { font-size: 12.5px; opacity: .72; }
.lg-rodape { position: relative; z-index: 1; font-size: 11.5px; opacity: .6; }
.lg-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.lg-form-in { width: 100%; max-width: 390px; }
.lg-form-in h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.lg-form-in .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.lg-form-in .form-label { font-size: 12.5px; }
.lg-input { position: relative; }
.lg-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9AA1B4; font-size: 15px; }
.lg-input .form-control { height: 48px; padding-left: 42px; border-radius: 12px; background: #fff; border-color: #DFE3EE; font-size: 14px; }
.lg-input .form-control:focus { border-color: var(--brand-2); box-shadow: 0 0 0 .22rem rgba(59, 79, 216, .12); }
.lg-olho { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #9AA1B4; padding: 8px 10px; border-radius: 8px; }
.lg-olho:hover { color: var(--brand-2); }
.btn-entrar {
  width: 100%; height: 48px; border: 0; border-radius: 12px; color: #fff; font-weight: 700; font-size: 14.5px; font-family: var(--font-display);
  background: linear-gradient(95deg, #2E2A6E, #3B4FD8); box-shadow: 0 10px 22px rgba(46, 42, 110, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-entrar:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(46, 42, 110, .34); color: #fff; }
.lg-links { font-size: 13px; }
.lg-demo summary { cursor: pointer; color: var(--muted); font-size: 12px; list-style: none; text-align: center; }
.lg-demo summary::-webkit-details-marker { display: none; }
.lg-demo summary:hover { color: var(--brand-2); }
.lg-demo .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.lg-demo .chips button { border: 1px solid #E2E6F0; background: #fff; border-radius: 20px; font-size: 11.5px; padding: 4px 11px; color: #4B5563; }
.lg-demo .chips button:hover { border-color: var(--brand-2); color: var(--brand-2); background: #F3F6FF; }
@media (max-width: 991.98px) {
  .lg-wrap { flex-direction: column; }
  .lg-brand { flex: none; padding: 20px 22px 24px; }
  .lg-meio { display: none; }
  .lg-rodape { display: none; }
  .lg-form { padding: 28px 18px 60px; align-items: flex-start; }
}

/* ---------- Formulários em janela (modal) ---------- */
.modal-form .modal-content { border-radius: 18px; }
.modal-form .modal-header { background: linear-gradient(110deg, var(--brand-3), var(--brand) 55%, var(--brand-2)); color: #fff; border: 0; padding: 14px 20px; }
.modal-form .modal-header .btn-close { filter: invert(1); opacity: .8; }
.modal-form .modal-header small { opacity: .75; display: block; font-size: 12px; font-weight: 400; }
.modal-form .modal-body { padding: 0; }
.form-abas { padding: 10px 16px 0; border-bottom: 1px solid var(--border); display: flex; gap: 4px; flex-wrap: wrap; background: #FAFBFE; }
.form-abas button {
  border: 0; background: none; padding: 9px 13px 11px; font-size: 13px; font-weight: 600; color: #6B7488;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; white-space: nowrap;
}
.form-abas button:hover { color: var(--brand); background: #F1F3FB; }
.form-abas button.ativa { color: var(--brand-2); border-bottom-color: var(--brand-2); }
.form-abas button .err { display: inline-block; min-width: 17px; padding: 0 4px; border-radius: 9px; background: #DC2626; color: #fff; font-size: 10.5px; margin-left: 5px; }
.form-corpo { padding: 18px 20px; }
.form-rodape { display: flex; gap: 8px; justify-content: flex-end; padding: 13px 20px; border-top: 1px solid var(--border); background: #FCFCFE; border-radius: 0 0 18px 18px; }
.modal-form .tab-pane { display: none; }
.modal-form .tab-pane.show, .form-pagina .tab-pane.show { display: block; }
.form-pagina .tab-pane { display: none; }

/* =====================================================================
   v4 — Portal do candidato (vagas, login, cadastro e currículo)
   ===================================================================== */
.pt-hero {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: 46px 30px 54px; text-align: center;
  background:
    radial-gradient(700px 400px at 90% -20%, rgba(59, 79, 216, .6), transparent 60%),
    radial-gradient(600px 420px at 0% 120%, rgba(245, 183, 0, .22), transparent 55%),
    linear-gradient(150deg, #141734, #232862 55%, #2E3A9E);
}
.pt-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(to bottom, transparent, #000 70%); pointer-events: none; }
.pt-hero::after { content: ""; position: absolute; width: 380px; height: 380px; left: -110px; top: -90px; background: url('../../img/allyada-logo-branca.svg') no-repeat center / contain; opacity: .07; pointer-events: none; }
.pt-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; margin-bottom: 6px; position: relative; z-index: 1; }
.pt-hero h1 em { font-style: normal; color: #F5B700; }
.pt-hero p { opacity: .85; margin-bottom: 22px; position: relative; z-index: 1; }
.pt-busca { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; display: flex; gap: 8px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 16px 40px rgba(10, 14, 50, .35); flex-wrap: wrap; }
.pt-busca .form-control { border: 0; height: 44px; font-size: 14.5px; flex: 1 1 220px; box-shadow: none !important; }
.pt-busca .form-select { border: 0; height: 44px; max-width: 160px; background-color: #F4F6FB; border-radius: 10px; flex: 0 1 150px; }
.pt-busca .btn { height: 44px; border-radius: 10px; padding-inline: 22px; }
.pt-filtros { position: relative; z-index: 1; margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pt-filtros a { color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); border-radius: 20px; padding: 4px 14px; font-size: 12.5px; }
.pt-filtros a.on, .pt-filtros a:hover { background: #fff; color: var(--brand); border-color: #fff; }
.vg-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; height: 100%;
  display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.vg-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(24, 33, 95, .12); border-color: #C7D0F0; }
.vg-card .vg-topo { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.vg-card h3 { font-size: 16.5px; font-weight: 700; margin: 0; color: var(--ink); }
.vg-card .vg-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.vg-card .vg-meta i { color: var(--brand-2); margin-right: 4px; }
.vg-card .vg-desc { font-size: 13px; color: var(--ink-2); flex: 1; }
.vg-card .vg-rodape { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px dashed var(--border); padding-top: 12px; }
.vg-card .vg-salario { font-family: var(--font-display); font-weight: 700; color: var(--brand); }
.vg-card .vg-salario small { display: block; font-family: var(--font-sans); font-weight: 400; color: var(--muted); font-size: 11px; }
.pt-passos { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 26px 0 4px; }
.pt-passo { flex: 1 1 180px; max-width: 250px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; }
.pt-passo .ic { width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: #EEF1FB; color: var(--brand-2); font-size: 18px; }
.pt-passo strong { display: block; font-size: 13px; }
.pt-passo span { font-size: 12px; color: var(--muted); }

/* Login e cadastro do candidato */
.pt-auth { display: flex; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #fff; max-width: 880px; margin: 10px auto; }
.pt-auth-lado {
  flex: 0 0 320px; color: #fff; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(400px 300px at 110% -10%, rgba(59,79,216,.55), transparent 60%), linear-gradient(160deg, #161A3C, #262C6E 60%, #30409F);
}
.pt-auth-lado img { width: 74px; }
.pt-auth-lado h3 { font-size: 20px; font-weight: 700; }
.pt-auth-lado .it { display: flex; gap: 10px; font-size: 13px; opacity: .9; }
.pt-auth-lado .it i { color: #F5B700; }
.pt-auth-form { flex: 1; padding: 30px 28px; }
@media (max-width: 767.98px) { .pt-auth { flex-direction: column; } .pt-auth-lado { flex: none; padding: 20px 22px; } .pt-auth-lado .it { display: none; } }

/* Currículo do candidato */
.cv-progresso { background: linear-gradient(110deg, var(--brand-3), var(--brand) 55%, var(--brand-2)); color: #fff; border-radius: 18px; padding: 18px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cv-progresso .anel { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; background: conic-gradient(#F5B700 calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.cv-progresso .anel span { width: 56px; height: 56px; border-radius: 50%; background: rgba(20, 23, 52, .85); display: flex; align-items: center; justify-content: center; }
.cv-secao { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.cv-secao > .cv-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #F8F9FD; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 13.5px; }
.cv-secao > .cv-h i { color: var(--brand-2); }
.cv-secao > .cv-b { padding: 14px 16px; }

/* =====================================================================
   v5 — Governança: abas de visão, quadro de demandas e calendário
   ===================================================================== */
.vista-abas { display: inline-flex; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; padding: 4px; gap: 4px; }
.vista-abas a { padding: 6px 16px; border-radius: 9px; font-weight: 600; font-size: 13px; color: #fff; }
.vista-abas a.on { background: #fff; color: var(--brand-2); box-shadow: 0 2px 8px rgba(10, 14, 50, .25); }
.kcard .kmeta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.kcard .kmeta .st { font-size: 10px; padding: 2px 8px; }
.kcard .kresp { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.kcard .kresp .mini-av { width: 20px; height: 20px; border-radius: 7px; background: #E3E8F8; color: var(--brand); font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.cal-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #7A8299; padding: 4px 0; }
.cal-dia { background: #fff; border: 1px solid var(--border); border-radius: 12px; min-height: 104px; padding: 7px 8px; }
.cal-dia.fora { background: #F6F7FB; opacity: .55; }
.cal-dia.hoje { border-color: var(--brand-2); box-shadow: 0 0 0 2px rgba(59, 79, 216, .15); }
.cal-num { font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-dia.hoje .cal-num { color: var(--brand-2); }
.cal-ev { display: block; font-size: 11px; line-height: 1.3; border-radius: 7px; padding: 3px 7px; margin-top: 4px; background: #EEF1FB; color: var(--brand); border-left: 3px solid var(--brand-2); overflow: hidden; }
.cal-ev strong { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.cal-ev:hover { background: #E2E8FB; color: var(--brand); }
.cal-ev.realizada { background: #E7F6EE; border-left-color: #10B981; color: #116B46; }
.cal-ev.cancelada { background: #F3F4F6; border-left-color: #9CA3AF; color: #6B7280; text-decoration: line-through; }
.cal-legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cal-legenda i { font-size: 10px; margin-right: 4px; }
@media (max-width: 767.98px) {
  .cal-grid { display: block; }
  .cal-dow { display: none; }
  .cal-dia { display: none; min-height: 0; margin-bottom: 8px; }
  .cal-dia.tem { display: block; }
  .cal-dia.fora.tem { display: none; }
  .cal-num::after { content: attr(data-rotulo); margin-left: 6px; font-weight: 500; color: var(--muted); }
}

/* =====================================================================
   v6 — Portal do Cliente (chrome próprio, navegação horizontal)
   ===================================================================== */
.corpo-cliente { background: var(--bg); }
.cl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; }

.cl-top { position: sticky; top: 0; z-index: 1030; background: var(--surface); box-shadow: var(--shadow); }
.cl-top > .cl-wrap { height: 64px; }
.cl-brand { display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 800; font-size: 17px; font-family: var(--font-display, inherit); white-space: nowrap; }
.cl-brand img { height: 40px; width: 40px; }
.cl-brand small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: var(--brand-2); }
.cl-empresa { align-items: center; background: #EEF1FB; color: var(--brand); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.cl-icone { color: var(--brand) !important; background: #EEF1FB !important; }
.cl-user { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 10px 4px 4px; font-weight: 600; font-size: 13px; color: var(--text); }
.cl-user .mini-av { width: 30px; height: 30px; font-size: 12px; }

.cl-nav { background: linear-gradient(90deg, var(--brand-3), var(--brand) 45%, var(--brand-2)); }
.cl-nav .cl-wrap { gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cl-nav .cl-wrap::-webkit-scrollbar { display: none; }
.cl-nav a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); font-weight: 600; font-size: 13px; padding: 11px 10px; border-bottom: 3px solid transparent; white-space: nowrap; }
.cl-nav a:hover { color: #fff; }
.cl-nav a.on { color: #fff; border-bottom-color: var(--accent); }
.cl-nav a .bi { font-size: 15px; }
.cl-badge { background: var(--accent); color: #3A2E00; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }

.cl-main { max-width: 1240px; margin: 0 auto; padding: 22px 16px 40px; }

/* Página inicial do cliente */
.cl-hero { background: linear-gradient(120deg, var(--brand-3), var(--brand) 55%, var(--brand-2)); color: #fff; border-radius: var(--radius); padding: 24px 24px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.cl-hero h1 { font-family: var(--font-display, inherit); font-weight: 800; font-size: 24px; margin: 0 0 4px; }
.cl-hero p { margin: 0 0 16px; opacity: .85; font-size: 13.5px; }
.cl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.cl-stats a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 10px 14px; color: #fff; display: block; transition: background .15s; }
.cl-stats a:hover { background: rgba(255,255,255,.18); color: #fff; }
.cl-stats strong { display: block; font-size: 22px; font-weight: 800; font-family: var(--font-display, inherit); line-height: 1.1; }
.cl-stats span { font-size: 11.5px; opacity: .85; }
.cl-stats a.alerta strong { color: var(--accent); }

.cl-aprov { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.cl-aprov + .cl-aprov { margin-top: 10px; }
.cl-aprov .ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: #EEF1FB; color: var(--brand-2); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.cl-aprov .tx { flex: 1 1 auto; min-width: 0; }
.cl-aprov .bt { display: flex; gap: 6px; flex: 0 0 auto; }
@media (max-width: 575px) {
  .cl-aprov { flex-wrap: wrap; }
  .cl-aprov .bt { width: 100%; justify-content: flex-end; }
}
@media (max-width: 575px) {
  .cl-linha { flex-wrap: wrap; }
  .cl-linha > .flex-grow-1 { flex-basis: 100%; }
}
.cl-data { flex: 0 0 44px; text-align: center; background: #EEF1FB; border-radius: 10px; padding: 4px 0; align-self: flex-start; }
.cl-data strong { display: block; font-size: 16px; color: var(--brand); line-height: 1.1; }
.cl-data span { font-size: 10px; text-transform: uppercase; font-weight: 700; color: var(--brand-2); }

/* =====================================================================
   v7 — Ficha de detalhes (show) e documentos anexos
   ===================================================================== */
.ficha-topo { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ficha-av { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 15px; background: linear-gradient(135deg, var(--brand-3), var(--brand-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; font-family: var(--font-display, inherit); }
.ficha-nome { font-family: var(--font-display, inherit); font-weight: 800; font-size: 19px; line-height: 1.25; color: var(--text); }
.ficha-sub { font-size: 12.5px; color: var(--muted); }
.ficha-abas { display: inline-flex; gap: 4px; background: #EEF1FB; padding: 4px; border-radius: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ficha-abas button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--muted); display: inline-flex; gap: 7px; align-items: center; }
.ficha-abas button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.ficha-abas .badge-n { background: var(--brand-2); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.ficha-sec { margin-bottom: 18px; }
.ficha-sec > h6 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--brand-2); margin: 0 0 4px; padding-bottom: 7px; border-bottom: 1px solid var(--border); }
.ficha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 32px; }
.fx { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px dashed #EDF0F7; font-size: 13.5px; min-width: 0; }
.fx .fl { color: var(--muted); flex: 0 0 auto; max-width: 46%; }
.fx .fv { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.fx.vazio .fv { color: #C6CBD8; font-weight: 400; }
.fx.longo { display: block; grid-column: 1 / -1; }
.fx.longo .fv { display: block; text-align: left; font-weight: 400; white-space: pre-wrap; background: #F8F9FD; border: 1px solid var(--border); padding: 10px 12px; border-radius: 10px; margin-top: 6px; }
.ficha-envio { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; background: #F8F9FD; border: 1px dashed var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
@media (max-width: 575px) { .ficha-envio { grid-template-columns: 1fr; } }
.ficha-doc { display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.ficha-doc + .ficha-doc { margin-top: 8px; }
.doc-ic { flex: 0 0 46px; height: 46px; border-radius: 10px; background: #EEF1FB; color: var(--brand-2); display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.doc-ic.pdf { background: #FEE2E2; color: #B91C1C; }
.doc-ic.img { background: #DCFCE7; color: #15803D; }
.ficha-corpo { padding: 20px 24px 24px; }
@media (max-width: 575px) { .ficha-corpo { padding: 14px 14px 18px; } }

/* =====================================================================
   v8 — Quadro de demandas: lateral com mini-calendário e atividades
   ===================================================================== */
.kb-area { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 16px; align-items: start; }
.kb-area > div:first-child { min-width: 0; overflow: hidden; }
@media (max-width: 1199px) { .kb-area { grid-template-columns: 1fr; } .kb-rail { order: 2; } }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mc-dow { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); padding: 2px 0; }
.mc-dia { position: relative; border: 0; background: none; border-radius: 8px; font-size: 12px; padding: 5px 0 9px; color: var(--text); line-height: 1; }
.mc-dia.fora { color: #C6CBD8; }
.mc-dia:disabled { cursor: default; }
.mc-dia.tem { background: #EEF1FB; font-weight: 700; cursor: pointer; }
.mc-dia.tem:hover { background: #E0E7FF; }
.mc-dia.tem i { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); }
.mc-dia.tem i.ab { background: #D97706; }
.mc-dia.hoje { outline: 1.5px solid var(--brand-2); outline-offset: -1.5px; }
.mc-dia.on { background: var(--brand-2) !important; color: #fff; }
.mc-dia.on i { background: #fff !important; }
.atv { display: flex; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.atv:hover { background: #F8F9FD; }
.atv-ic { flex: 0 0 28px; height: 28px; border-radius: 8px; background: #EEF1FB; color: var(--brand-2); display: flex; align-items: center; justify-content: center; font-size: 13px; margin-top: 2px; }
