:root{
    --bg: #eef3f8;
    --card: #ffffff;
    --text: #0f172a;
    --text-soft: #64748b;
    --line: #dbe5f0;
    --line-strong: #c7d3e3;
    --primary: #0f172a;
    --primary-2: #06b6d4;
    --success: #16a34a;
    --danger: #dc2626;
    --muted: #94a3b8;
    --warning: #d97706;
    --sidebar-width: 228px;
    --content-max: 1280px;
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, .05);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, .08);
}

*{ box-sizing:border-box; }
html, body{ margin:0; padding:0; }
body{
    min-height:100vh;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color:var(--text);
    background:linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
}
a{ text-decoration:none; }
img{ max-width:100%; display:block; }

.pagina-login,
.login{
    min-height:100vh;
    background:
        radial-gradient(circle at top right, rgba(6,182,212,.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(37,99,235,.18), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #111827 100%);
}

.login-wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.login-card,
.login-box{
    width:100%;
    max-width:460px;
    background:rgba(255,255,255,.98);
    border:1px solid rgba(255,255,255,.7);
    border-radius:28px;
    padding:36px;
    box-shadow:0 25px 70px rgba(0,0,0,.28);
}
.brand-topo{ text-align:center; margin-bottom:28px; }
.brand-badge,
.brand-logo-image-wrap{
    width:60px;
    height:60px;
    border-radius:18px;
    margin:0 auto 14px;
    flex-shrink:0;
}
.brand-badge{
    background:linear-gradient(135deg, var(--primary), var(--primary-2));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:800;
}
.brand-logo-image-wrap{
    background:#fff;
    padding:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.brand-logo-image{ width:100%; height:100%; object-fit:contain; border-radius:12px; }
.brand-topo h1{ margin:0 0 8px; font-size:28px; }
.brand-topo p{ margin:0; color:var(--text-soft); line-height:1.5; }

.campo{ margin-bottom:18px; }
.campo label{ display:block; margin-bottom:8px; font-size:14px; font-weight:700; color:#334155; }
.campo input,
.campo select,
.campo textarea,
.login-box input{
    width:100%;
    border:1px solid var(--line);
    border-radius:14px;
    padding:14px 16px;
    font-size:15px;
    outline:none;
    background:#fff;
    transition:.2s ease;
}
.campo textarea{ min-height:140px; resize:vertical; }
.campo input:focus,
.campo select:focus,
.campo textarea:focus,
.login-box input:focus{
    border-color:var(--primary-2);
    box-shadow:0 0 0 4px rgba(6,182,212,.12);
}

.btn,
.login-box button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:44px;
    border:none;
    border-radius:14px;
    padding:0 18px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:.2s ease;
}
.btn:hover,
.login-box button:hover{ transform:translateY(-1px); }
.btn-primario,
.login-box button{
    background:linear-gradient(135deg, var(--primary), var(--primary-2));
    color:#fff;
    box-shadow:0 12px 28px rgba(15,23,42,.18);
}
.btn-secundario{ background:#e7eef6; color:var(--text); }
.btn-outline{ background:#fff; color:var(--text); border:1px solid var(--line); }
.btn-full{ width:100%; }

.alerta{ padding:14px 16px; border-radius:16px; margin:0 0 20px; font-size:14px; font-weight:600; border:1px solid transparent; }
.alerta-erro{ background:#fee2e2; color:#991b1b; border-color:#fecaca; }
.alerta-sucesso{ background:#dcfce7; color:#166534; border-color:#bbf7d0; }
.alerta-info{ background:#e0f2fe; color:#075985; border-color:#bae6fd; }

.admin-body{ min-height:100vh; }
.admin-layout{ min-height:100vh; }
.sidebar{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    width:var(--sidebar-width);
    padding:22px 14px;
    display:flex;
    flex-direction:column;
    background:linear-gradient(180deg, #071223 0%, #09172f 100%);
    color:#fff;
    box-shadow:18px 0 40px rgba(15,23,42,.16);
    overflow-y:auto;
}
.sidebar-topo{ margin-bottom:24px; }
.sidebar-logo{
    display:flex;
    align-items:center;
    gap:12px;
    padding:8px 10px 18px;
    border-bottom:1px solid rgba(255,255,255,.08);
}
.sidebar-logo .brand-badge,
.sidebar-logo .brand-logo-image-wrap{ margin:0; width:56px; height:56px; }
.sidebar-logo-texto strong{ display:block; font-size:15px; line-height:1.2; }
.sidebar-logo-texto small{ display:block; margin-top:4px; color:#97a8c4; font-size:12px; }
.menu{ display:flex; flex-direction:column; gap:6px; }
.menu a{
    min-height:46px;
    display:flex;
    align-items:center;
    border-radius:14px;
    padding:0 14px;
    color:#dce7f7;
    font-size:14px;
    font-weight:600;
    transition:.2s ease;
}
.menu a:hover,
.menu a.ativo{ background:linear-gradient(90deg, rgba(255,255,255,.08), rgba(6,182,212,.16)); color:#fff; }
.menu a.menu-disabled{ opacity:.45; }
.menu a.menu-disabled:hover{ background:transparent; }

.admin-main{
    margin-left:var(--sidebar-width);
    min-height:100vh;
    width:calc(100% - var(--sidebar-width));
    display:flex;
}
.conteudo{ flex:1; display:flex; min-height:100vh; }
.conteudo-inner{
    width:100%;
    max-width:var(--content-max);
    margin:0 auto;
    padding:30px 32px 0;
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

.topbar{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
}
.page-eyebrow{ display:inline-block; margin-bottom:8px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--primary-2); }
.topbar h1{ margin:0 0 8px; font-size:42px; line-height:1.02; }
.topbar p{ margin:0; max-width:760px; color:var(--text-soft); font-size:17px; line-height:1.6; }
.topbar-user{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 14px;
    border-radius:18px;
    background:#fff;
    border:1px solid var(--line);
    box-shadow:var(--shadow-sm);
}
.user-avatar{
    width:44px;
    height:44px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, var(--primary), var(--primary-2));
    color:#fff;
    font-weight:800;
}
.user-box{ display:flex; flex-direction:column; min-width:120px; }
.user-box strong{ font-size:14px; }
.user-box small{ color:var(--text-soft); text-transform:capitalize; }

.hero-admin{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:22px;
    align-items:center;
    margin-bottom:24px;
    padding:28px 30px;
    border-radius:var(--radius-xl);
    background:linear-gradient(135deg, #0b1729 0%, #10243c 55%, #12506f 100%);
    color:#fff;
    box-shadow:var(--shadow-md);
}
.hero-kicker{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:0 14px;
    border-radius:999px;
    background:rgba(255,255,255,.09);
    border:1px solid rgba(255,255,255,.16);
    font-size:12px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.hero-admin h2{ margin:14px 0 12px; font-size:34px; line-height:1.1; }
.hero-admin p{ margin:0; max-width:760px; color:rgba(255,255,255,.86); font-size:15px; line-height:1.7; }
.hero-admin-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.hero-admin .btn-outline{ background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.18); }

.cards-grid{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:22px; margin-bottom:24px; }
.card-info,
.card-painel{
    background:rgba(255,255,255,.98);
    border:1px solid var(--line);
    border-radius:var(--radius-xl);
    box-shadow:var(--shadow-sm);
}
.card-info{ padding:22px; }
.card-info-topo{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.card-info span{ display:block; color:var(--text-soft); font-size:14px; font-weight:700; }
.card-info strong{ display:block; margin:0 0 10px; font-size:38px; line-height:1; }
.card-info small{ color:var(--text-soft); font-size:14px; line-height:1.55; }
.metric-dot{ width:12px; height:12px; border-radius:50%; background:linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow:0 0 0 6px rgba(6,182,212,.10); }

.painel-grid{ display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(320px, .95fr); gap:22px; margin-bottom:24px; }
.card-painel{ padding:26px; }
.card-header{ display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px; }
.card-header-space{ align-items:center; }
.card-header h2{ margin:0 0 6px; font-size:28px; line-height:1.15; }
.card-header p{ margin:0; color:var(--text-soft); line-height:1.65; }
.feature-list,
.quick-actions{ display:flex; flex-direction:column; gap:14px; }
.feature-item,
.quick-link{ display:block; padding:18px; border-radius:18px; border:1px solid var(--line); background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.feature-item strong,
.quick-link strong{ display:block; margin-bottom:6px; font-size:15px; }
.feature-item span,
.quick-link span{ color:var(--text-soft); font-size:14px; line-height:1.6; }
.quick-link{ color:var(--text); transition:.2s ease; }
.quick-link:hover{ transform:translateY(-1px); border-color:var(--line-strong); box-shadow:var(--shadow-sm); }
.quick-link-disabled{ opacity:.58; pointer-events:none; }

.table-wrap{ width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:18px; }
.tabela-padrao{ width:100%; min-width:900px; border-collapse:collapse; }
.tabela-padrao thead th{ padding:16px 18px; text-align:left; font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#475569; background:#f8fbfe; border-bottom:1px solid var(--line); }
.tabela-padrao tbody td{ padding:16px 18px; font-size:14px; border-bottom:1px solid #edf2f7; vertical-align:top; }
.tabela-padrao tbody tr:last-child td{ border-bottom:none; }
.tabela-padrao tbody tr:hover{ background:#fbfdff; }
.empty-state{ padding:28px 12px; text-align:center; }
.empty-state strong{ display:block; margin-bottom:8px; font-size:16px; }
.empty-state span{ color:var(--text-soft); line-height:1.6; }

.badge{ display:inline-flex; align-items:center; min-height:30px; padding:0 12px; border-radius:999px; font-size:12px; font-weight:800; }
.badge-success{ color:#166534; background:#dcfce7; }
.badge-muted{ color:#475569; background:#e2e8f0; }
.badge-danger{ color:#991b1b; background:#fee2e2; }

.acoes-inline{ display:flex; flex-wrap:wrap; gap:8px; }
.link-acao{ display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:0 14px; border-radius:12px; font-size:13px; font-weight:700; color:#0f172a; background:#eef4fa; border:1px solid #dbe6f2; }
.link-acao:hover{ background:#e2edf7; }
.link-danger{ color:#991b1b; background:#fff1f2; border-color:#fecdd3; }
.link-danger:hover{ background:#ffe4e6; }

.form-card{ max-width:980px; }
.form-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px; }
.campo-full{ grid-column:1 / -1; }
.form-actions{ display:flex; align-items:center; justify-content:flex-end; gap:12px; padding-top:6px; }

.admin-footer{ margin-top:auto; padding:0 0 28px; }
.admin-footer-inner{
    border-top:1px solid var(--line);
    padding:18px 4px 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    color:var(--text-soft);
    font-size:13px;
}
.admin-footer-left{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.admin-footer-left strong,
.admin-footer-right{ color:var(--text); font-weight:700; }

@media (max-width: 1220px){
    .cards-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .painel-grid{ grid-template-columns:1fr; }
}

@media (max-width: 980px){
    .admin-layout{ display:block; }
    .sidebar{ position:static; width:100%; height:auto; min-height:auto; box-shadow:none; }
    .admin-main{ margin-left:0; width:100%; }
    .conteudo-inner{ padding:22px 18px 0; }
    .topbar{ flex-direction:column; }
    .topbar-user{ width:100%; justify-content:flex-start; }
    .hero-admin{ grid-template-columns:1fr; padding:24px; }
    .cards-grid{ grid-template-columns:1fr; gap:16px; }
    .form-grid{ grid-template-columns:1fr; }
    .admin-footer-inner{ flex-direction:column; align-items:flex-start; }
}

.page-tools{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:20px;
}
.page-tools p{ margin:0; color:var(--text-soft); }
.stats-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:18px;
    margin-bottom:22px;
}
.stat-card{
    background:rgba(255,255,255,.98);
    border:1px solid var(--line);
    border-radius:18px;
    padding:18px 20px;
    box-shadow:var(--shadow-sm);
}
.stat-card span{ display:block; color:var(--text-soft); font-size:13px; font-weight:700; margin-bottom:8px; }
.stat-card strong{ display:block; font-size:30px; line-height:1; margin-bottom:8px; }
.stat-card small{ color:var(--text-soft); font-size:13px; line-height:1.5; }
.text-soft{ color:var(--text-soft); }
@media (max-width: 1220px){
    .stats-grid{ grid-template-columns:1fr; }
}

.page-tools-stack-mobile{
    align-items:flex-end;
}
.page-filters{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.page-search input,
.filter-select{
    min-height:44px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    padding:0 14px;
    font-size:14px;
    min-width:220px;
}
.token-box{
    display:flex;
    align-items:center;
    min-height:42px;
    padding:10px 12px;
    border-radius:14px;
    background:#f8fbff;
    border:1px solid var(--line);
    color:#334155;
    font-size:13px;
    line-height:1.45;
    word-break:break-all;
}
.badge-info{ color:#075985; background:#e0f2fe; }
.badge-warning{ color:#92400e; background:#fef3c7; }
.invite-link-panel{
    display:grid;
    grid-template-columns:220px minmax(0,1fr);
    gap:16px;
    align-items:center;
    padding:18px;
    border:1px solid var(--line);
    border-radius:18px;
    background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    margin-bottom:22px;
}
.invite-link-panel strong{ display:block; margin-bottom:6px; font-size:15px; }
.invite-link-panel p{ margin:0; color:var(--text-soft); line-height:1.55; }
.invite-link-box input,
.inline-input-action input{
    width:100%;
    min-height:46px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    padding:0 14px;
    font-size:14px;
}
.inline-input-action{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
}
.form-help{
    display:block;
    margin-top:8px;
    color:var(--text-soft);
    font-size:13px;
    line-height:1.5;
}
@media (max-width: 980px){
    .page-tools,
    .page-tools-stack-mobile{ align-items:stretch; }
    .page-filters{ width:100%; }
    .page-search{ flex:1 1 100%; }
    .page-search input,
    .filter-select{ width:100%; min-width:0; }
    .invite-link-panel{ grid-template-columns:1fr; }
    .inline-input-action{ grid-template-columns:1fr; }
}

.text-soft{ color:var(--text-soft); font-size:13px; }
.badge{ display:inline-flex; align-items:center; min-height:30px; padding:0 10px; border-radius:999px; font-size:12px; font-weight:800; }
.badge-neutral{ background:#eef2f7; color:#334155; }
.badge-info{ background:#e0f2fe; color:#0369a1; }
.badge-success{ background:#dcfce7; color:#166534; }
.badge-warning{ background:#fef3c7; color:#92400e; }
.badge-danger{ background:#fee2e2; color:#991b1b; }

.salas-grid{ display:grid; grid-template-columns: 360px minmax(0,1fr); gap:24px; }
.sala-sidebar-card,
.sala-main-card{ background:#fff; border:1px solid var(--line); border-radius:22px; box-shadow:var(--shadow-sm); }
.sala-sidebar-card{ padding:22px; }
.sala-main-card{ padding:0; overflow:hidden; }
.sala-summary{ display:grid; gap:14px; }
.sala-summary-item strong{ display:block; margin-bottom:6px; font-size:13px; color:var(--text-soft); text-transform:uppercase; letter-spacing:.04em; }
.sala-summary-item span{ display:block; font-size:15px; font-weight:700; }
.sala-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.sala-chat-admin{ display:flex; flex-direction:column; min-height:640px; }
.sala-chat-header{ padding:22px 24px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:16px; align-items:center; }
.sala-chat-body{ flex:1; padding:22px; background:linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%); overflow:auto; display:flex; flex-direction:column; gap:14px; }
.sala-observacoes{ padding:22px 24px; border-top:1px solid var(--line); background:#fff; }
.sala-observacoes h3{ margin:0 0 12px; font-size:18px; }
.sala-observacoes-lista{ display:grid; gap:12px; margin-bottom:16px; }
.sala-observacao-item{ padding:14px 16px; border-radius:16px; background:#f8fafc; border:1px solid var(--line); }
.sala-observacao-item strong{ display:block; margin-bottom:4px; }
.sala-observacao-item span{ color:var(--text-soft); font-size:13px; }
.sala-observacao-form textarea{ min-height:110px; }

.teste-body{ min-height:100vh; background:linear-gradient(180deg, #ebf2f8 0%, #dfeaf4 100%); color:var(--text); }
.teste-shell{
height:calc(100vh - 44px);
overflow:hidden;
}
.teste-web{ flex:1; display:grid; grid-template-columns: 320px minmax(0,1fr); gap:24px; max-width:1280px; width:100%; margin:0 auto; padding:20px; }
.teste-side{ background:#fff; border:1px solid var(--line); border-radius:26px; padding:18px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:18px; }
.teste-brand{ display:flex; gap:12px; align-items:center; }
.teste-brand .brand-badge, .teste-brand .brand-logo-image-wrap{ margin:0; width:52px; height:52px; }
.teste-brand-text strong{ display:block; font-size:16px; }
.teste-brand-text small{ color:var(--text-soft); }
.teste-side-block{ padding:16px; border-radius:20px; background:#f8fbff; border:1px solid #e4edf7; }
.teste-side-block h3{ margin:0 0 10px; font-size:15px; }
.teste-side-meta{ display:grid; gap:10px; }
.teste-side-meta div strong{ display:block; margin-bottom:4px; font-size:12px; text-transform:uppercase; color:var(--text-soft); }
.teste-side-meta div span{ font-size:14px; font-weight:700; }
.teste-chat{ background:#e5ddd5; border:1px solid rgba(15,23,42,.06); border-radius:28px; box-shadow:var(--shadow-md); display:flex; flex-direction:column; min-height:calc(100vh - 40px); overflow:hidden; }
.teste-chat-top{ background:#f0f2f5; border-bottom:1px solid rgba(15,23,42,.08); padding:14px 18px; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.teste-chat-top-left{ display:flex; gap:12px; align-items:center; }
.teste-avatar{ width:44px; height:44px; border-radius:14px; background:linear-gradient(135deg, var(--primary), var(--primary-2)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; }
.teste-chat-top-left strong{ display:block; }
.teste-chat-top-left span{ display:block; color:#6b7280; font-size:13px; }
.teste-chat-status{ display:flex; align-items:center; gap:10px; color:#6b7280; font-size:13px; font-weight:700; }
.teste-chat-body{ flex:1; padding:20px; overflow:auto; background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1px); background-size: 18px 18px; display:flex; flex-direction:column; gap:12px; }
.msg{ max-width:min(78%, 680px); padding:12px 14px 10px; border-radius:18px; box-shadow:0 2px 8px rgba(15,23,42,.06); position:relative; }
.msg strong{ display:block; margin-bottom:4px; font-size:13px; }
.msg p{ margin:0; line-height:1.55; white-space:pre-wrap; word-break:break-word; }
.msg time{ display:block; margin-top:8px; font-size:11px; color:#64748b; text-align:right; }
.msg-in{ align-self:flex-start; background:#fff; border-top-left-radius:6px; }
.msg-out{ align-self:flex-end; background:#d9fdd3; border-top-right-radius:6px; }
.msg-interno{ align-self:center; background:#e0f2fe; border-radius:16px; max-width:92%; }
.msg-audio{ display:flex; align-items:center; gap:10px; font-weight:700; }
.msg-audio-icon{ width:34px; height:34px; border-radius:999px; background:rgba(15,23,42,.08); display:flex; align-items:center; justify-content:center; }
.transcricao-box{ margin-top:10px; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.55); font-size:13px; color:#334155; }
.teste-chat-compose{ padding:16px; background:#f0f2f5; border-top:1px solid rgba(15,23,42,.08); }
.teste-form-row{ display:flex; gap:10px; align-items:flex-end; }
.teste-input-wrap{ flex:1; background:#fff; border-radius:22px; border:1px solid rgba(15,23,42,.08); padding:10px 12px; }
.teste-input-wrap textarea{ width:100%; min-height:48px; max-height:140px; resize:vertical; border:none; outline:none; background:transparent; font:inherit; }
.teste-form-actions{ display:flex; gap:10px; align-items:center; }
.btn-icon{ width:48px; min-width:48px; padding:0; border-radius:18px; }
.teste-helper{ margin-top:10px; color:#64748b; font-size:12px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.teste-footer{ padding:12px 20px 18px; text-align:center; color:#64748b; font-size:12px; }
.teste-state{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.teste-state-card{ width:100%; max-width:640px; background:#fff; border:1px solid var(--line); border-radius:28px; padding:32px; box-shadow:var(--shadow-md); text-align:center; }
.teste-state-card h1{ margin:0 0 10px; font-size:32px; }
.teste-state-card p{ margin:0; color:var(--text-soft); line-height:1.7; }

@media (max-width: 1100px){
    .salas-grid{ grid-template-columns:1fr; }
    .teste-web{ grid-template-columns:1fr; }
    .teste-side{ order:2; }
    .teste-chat{ min-height:72vh; }
}

@media (max-width: 768px){
    .teste-web{ padding:0; gap:0; }
    .teste-side{ display:none; }
    .teste-chat{ min-height:100vh; border-radius:0; border:none; }
    .teste-chat-top{ padding:12px 14px; }
    .teste-chat-body{ padding:14px 12px 18px; }
    .teste-chat-compose{ padding:12px; }
    .msg{ max-width:88%; }
    .teste-form-row{ align-items:stretch; }
    .teste-form-actions{ flex-direction:column; }
    .btn-icon, .teste-form-actions .btn{ width:48px; min-width:48px; }
    .teste-form-actions .btn.btn-primario{ width:auto; min-width:120px; }
}

.cards-grid-3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.config-stack{ display:flex; flex-direction:column; gap:22px; margin-bottom:24px; }
.config-logo-preview{
    margin-top:12px;
    padding:14px 16px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#f8fbff;
    display:inline-flex;
    flex-direction:column;
    gap:10px;
    max-width:240px;
}
.config-logo-preview span{ font-size:13px; font-weight:700; color:var(--text-soft); }
.config-logo-preview img{ max-height:74px; width:auto; object-fit:contain; }
@media (max-width: 1100px){
    .cards-grid-3{ grid-template-columns:1fr; }
}

/* Melhorias do chat público */
.teste-input-chat{
    position:relative;
    display:flex;
    align-items:flex-end;
    gap:10px;
}
.teste-input-chat textarea{
    min-height:52px;
    max-height:160px;
    padding-left:10px;
}
.emoji-toggle{
    width:44px;
    height:44px;
    border:none;
    border-radius:14px;
    background:#f8fafc;
    border:1px solid var(--line);
    cursor:pointer;
    font-size:20px;
    flex-shrink:0;
}
.emoji-picker{
    position:absolute;
    left:0;
    bottom:58px;
    width:min(320px, calc(100vw - 48px));
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:var(--shadow-md);
    padding:12px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    z-index:25;
}
.emoji-item{
    width:42px;
    height:42px;
    border:none;
    border-radius:12px;
    background:#f8fafc;
    cursor:pointer;
    font-size:20px;
}
.emoji-item:hover,
.emoji-toggle:hover{
    background:#eef6ff;
}
.btn-chat-enviar{
    min-width:96px;
}
.teste-input-audio{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.audio-recorder{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.audio-status{
    color:var(--text-soft);
    font-size:13px;
    font-weight:600;
}
.audio-preview-wrap{
    background:#f8fafc;
    border:1px solid var(--line);
    border-radius:16px;
    padding:12px;
}
.audio-preview-wrap audio{
    width:100%;
}
.audio-preview-note{
    margin-top:8px;
    color:var(--text-soft);
    font-size:13px;
}
.teste-chat-body{
    scroll-behavior:smooth;
}
.msg p,
.transcricao-box{
    word-break:break-word;
}

@media (max-width: 768px){
    .emoji-picker{
        left:0;
        right:auto;
    }

    .audio-recorder{
        align-items:stretch;
    }

    .audio-recorder .btn{
        width:100%;
    }

    .teste-form-row{
        flex-direction:column;
    }

    .teste-form-actions{
        width:100%;
        display:flex;
        justify-content:flex-end;
    }

    .btn-chat-enviar{
        width:100%;
    }
}

.emoji-picker[hidden]{display:none !important;}

.teste-audio-row .teste-form-actions{
    display:none !important;
}

/* Hotfix: composer mais compacto e foco na última mensagem */
.teste-chat-compose{
    padding-top:10px;
}
.teste-helper{
    gap:8px;
    font-size:12px;
    margin-top:8px;
}
.teste-audio-row{
    margin-top:8px !important;
}
.teste-input-audio{
    gap:8px;
}
#audio-file-input{
    font-size:13px;
}
.audio-recorder{
    gap:8px;
}
.audio-recorder .btn{
    min-height:42px;
    padding:10px 14px;
    border-radius:12px;
    font-size:14px;
}
.audio-preview-wrap{
    padding:10px;
}
.audio-preview-note{
    margin-top:6px;
    font-size:12px;
}
.teste-chat-body{
    padding-bottom:18px;
}
@media (max-width: 768px){
    .teste-chat-compose{
        padding-top:8px;
    }

    .teste-form-row{
        gap:8px;
    }

    .teste-input-chat textarea{
        min-height:46px;
        max-height:110px;
    }

    .emoji-toggle{
        width:40px;
        height:40px;
        border-radius:12px;
        font-size:18px;
    }

    .teste-input-audio{
        gap:6px;
    }

    .audio-recorder{
        display:grid;
        grid-template-columns:1fr 1fr 1fr;
        gap:8px;
        align-items:center;
    }

    .audio-recorder .btn{
        width:100%;
        min-height:40px;
        padding:8px 10px;
        font-size:13px;
    }

    .audio-status{
        grid-column:1 / -1;
        font-size:12px;
        line-height:1.35;
    }

    .teste-helper{
        font-size:11px;
        line-height:1.35;
    }

    #audio-file-input{
        font-size:12px;
    }

    .audio-preview-wrap{
        padding:8px;
    }
}
@media (min-width: 769px){

    body.teste-body{
        height:100vh;
        overflow:hidden;
    }

    .teste-shell{
        min-height:calc(100vh - 44px);
        overflow:hidden;
    }

    .teste-web{
        max-width:1180px;
        height:100%;
        padding:14px 18px 8px;
        gap:18px;
        overflow:hidden;
        align-items:stretch;
    }

    .teste-side,
    .teste-chat{
        height:100%;
        min-height:0;
    }

    .teste-side{
        overflow:auto;
    }

    .teste-chat{
        min-height:0 !important;
        height:100%;
    }

    .teste-chat-body{
        flex:1 1 auto;
        min-height:0;
        overflow:auto;
    }

    .teste-chat-compose{
        flex-shrink:0;
        padding:12px 14px;
    }

    .teste-chat-top{
        flex-shrink:0;
        padding:12px 16px;
    }

    .teste-footer{
        height:44px;
        padding:10px 20px 12px;
        overflow:hidden;
    }

    .teste-helper{
        margin-top:8px;
    }

    .teste-side-block{
        padding:14px;
    }
}

/* MOBILE composer fixo estilo WhatsApp */
@media (max-width:768px){
    .teste-chat-compose{
        position:fixed;
        bottom:0;
        left:0;
        right:0;
        background:#f0f2f5;
        z-index:50;
        box-shadow:0 -2px 10px rgba(0,0,0,0.08);
    }

    .teste-chat-body{
        padding-bottom:160px;
    }

    .teste-footer{
        padding-bottom:120px;
    }
}

/* Cards de score da avaliação */
.score-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
    gap:14px;
    margin:18px 0 22px;
}

.score-card{
    background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border:1px solid var(--line);
    border-radius:16px;
    padding:16px;
    box-shadow:var(--shadow-sm);
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    min-height:96px;
}

.score-card span{
    display:block;
    font-size:13px;
    color:var(--text-soft);
    font-weight:700;
    line-height:1.35;
    margin-bottom:8px;
}

.score-card strong{
    display:block;
    font-size:28px;
    font-weight:800;
    line-height:1;
    color:var(--primary);
}

.score-card.score-good strong{
    color:var(--success);
}

.score-card.score-mid strong{
    color:#b45309;
}

.score-card.score-low strong{
    color:var(--danger);
}

/* Bloco do laudo automático */
.avaliacao-layout{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.avaliacao-meta-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:14px;
    margin:6px 0 2px;
}

.avaliacao-meta-card{
    background:#f8fbff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:14px 16px;
}

.avaliacao-meta-card span{
    display:block;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--text-soft);
    margin-bottom:6px;
}

.avaliacao-meta-card strong{
    display:block;
    font-size:18px;
    line-height:1.35;
    color:var(--text);
}

.avaliacao-bloco{
    background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border:1px solid var(--line);
    border-radius:18px;
    padding:18px 20px;
}

.avaliacao-bloco h3{
    margin:0 0 10px;
    font-size:18px;
    line-height:1.2;
}

.avaliacao-bloco p{
    margin:0;
    color:var(--text);
    line-height:1.7;
}

.avaliacao-bloco ul{
    margin:0;
    padding-left:20px;
}

.avaliacao-bloco li{
    margin:0 0 8px;
    color:var(--text);
    line-height:1.6;
}

.avaliacao-bloco li:last-child{
    margin-bottom:0;
}

.avaliacao-texto-livre{
    white-space:pre-wrap;
    line-height:1.7;
    color:var(--text);
}

@media (max-width: 768px){
    .score-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:10px;
    }

    .score-card{
        min-height:86px;
        padding:14px;
    }

    .score-card strong{
        font-size:24px;
    }

    .avaliacao-meta-grid{
        grid-template-columns:1fr;
        gap:10px;
    }

    .avaliacao-bloco{
        padding:16px;
    }
}

.tabela-vagas .vaga-titulo-cell{ display:flex; flex-direction:column; gap:4px; }
.tabela-vagas .vaga-titulo-cell strong{ font-size:14px; color:#0f172a; }
.tabela-vagas .vaga-titulo-meta{ font-size:12px; color:#64748b; }
.vaga-etapas-resumo{ display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.vaga-etapas-meta{ font-size:12px; color:#64748b; }
.acoes-inline-vaga{ align-items:center; }
.acoes-inline-vaga .link-acao{ min-width:76px; }
.card-etapas-vaga{ margin-top:22px; }
.etapas-preview-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:16px; }
.etapa-preview-card{ padding:18px; border:1px solid var(--line); border-radius:18px; background:#fbfdff; box-shadow:0 8px 24px rgba(15, 23, 42, .04); }
.etapa-preview-topo{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.etapa-preview-ordem{ font-size:12px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:#0891b2; }
.etapa-preview-card h3{ margin:0 0 14px; font-size:18px; color:#0f172a; }
.etapa-preview-meta{ display:flex; flex-wrap:wrap; gap:8px; }
@media (max-width: 900px){
  .tabela-vagas{ min-width:980px; }
}

/* Compatibilidade visual dos formulários do painel */
.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.form-group label{
    display:block;
    margin-bottom:0;
    font-size:14px;
    font-weight:700;
    color:#334155;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    border:1px solid var(--line);
    border-radius:14px;
    padding:14px 16px;
    font-size:15px;
    outline:none;
    background:#fff;
    transition:.2s ease;
    font-family:inherit;
    color:var(--text);
}

.form-group textarea{
    min-height:140px;
    resize:vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:var(--primary-2);
    box-shadow:0 0 0 4px rgba(6,182,212,.12);
}

.form-group-full,
.form-actions-full{
    grid-column:1 / -1;
}

.form-card .card-header{
    margin-bottom:24px;
}

.form-card .card-header h2{
    margin:0 0 6px;
    font-size:28px;
    line-height:1.15;
}

.form-card .card-header p{
    margin:0;
    color:var(--text-soft);
    line-height:1.6;
}

.form-card .form-grid{
    align-items:start;
}

.form-card .form-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    padding-top:8px;
}

@media (max-width: 980px){
    .form-group-full,
    .form-actions-full{
        grid-column:auto;
    }
}

.card-header-space{ align-items:center; }
.acoes-inline{ display:flex; flex-wrap:wrap; gap:8px; }
.link-acao{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 14px;
    border-radius:12px;
    font-size:13px;
    font-weight:700;
    color:#0f172a;
    background:#eef4fa;
    border:1px solid #dbe6f2;
}
.link-acao:hover{ background:#e2edf7; }
.cell-soft{ color:#64748b; }

.perfil-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:18px;
}
.perfil-destaque{
    min-height:100%;
}

@media (max-width: 900px){
    .perfil-grid{
        grid-template-columns:1fr;
    }
    .perfil-destaque{
        min-height:auto;
    }
}
.table-wrap-sem-rolagem{
    overflow-x: hidden;
}

.tabela-etapas-ajustada{
    width: 100%;
    table-layout: fixed;
}

.tabela-etapas-ajustada th,
.tabela-etapas-ajustada td{
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    vertical-align: middle;
}

.tabela-etapas-ajustada th:nth-child(1),
.tabela-etapas-ajustada td:nth-child(1){
    width: 72%;
}

.tabela-etapas-ajustada th:nth-child(2),
.tabela-etapas-ajustada td:nth-child(2){
    width: 28%;
    text-align: center;
}
.table-wrap-avaliacoes{
    overflow-x: hidden;
}

.tabela-avaliacoes-ajustada{
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.tabela-avaliacoes-ajustada th,
.tabela-avaliacoes-ajustada td{
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    vertical-align: top;
}

.tabela-avaliacoes-ajustada th:nth-child(1),
.tabela-avaliacoes-ajustada td:nth-child(1){
    width: 18%;
}

.tabela-avaliacoes-ajustada th:nth-child(2),
.tabela-avaliacoes-ajustada td:nth-child(2){
    width: 16%;
}

.tabela-avaliacoes-ajustada th:nth-child(3),
.tabela-avaliacoes-ajustada td:nth-child(3){
    width: 10%;
}

.tabela-avaliacoes-ajustada th:nth-child(4),
.tabela-avaliacoes-ajustada td:nth-child(4){
    width: 7%;
    text-align: center;
}

.tabela-avaliacoes-ajustada th:nth-child(5),
.tabela-avaliacoes-ajustada td:nth-child(5){
    width: 7%;
    text-align: center;
}

.tabela-avaliacoes-ajustada th:nth-child(6),
.tabela-avaliacoes-ajustada td:nth-child(6){
    width: 12%;
}

.tabela-avaliacoes-ajustada th:nth-child(7),
.tabela-avaliacoes-ajustada td:nth-child(7){
    width: 11%;
}

.tabela-avaliacoes-ajustada th:nth-child(8),
.tabela-avaliacoes-ajustada td:nth-child(8){
    width: 9%;
}

.tabela-avaliacoes-ajustada th:nth-child(9),
.tabela-avaliacoes-ajustada td:nth-child(9){
    width: 10%;
}

@media (max-width: 1200px){
    .table-wrap-avaliacoes{
        overflow-x: auto;
    }

    .tabela-avaliacoes-ajustada{
        min-width: 1100px;
        table-layout: auto;
    }
}
/* Ajuste refinado do composer da sala pública */
.teste-chat-compose{
    padding:10px 12px 8px;
    background:#f0f2f5;
    border-top:1px solid rgba(15,23,42,.08);
}

.teste-form-principal{
    align-items:center;
    gap:8px;
}

.teste-input-wrap.teste-input-chat{
    min-height:60px;
    padding:8px 10px;
    border-radius:18px;
    gap:8px;
}

.teste-input-chat textarea{
    min-height:38px;
    max-height:96px;
    padding:8px 4px 6px;
    line-height:1.45;
    font-size:14px;
}

.teste-quick-actions{
    display:flex;
    align-items:center;
    gap:6px;
    flex-shrink:0;
}

.quick-btn{
    width:34px;
    height:34px;
    border:none;
    border-radius:10px;
    background:#f8fafc;
    border:1px solid var(--line);
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    color:#334155;
    transition:.2s ease;
}

.quick-btn:hover{
    background:#eef6ff;
}

.quick-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.teste-form-actions-compact{
    flex-shrink:0;
}

.btn-chat-enviar-mini{
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    border-radius:14px;
    font-size:16px;
}

.teste-audio-row-inline{
    margin-top:6px !important;
}

.teste-audio-inline-meta{
    display:flex;
    align-items:center;
    min-height:18px;
}

.audio-status{
    font-size:12px;
    line-height:1.35;
    color:var(--text-soft);
}

.audio-preview-wrap-inline{
    margin-top:6px;
    padding:8px 10px;
    border-radius:12px;
}

.audio-preview-wrap-inline audio{
    width:100%;
    height:34px;
}

.audio-preview-note{
    margin-top:4px;
    font-size:11px;
}

.teste-finalizar-row{
    margin-top:8px;
}

.btn-finalizar-mini{
    min-height:38px;
    border-radius:12px;
    padding:0 14px;
    font-size:13px;
}

.teste-helper-compact{
    margin-top:8px;
    font-size:11px;
    line-height:1.3;
}

.teste-chat-body{
    padding-bottom:20px;
}

/* Desktop */
@media (min-width: 769px){
    .teste-chat{
        min-height:0 !important;
        height:100%;
    }

    .teste-chat-body{
        flex:1 1 auto;
        min-height:0;
        overflow:auto;
        padding:16px 16px 18px;
    }

    .teste-chat-compose{
        position:relative;
        bottom:auto;
        left:auto;
        right:auto;
        z-index:auto;
        box-shadow:none;
    }

 
}

/* Mobile */
@media (max-width: 768px){
    body.teste-body{
        min-height:100dvh;
        height:100dvh;
        overflow:hidden;
    }

    .teste-shell{
        height:100dvh;
        min-height:100dvh;
        overflow:hidden;
    }

    .teste-web{
        height:100dvh;
        min-height:100dvh;
    }

    .teste-chat{
        height:100dvh;
        min-height:100dvh;
        display:flex;
        flex-direction:column;
    }

    .teste-chat-body{
        flex:1 1 auto;
        min-height:0;
        overflow:auto;
        padding:12px 10px 18px;
    }

    .teste-chat-compose{
        position:sticky;
        bottom:0;
        left:auto;
        right:auto;
        z-index:20;
        padding:8px 10px calc(8px + env(safe-area-inset-bottom));
        box-shadow:0 -2px 10px rgba(0,0,0,0.06);
    }

    .teste-form-principal{
        gap:6px;
        align-items:flex-end;
    }

    .teste-input-wrap.teste-input-chat{
        min-height:54px;
        padding:7px 8px;
        border-radius:16px;
        gap:6px;
    }

    .teste-input-chat textarea{
        min-height:34px;
        max-height:82px;
        font-size:14px;
        padding:6px 2px;
    }

    .emoji-toggle,
    .quick-btn{
        width:32px;
        height:32px;
        min-width:32px;
        border-radius:9px;
        font-size:14px;
    }

    .btn-chat-enviar-mini{
        width:42px;
        min-width:42px;
        height:42px;
        min-height:42px;
        border-radius:12px;
    }

    .teste-audio-row-inline{
        margin-top:4px !important;
    }

    .audio-preview-wrap-inline{
        padding:6px 8px;
    }

    .audio-preview-wrap-inline audio{
        height:32px;
    }

    .teste-finalizar-row{
        margin-top:6px;
    }

    .btn-finalizar-mini{
        min-height:36px;
        font-size:12px;
        padding:0 12px;
    }

    .teste-helper-compact{
        margin-top:6px;
        font-size:10px;
    }

 
}
/* Ajuste final: esconder campo nativo de arquivo e alinhar finalizar à direita */
.audio-file-hidden{
    display:none !important;
}

.teste-finalizar-row{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    margin-top:8px;
}

@media (max-width: 768px){
    .teste-finalizar-row{
        justify-content:flex-end;
        margin-top:6px;
    }
}
.teste-footer{
    padding:8px 16px 12px;
    text-align:center;
    color:#64748b;
    font-size:11px;
    background:transparent;
}

@media (max-width: 768px){
    .teste-footer{
        padding:8px 12px 10px;
        font-size:10px;
    }
}
/* Pacote 02 - formulários de configuração em tabelas */
.tabela-padrao input[type="text"],
.tabela-padrao input[type="number"],
.tabela-padrao select,
.tabela-padrao textarea{
    width:100%;
    min-width:90px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fff;
    padding:9px 10px;
    color:var(--text);
    font:inherit;
    outline:none;
}
.tabela-padrao textarea{ min-height:76px; resize:vertical; }
.tabela-padrao input[type="text"]:focus,
.tabela-padrao input[type="number"]:focus,
.tabela-padrao select:focus,
.tabela-padrao textarea:focus{
    border-color:var(--primary-2);
    box-shadow:0 0 0 3px rgba(6,182,212,.10);
}
.tabela-padrao input[type="checkbox"]{
    width:18px;
    height:18px;
    accent-color:var(--primary-2);
}

/* Pacote 03 - Central de importação de candidatos */
.import-choice-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.import-choice{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:18px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#fff;
    cursor:pointer;
    transition:.2s ease;
}
.import-choice:hover{ border-color:var(--primary-2); box-shadow:var(--shadow-sm); }
.import-choice input{ width:auto; margin-top:4px; }
.import-choice span{ display:flex; flex-direction:column; gap:5px; }
.import-choice strong{ font-size:15px; }
.import-choice small{ color:var(--text-soft); line-height:1.45; }
.import-mode-panel{
    border-top:1px solid var(--line);
    padding-top:24px;
    margin-top:8px;
}
.csv-layout-box{
    margin-top:18px;
    padding:18px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#f8fbff;
}
.csv-layout-box > strong{ display:block; margin-bottom:12px; }
.csv-layout-box p{ margin:12px 0 0; color:var(--text-soft); line-height:1.5; }
.tabela-compacta th,.tabela-compacta td{ padding:10px 12px; font-size:12px; }
.field-help{ display:block; margin-top:7px; color:var(--text-soft); line-height:1.45; }
.import-summary-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:22px;
    padding:22px;
    border:1px solid var(--line);
    border-radius:20px;
    background:#fff;
    box-shadow:var(--shadow-sm);
}
.import-summary-head h2{ margin:0 0 6px; font-size:25px; }
.import-summary-head p{ margin:0; color:var(--text-soft); }
.import-filter-links{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.import-filter-links a{
    padding:8px 11px;
    border:1px solid var(--line);
    border-radius:999px;
    color:var(--text-soft);
    font-size:12px;
    font-weight:700;
    background:#fff;
}
.import-filter-links a.ativo{ color:#fff; background:var(--primary); border-color:var(--primary); }
.import-bulk-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin:18px 0;
    padding:14px 16px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#f8fafc;
}
.import-bulk-bar label{ font-size:14px; font-weight:700; }
.import-bulk-bottom{ margin-bottom:0; }
.import-items-list{ display:flex; flex-direction:column; gap:18px; }
.import-item-card{
    border:1px solid var(--line);
    border-radius:20px;
    padding:20px;
    background:#fff;
    box-shadow:var(--shadow-sm);
}
.import-item-card.is-locked{ background:#f8fafc; opacity:.88; }
.import-item-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding-bottom:14px;
    border-bottom:1px solid var(--line);
}
.import-item-select{ display:flex; align-items:flex-start; gap:12px; min-width:0; }
.import-item-select input{ margin-top:4px; }
.import-item-select strong{ display:block; font-size:17px; }
.import-item-select span{ display:block; margin-top:4px; color:var(--text-soft); font-size:12px; }
.import-item-message{
    margin:14px 0;
    padding:11px 13px;
    border-radius:12px;
    background:#eef6ff;
    color:#334155;
    font-size:13px;
    line-height:1.45;
}
.duplicate-alert{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:14px 0;
    padding:14px;
    border:1px solid #fcd34d;
    border-radius:14px;
    background:#fffbeb;
}
.duplicate-alert strong,.duplicate-alert span{ display:block; }
.duplicate-alert span{ margin-top:4px; color:#92400e; font-size:12px; }
.compact-field{ min-width:240px; margin:0; }
.import-fields-grid{ margin-top:16px; }
.import-fields-grid .campo textarea{ min-height:90px; }
.extracted-text-box{
    margin-top:16px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#f8fafc;
    overflow:hidden;
}
.extracted-text-box summary{ cursor:pointer; padding:14px 16px; font-weight:700; }
.extracted-text-box pre{
    margin:0;
    padding:16px;
    max-height:300px;
    overflow:auto;
    white-space:pre-wrap;
    word-break:break-word;
    border-top:1px solid var(--line);
    font-family:inherit;
    font-size:12px;
    line-height:1.55;
    background:#fff;
}
.extracted-text-box.muted{ display:flex; flex-direction:column; gap:5px; padding:14px 16px; color:var(--text-soft); }
.extracted-text-box.muted strong{ color:var(--text); }
.pagination{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:22px; }
.pagination a{
    min-width:38px;
    height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--line);
    border-radius:10px;
    color:var(--text);
    font-weight:700;
    background:#fff;
}
.pagination a.ativo{ background:var(--primary); color:#fff; border-color:var(--primary); }

@media (max-width: 900px){
    .import-choice-grid{ grid-template-columns:1fr; }
    .import-summary-head,.import-item-head,.duplicate-alert,.import-bulk-bar{ align-items:stretch; flex-direction:column; }
    .compact-field{ min-width:0; width:100%; }
    .import-filter-links{ justify-content:flex-start; }
}

/* Pacote 04 - Análise inteligente de currículos */
.triagem-vaga-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    margin-bottom:22px;
    padding:22px;
    border:1px solid var(--line);
    border-radius:20px;
    background:#fff;
    box-shadow:var(--shadow-sm);
}
.triagem-vaga-bar h2{ margin:3px 0 5px; font-size:25px; }
.triagem-vaga-bar p{ margin:0; color:var(--text-soft); }
.triagem-vaga-select{ min-width:310px; }
.triagem-vaga-select label{ display:block; margin-bottom:7px; font-size:12px; font-weight:800; color:var(--text-soft); }
.triagem-vaga-select select{ width:100%; }
.triagem-filter-bar{
    display:grid;
    grid-template-columns:minmax(260px,1fr) minmax(210px,320px) auto;
    align-items:end;
    gap:14px;
    margin:18px 0;
    padding:16px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#f8fafc;
}
.triagem-filter-bar .campo{ margin:0; }
.triagem-fila-card{ border-color:#bae6fd; background:#f8fdff; }
.triagem-progress{ height:10px; overflow:hidden; border-radius:999px; background:#e2e8f0; }
.triagem-progress span{ display:block; height:100%; width:0; border-radius:inherit; background:linear-gradient(90deg,var(--primary),var(--primary-2)); transition:width .3s ease; }
.triagem-fila-log{ min-height:20px; margin-top:10px; color:var(--text-soft); font-size:13px; }
.tabela-triagem td{ vertical-align:middle; }
.triagem-score-inline{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.triagem-score-inline strong{ font-size:23px; line-height:1; }
.text-danger{ color:#b91c1c; }
.form-inline{ display:inline-flex; margin:0; }
.triagem-detail-head{ margin-bottom:22px; }
.triagem-score-grid{
    display:grid;
    grid-template-columns:1.1fr repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:20px;
}
.triagem-score-main{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:112px;
    padding:18px;
    border-radius:18px;
    color:#fff;
    background:linear-gradient(135deg,var(--primary),var(--primary-2));
}
.triagem-score-main span{ font-size:13px; opacity:.85; }
.triagem-score-main strong{ margin-top:6px; font-size:40px; line-height:1; }
.tabela-criterios-analise td{ vertical-align:top; }
.triagem-competencias-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
}
.triagem-competencia-card{
    padding:17px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#fff;
}
.triagem-competencia-card > div:first-child{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.triagem-competencia-card > div:first-child span{ font-weight:800; }
.triagem-competencia-card > div:first-child strong{ font-size:24px; }
.triagem-competencia-card p{ min-height:42px; margin:11px 0 8px; color:var(--text-soft); font-size:13px; line-height:1.48; }
.triagem-competencia-card small{ color:var(--text-soft); }
.triagem-meter{ height:7px; margin-top:10px; overflow:hidden; border-radius:999px; background:#e2e8f0; }
.triagem-meter span{ display:block; height:100%; border-radius:inherit; background:var(--primary-2); }
.triagem-dados-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.triagem-tags-block{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-top:20px;
}
.triagem-tags-block > div > strong{ display:block; margin-bottom:9px; }
.triagem-tags{ display:flex; flex-wrap:wrap; gap:7px; }
.triagem-tags span{
    display:inline-flex;
    padding:7px 10px;
    border:1px solid #cbd5e1;
    border-radius:999px;
    background:#f8fafc;
    color:#334155;
    font-size:12px;
    font-weight:700;
}
.triagem-tags span.tag-muted{ color:var(--text-soft); font-weight:500; }
.triagem-perguntas{ display:flex; flex-direction:column; gap:11px; margin:0; padding-left:25px; }
.triagem-perguntas li{ padding-left:5px; line-height:1.5; }

@media (max-width: 1180px){
    .triagem-score-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .triagem-competencias-grid,.triagem-dados-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px){
    .triagem-vaga-bar{ flex-direction:column; align-items:stretch; }
    .triagem-vaga-select{ min-width:0; }
    .triagem-filter-bar{ grid-template-columns:1fr; }
    .triagem-score-grid,.triagem-competencias-grid,.triagem-dados-grid,.triagem-tags-block{ grid-template-columns:1fr; }
}

/* Pacote 05 - Integração WeTalkie e fila de WhatsApp */
.whatsapp-stats-grid{ grid-template-columns:repeat(5,minmax(0,1fr)); }
.whatsapp-header-actions{ justify-content:flex-end; flex-wrap:wrap; }
.whatsapp-config-alert{ margin:0 0 18px; }
.whatsapp-config-alert a{ margin-left:7px; font-weight:800; text-decoration:underline; }
.section-divider-title{
    display:flex;
    flex-direction:column;
    gap:5px;
    margin-top:8px;
    padding:16px 18px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#f8fafc;
}
.section-divider-title strong{ font-size:16px; }
.section-divider-title span{ color:var(--text-soft); font-size:13px; line-height:1.45; }
.cron-box{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:18px;
    border:1px solid #bae6fd;
    border-radius:16px;
    background:#f0f9ff;
}
.cron-box p{ margin:6px 0 0; color:#475569; font-size:13px; }
.cron-box code{
    display:block;
    overflow:auto;
    padding:11px 13px;
    border-radius:10px;
    background:#0f172a;
    color:#e2e8f0;
    white-space:nowrap;
}
.cron-box small{ margin-top:5px; color:var(--text-soft); }
.whatsapp-send-option{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:16px 18px;
    border:1px solid #99f6e4;
    border-radius:16px;
    background:#f0fdfa;
}
.whatsapp-send-option.is-disabled{ border-color:var(--line); background:#f8fafc; }
.whatsapp-send-option > a{ flex:0 0 auto; font-weight:800; }
.checkbox-card{ display:flex; align-items:flex-start; gap:13px; cursor:pointer; }
.checkbox-card input{ width:18px; height:18px; margin-top:3px; }
.checkbox-card span{ display:flex; flex-direction:column; gap:4px; }
.checkbox-card strong{ font-size:14px; }
.checkbox-card small{ color:var(--text-soft); line-height:1.45; }
.link-button{
    appearance:none;
    border:0;
    padding:0;
    background:transparent;
    color:var(--primary-2);
    font:inherit;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}
.link-button:hover{ text-decoration:underline; }
.whatsapp-status-link{ display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.whatsapp-status-link small{ color:var(--text-soft); }
.convite-actions-wrap{ flex-wrap:wrap; }
.tabela-whatsapp td{ vertical-align:middle; }
.whatsapp-error-text{ max-width:230px; margin-top:6px; line-height:1.35; }
.whatsapp-detail-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:20px;
}
.detail-box{
    display:flex;
    flex-direction:column;
    gap:7px;
    min-height:88px;
    padding:16px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
}
.detail-box > span{ color:var(--text-soft); font-size:12px; font-weight:700; }
.detail-box > strong{ font-size:15px; word-break:break-word; }
.whatsapp-detail-error{ margin-top:18px; }
.whatsapp-date-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid var(--line);
}
.whatsapp-date-grid > div{ display:flex; flex-direction:column; gap:5px; }
.whatsapp-date-grid span{ color:var(--text-soft); font-size:11px; font-weight:700; text-transform:uppercase; }
.whatsapp-date-grid strong{ font-size:13px; }
.whatsapp-timeline{ display:flex; flex-direction:column; gap:0; margin-top:18px; }
.whatsapp-timeline-item{ position:relative; display:grid; grid-template-columns:24px 1fr; gap:12px; padding:0 0 22px; }
.whatsapp-timeline-item:not(:last-child)::before{ content:""; position:absolute; left:7px; top:14px; bottom:0; width:2px; background:#dbeafe; }
.timeline-dot{ position:relative; z-index:1; width:16px; height:16px; margin-top:2px; border:4px solid #dbeafe; border-radius:50%; background:var(--primary-2); }
.whatsapp-timeline-item strong{ display:block; }
.whatsapp-timeline-item p{ margin:4px 0; color:var(--text-soft); font-size:13px; }
.whatsapp-timeline-item small{ color:var(--text-soft); }
.whatsapp-json-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; }
.whatsapp-json-grid details{ overflow:hidden; border:1px solid var(--line); border-radius:15px; background:#f8fafc; }
.whatsapp-json-grid summary{ padding:14px 16px; cursor:pointer; font-weight:800; }
.whatsapp-json-grid pre{ min-height:180px; max-height:480px; margin:0; padding:16px; overflow:auto; border-top:1px solid var(--line); background:#0f172a; color:#e2e8f0; font-size:12px; line-height:1.5; white-space:pre-wrap; word-break:break-word; }

@media (max-width: 1200px){
    .whatsapp-stats-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
    .whatsapp-detail-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .whatsapp-date-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px){
    .whatsapp-stats-grid,.whatsapp-detail-grid,.whatsapp-date-grid,.whatsapp-json-grid{ grid-template-columns:1fr; }
    .whatsapp-send-option{ align-items:flex-start; flex-direction:column; }
    .whatsapp-header-actions{ justify-content:flex-start; }
}

/* Pacote 06 - Avanço em lote e automações */
.bulk-ranking-actions{ gap:16px; flex-wrap:wrap; }
.bulk-ranking-options{ display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.bulk-small-field{ display:flex; align-items:center; gap:7px; font-size:13px; font-weight:700; }
.bulk-small-field input{ width:76px; min-width:76px; padding:9px 10px; }
.inline-check{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color:var(--text); }
.inline-check input{ width:17px; height:17px; }
.automation-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:18px; }
.automation-rule-card{ margin-bottom:0; }
.automation-rule-title{ padding-bottom:16px; margin-bottom:16px; border-bottom:1px solid var(--border); }
.compact-grid{ gap:13px; }
.campo-checkbox-stack{ display:flex; flex-direction:column; gap:14px; justify-content:center; }
.switch-line{ display:inline-flex; align-items:center; gap:10px; font-weight:800; }
.switch-line input{ width:19px; height:19px; }
.alert-card{ display:flex; align-items:center; justify-content:space-between; gap:18px; }
.alert-card p{ margin:5px 0 0; color:var(--text-soft); }
.alert-warning-card{ border-color:#f4cf7a; background:#fffaf0; }
.cron-box{ display:grid; gap:8px; padding:16px; border:1px solid var(--border); border-radius:14px; background:var(--surface-soft); }
.cron-box p{ margin:0 0 5px; color:var(--text-soft); }
.cron-box label{ margin-top:6px; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--text-soft); }
.cron-box code{ display:block; max-width:100%; overflow:auto; padding:11px 12px; border-radius:9px; background:#111827; color:#f9fafb; white-space:nowrap; }
.stat-date{ font-size:19px !important; line-height:1.2; }

@media (max-width:980px){
    .automation-grid{ grid-template-columns:1fr; }
    .bulk-ranking-actions,.bulk-ranking-options,.alert-card{ align-items:stretch; flex-direction:column; }
    .bulk-ranking-options .btn{ width:100%; }
    .bulk-small-field{ justify-content:flex-start; }
}

/* Pacote 07 - Kanban do processo seletivo e próximas ações */
.dashboard-main-metrics{ grid-template-columns:repeat(5,minmax(0,1fr)); }
.dashboard-next-actions-panel{ margin-bottom:20px; }
.next-actions-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.next-action-card{
    display:flex;
    flex-direction:column;
    min-height:150px;
    padding:18px;
    border:1px solid var(--line);
    border-radius:17px;
    background:#fff;
    color:var(--text);
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.next-action-card:hover{ transform:translateY(-2px); border-color:#bfdbfe; box-shadow:var(--shadow-sm); }
.next-action-card.is-priority{ border-color:#c4b5fd; background:#faf8ff; }
.next-action-card.is-warning{ border-color:#fde68a; background:#fffdf4; }
.next-action-card.is-success{ border-color:#bbf7d0; background:#f7fff9; }
.next-action-number{ margin-bottom:13px; font-size:33px; line-height:1; font-weight:900; color:var(--primary); }
.next-action-card strong{ font-size:15px; line-height:1.35; }
.next-action-card small{ margin-top:7px; color:var(--text-soft); line-height:1.45; }

.kanban-vaga-bar{ margin-bottom:18px; }
.kanban-stats-grid{ grid-template-columns:repeat(5,minmax(0,1fr)); }
.kanban-toolbar-card{ margin-bottom:18px; }
.kanban-actions{ flex-wrap:wrap; justify-content:flex-end; }
.kanban-filter-bar{
    display:flex;
    align-items:flex-end;
    gap:12px;
    margin-top:16px;
    padding-top:16px;
    border-top:1px solid var(--line);
}
.kanban-filter-bar .campo{ flex:1; margin:0; }
.kanban-feedback{
    margin-top:14px;
    padding:12px 14px;
    border-radius:12px;
    font-size:13px;
    font-weight:800;
}
.kanban-feedback.is-success{ color:#166534; background:#dcfce7; }
.kanban-feedback.is-error{ color:#991b1b; background:#fee2e2; }
.kanban-board{
    display:flex;
    align-items:flex-start;
    gap:14px;
    width:100%;
    padding:2px 2px 18px;
    overflow-x:auto;
    scroll-snap-type:x proximity;
}
.kanban-column{
    flex:0 0 306px;
    min-width:306px;
    max-width:306px;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:18px;
    background:#f8fafc;
    scroll-snap-align:start;
    transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.kanban-column.is-drag-over{ border-color:var(--primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent); transform:translateY(-2px); }
.kanban-column-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:58px;
    padding:14px 15px;
    border-bottom:1px solid var(--line);
    background:#fff;
}
.kanban-column-header > div{ display:flex; align-items:center; gap:9px; min-width:0; }
.kanban-column-header strong{ overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.kanban-column-dot{ flex:0 0 auto; width:10px; height:10px; border-radius:50%; background:#94a3b8; }
.kanban-column-count{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:27px;
    height:27px;
    padding:0 8px;
    border-radius:999px;
    background:#e2e8f0;
    color:#334155;
    font-size:12px;
    font-weight:900;
}
.kanban-color-azul .kanban-column-dot{ background:#3b82f6; }
.kanban-color-roxo .kanban-column-dot{ background:#8b5cf6; }
.kanban-color-amarelo .kanban-column-dot{ background:#f59e0b; }
.kanban-color-ciano .kanban-column-dot{ background:#06b6d4; }
.kanban-color-verde .kanban-column-dot{ background:#22c55e; }
.kanban-color-azul-escuro .kanban-column-dot{ background:#1d4ed8; }
.kanban-color-laranja .kanban-column-dot{ background:#f97316; }
.kanban-color-verde-escuro .kanban-column-dot{ background:#15803d; }
.kanban-color-cinza .kanban-column-dot{ background:#64748b; }
.kanban-color-vermelho .kanban-column-dot{ background:#dc2626; }
.kanban-column-body{
    display:flex;
    flex-direction:column;
    gap:11px;
    min-height:180px;
    max-height:calc(100vh - 310px);
    padding:11px;
    overflow-y:auto;
}
.kanban-empty{
    padding:28px 12px;
    border:1px dashed #cbd5e1;
    border-radius:13px;
    color:var(--text-soft);
    font-size:12px;
    text-align:center;
}
.kanban-card{
    padding:14px;
    border:1px solid #dbe3ee;
    border-radius:15px;
    background:#fff;
    box-shadow:0 4px 12px rgba(15,23,42,.045);
    cursor:grab;
    transition:opacity .18s ease,transform .18s ease,box-shadow .18s ease;
}
.kanban-card:hover{ transform:translateY(-1px); box-shadow:0 8px 18px rgba(15,23,42,.08); }
.kanban-card:active{ cursor:grabbing; }
.kanban-card.is-dragging{ opacity:.45; }
.kanban-card.is-saving{ opacity:.55; pointer-events:none; }
.kanban-card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.kanban-card-head > div:first-child{ min-width:0; }
.kanban-card-head strong{ display:block; overflow:hidden; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.kanban-card-head span{ display:block; margin-top:4px; overflow:hidden; color:var(--text-soft); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.kanban-score{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:47px;
    height:36px;
    padding:0 8px;
    border-radius:11px;
    color:#fff;
    background:linear-gradient(135deg,var(--primary),var(--primary-2));
    font-size:13px;
    font-weight:900;
}
.kanban-card-badges{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.kanban-card-badges .badge{ min-height:25px; padding:0 8px; font-size:10px; }
.kanban-card-meta{ display:flex; flex-direction:column; gap:5px; margin-top:11px; }
.kanban-card-meta span{ position:relative; padding-left:12px; color:var(--text-soft); font-size:11px; line-height:1.35; }
.kanban-card-meta span::before{ content:""; position:absolute; left:1px; top:.48em; width:4px; height:4px; border-radius:50%; background:#94a3b8; }
.kanban-card-links{ display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; padding-top:11px; border-top:1px solid #eef2f7; }
.kanban-card-links a{ color:var(--primary-2); font-size:11px; font-weight:800; }
.kanban-move-select{ display:block; margin-top:11px; }
.kanban-move-select span{ display:block; margin-bottom:5px; color:var(--text-soft); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.kanban-move-select select{ width:100%; min-height:36px; padding:7px 9px; font-size:11px; }

@media (max-width:1200px){
    .dashboard-main-metrics,.kanban-stats-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
    .next-actions-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px){
    .dashboard-main-metrics,.kanban-stats-grid,.next-actions-grid{ grid-template-columns:1fr; }
    .kanban-filter-bar,.kanban-actions{ align-items:stretch; flex-direction:column; }
    .kanban-filter-bar .btn,.kanban-actions .btn,.kanban-actions form{ width:100%; }
    .kanban-actions form .btn{ width:100%; }
    .kanban-column{ flex-basis:88vw; min-width:88vw; max-width:88vw; }
    .kanban-column-body{ max-height:none; }
    .kanban-card{ cursor:default; }
}

/* Pacote 08 - Pré-triagem estruturada */
.pretriagem-link-copy{width:100%;min-width:260px;border:1px solid #d7e1ee;border-radius:10px;padding:10px;background:#f8fafc;color:#334155;font-size:12px}
.pretriagem-metricas{margin-top:18px}
.pretriagem-respostas-admin{display:grid;gap:14px}
.pretriagem-resposta-card{display:flex;justify-content:space-between;gap:22px;padding:18px;border:1px solid #dce5ef;border-radius:14px;background:#fff}
.pretriagem-resposta-card h3{margin:5px 0 8px;font-size:16px;color:#0f172a}
.pretriagem-resposta-card p{margin:0;color:#475569;line-height:1.55}
.pretriagem-resposta-card small{color:#64748b}
.pretriagem-resposta-alerta{border-color:#fecaca;background:#fff7f7}
.pretriagem-resposta-nota{min-width:130px;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.pretriagem-resposta-nota strong{font-size:24px;color:var(--primary)}
.pretriagem-body{margin:0;background:linear-gradient(145deg,#eef4fa,#f8fafc);color:#0f172a;font-family:Inter,Arial,sans-serif;min-height:100vh}
.pretriagem-publica{width:min(900px,calc(100% - 28px));margin:28px auto 40px}
.pretriagem-publica-card{background:#fff;border:1px solid #dce5ef;border-radius:22px;box-shadow:0 20px 55px rgba(15,23,42,.09);overflow:hidden}
.pretriagem-publica-header{display:flex;align-items:center;gap:16px;padding:24px 28px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff}
.pretriagem-publica-header h1{margin:3px 0;font-size:25px}
.pretriagem-publica-header p,.pretriagem-publica-header small{margin:0;opacity:.9}
.pretriagem-brand{width:58px;height:58px;flex:0 0 58px;border-radius:16px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px;overflow:hidden}
.pretriagem-brand img{width:100%;height:100%;object-fit:contain;background:#fff}
.pretriagem-intro{padding:28px 30px 8px}
.pretriagem-intro h2{margin:0 0 8px;font-size:23px}
.pretriagem-intro p{color:#475569;line-height:1.6}
.pretriagem-intro small{color:#64748b}
.pretriagem-form{padding:12px 30px 32px;display:grid;gap:16px}
.pretriagem-pergunta{border:1px solid #dce5ef;border-radius:16px;padding:18px;margin:0;background:#fbfdff}
.pretriagem-pergunta legend{font-weight:700;padding:0 6px;color:#172033;line-height:1.4}
.pretriagem-pergunta legend span{display:inline-flex;width:28px;height:28px;border-radius:50%;align-items:center;justify-content:center;background:var(--primary);color:#fff;margin-right:9px;font-size:13px}
.pretriagem-pergunta>small{display:block;margin:2px 0 12px 42px;color:#64748b}
.pretriagem-pergunta input[type=text],.pretriagem-pergunta input[type=number],.pretriagem-pergunta input[type=date],.pretriagem-pergunta textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:11px;padding:12px 13px;background:#fff;font:inherit;color:#0f172a}
.pretriagem-opcoes{display:grid;gap:10px}
.pretriagem-opcoes label{display:flex;align-items:center;gap:10px;border:1px solid #dbe4ef;border-radius:11px;padding:12px 13px;background:#fff;cursor:pointer}
.pretriagem-opcoes label:hover{border-color:var(--primary-2)}
.pretriagem-opcoes input{width:18px;height:18px}
.pretriagem-enviar{width:100%;min-height:48px;font-size:16px}
.pretriagem-conclusao{text-align:center;padding:55px 30px}
.pretriagem-conclusao h2{font-size:28px;margin:14px 0 8px}
.pretriagem-conclusao p{color:#475569;line-height:1.6;max-width:620px;margin:0 auto}
.pretriagem-check{width:70px;height:70px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#dcfce7;color:#15803d;font-size:34px;font-weight:800;margin:0 auto}
@media(max-width:700px){.pretriagem-publica{width:calc(100% - 16px);margin:8px auto 24px}.pretriagem-publica-card{border-radius:16px}.pretriagem-publica-header{padding:20px}.pretriagem-publica-header h1{font-size:20px}.pretriagem-intro{padding:22px 20px 6px}.pretriagem-form{padding:10px 20px 24px}.pretriagem-resposta-card{flex-direction:column}.pretriagem-resposta-nota{align-items:flex-start}.pretriagem-link-copy{min-width:200px}}

/* Pacote 09 - Agendamento de entrevistas */
.entrevista-metricas{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}
.entrevista-filtros{align-items:flex-end}
.agenda-cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}
.agenda-empty{grid-column:1/-1}
.agenda-card{display:flex;flex-direction:column;gap:16px;padding:18px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.agenda-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.agenda-card h3{margin:4px 0 0;font-size:18px}
.agenda-card header small{color:var(--text-soft)}
.agenda-meta{display:flex;flex-wrap:wrap;gap:8px}
.agenda-meta span{padding:7px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:800}
.agenda-numeros{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.agenda-numeros div{padding:12px;border:1px solid #e5edf5;border-radius:12px;background:#f8fafc;text-align:center}
.agenda-numeros strong{display:block;font-size:20px;color:var(--primary)}
.agenda-numeros small{display:block;margin-top:3px;color:var(--text-soft);font-size:10px}
.agenda-actions{display:flex;gap:9px;margin-top:auto}.agenda-actions .btn{flex:1}
.entrevista-copy-row{display:flex;align-items:center;gap:7px;min-width:290px}.entrevista-copy-row input{width:100%;min-width:190px;padding:9px 10px;border:1px solid #d6e1ec;border-radius:10px;background:#f8fafc;color:#475569;font-size:11px}.entrevista-copy-row .btn{padding:9px 11px;min-height:38px}
.entrevista-acoes{align-items:center}.entrevista-acoes form{display:inline}.entrevista-acoes button{border:0;background:transparent;padding:0;cursor:pointer}
.link-danger{color:#b91c1c!important}
.agenda-resumo-card{margin-bottom:18px}.agenda-location{padding:13px 15px;border-radius:12px;background:#f8fafc;color:#475569}.agenda-location strong{color:#0f172a}
.entrevista-config-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.schedule-day-list{display:grid;gap:18px}.schedule-day{border:1px solid var(--line);border-radius:16px;overflow:hidden}.schedule-day h3{margin:0;padding:13px 16px;background:#f8fafc;border-bottom:1px solid var(--line);font-size:15px}.schedule-slots{display:grid;gap:0}.schedule-slot{display:grid;grid-template-columns:minmax(100px,1fr) 100px 110px auto;align-items:center;gap:14px;padding:13px 16px;border-bottom:1px solid #edf2f7}.schedule-slot:last-child{border-bottom:0}.schedule-slot.is-past{opacity:.56;background:#fafafa}.schedule-slot strong{display:block;font-size:16px}.schedule-slot small{display:block;color:var(--text-soft);font-size:11px}.slot-capacity span{font-weight:900;color:var(--primary)}
.entrevista-body{margin:0;min-height:100vh;background:linear-gradient(145deg,#edf4fb,#f8fafc);color:#0f172a;font-family:Inter,Arial,sans-serif}
.entrevista-publica{width:min(900px,calc(100% - 28px));margin:28px auto 42px}.entrevista-publica-card{overflow:hidden;border:1px solid #dbe5ef;border-radius:22px;background:#fff;box-shadow:0 22px 58px rgba(15,23,42,.1)}
.entrevista-publica-header{display:flex;align-items:center;gap:16px;padding:24px 28px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff}.entrevista-publica-header h1{margin:3px 0;font-size:25px}.entrevista-publica-header p,.entrevista-publica-header small{margin:0;opacity:.9}.entrevista-brand{display:flex;align-items:center;justify-content:center;flex:0 0 58px;width:58px;height:58px;overflow:hidden;border-radius:16px;background:rgba(255,255,255,.18);font-size:20px;font-weight:900}.entrevista-brand img{width:100%;height:100%;object-fit:contain;background:#fff}
.entrevista-publica-content{padding:28px 30px 34px}.entrevista-intro h2{margin:6px 0 8px;font-size:26px}.entrevista-intro p{margin:0;color:#475569;line-height:1.65}.entrevista-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.entrevista-detail-grid>div{padding:14px;border:1px solid #dfe8f1;border-radius:13px;background:#f8fafc}.entrevista-detail-grid small{display:block;margin-bottom:5px;color:#64748b}.entrevista-detail-grid strong{display:block;overflow-wrap:anywhere}.entrevista-detail-grid .detail-wide{grid-column:1/-1}
.entrevista-confirmed-box{display:flex;align-items:center;gap:15px;margin:20px 0;padding:18px;border:1px solid #bbf7d0;border-radius:16px;background:#f4fff7}.entrevista-calendar-icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:14px;background:#16a34a;color:#fff;font-size:23px;font-weight:900}.entrevista-confirmed-box small,.entrevista-confirmed-box span{display:block;color:#64748b}.entrevista-confirmed-box strong{display:block;margin:4px 0;font-size:20px;color:#166534}
.entrevista-instrucoes{margin:18px 0;padding:16px;border-radius:14px;background:#f8fafc}.entrevista-instrucoes p{margin:7px 0 0;color:#475569;line-height:1.6}.entrevista-reagendar{margin-top:18px;border-top:1px solid #e5edf5;padding-top:15px}.entrevista-reagendar summary{cursor:pointer;color:var(--primary-2);font-weight:800}.entrevista-reagendar[open] summary{margin-bottom:16px}
.entrevista-slots-form{display:grid;gap:18px;margin-top:20px}.entrevista-slots-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.entrevista-slot-option{position:relative;display:block;cursor:pointer}.entrevista-slot-option input{position:absolute;opacity:0;pointer-events:none}.entrevista-slot-option span{display:flex;flex-direction:column;gap:4px;padding:15px;border:1px solid #dbe5ef;border-radius:13px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.entrevista-slot-option:hover span{border-color:var(--primary-2)}.entrevista-slot-option input:checked+span,.entrevista-slot-option.is-current span{border-color:var(--primary);background:#f4f8ff;box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent)}.entrevista-slot-option strong{font-size:15px}.entrevista-slot-option small{color:#64748b}.entrevista-confirm-button{width:100%;min-height:49px;font-size:15px}.entrevista-state{text-align:center;padding:42px 15px}.entrevista-state h2{font-size:27px}.entrevista-state p{max-width:560px;margin:0 auto;color:#475569;line-height:1.6}
@media(max-width:1100px){.agenda-cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entrevista-metricas{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.agenda-cards-grid,.entrevista-metricas,.entrevista-config-grid,.entrevista-detail-grid,.entrevista-slots-grid{grid-template-columns:1fr}.entrevista-filtros{align-items:stretch;flex-direction:column}.entrevista-copy-row{min-width:230px}.schedule-slot{grid-template-columns:1fr 80px;gap:9px}.schedule-slot>.badge,.schedule-slot>form{justify-self:start}.entrevista-publica{width:calc(100% - 16px);margin:8px auto 24px}.entrevista-publica-card{border-radius:16px}.entrevista-publica-header{padding:20px}.entrevista-publica-header h1{font-size:20px}.entrevista-publica-content{padding:22px 20px 26px}.entrevista-detail-grid .detail-wide{grid-column:auto}.agenda-actions{flex-direction:column}}

/* Pacote 10 - Banco de talentos inteligente */
.banco-talentos-hero{margin-bottom:18px}
.banco-talentos-metricas{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:18px}
.banco-talentos-filtros-card{margin-bottom:18px}
.talent-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end}
.talent-filter-grid .campo-span-2{grid-column:span 2}
.talent-check-filter{display:flex;align-items:center;gap:9px;min-height:46px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;color:#334155;font-weight:700}
.talent-check-filter input,.talent-select-all input,.talent-whatsapp input{width:18px;height:18px}
.talent-filter-actions{display:flex;gap:9px;align-items:center}
.talent-filter-actions .btn{flex:1}
.talent-tag-create{position:relative}
.talent-tag-create summary{list-style:none;cursor:pointer}
.talent-tag-create summary::-webkit-details-marker{display:none}
.talent-tag-form{position:absolute;right:0;z-index:20;display:grid;grid-template-columns:180px 240px 90px auto;gap:10px;align-items:end;width:min(760px,88vw);margin-top:8px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 18px 45px rgba(15,23,42,.14)}
.talent-match-explain{display:flex;flex-direction:column;gap:5px;margin-top:16px;padding:14px 16px;border:1px solid #bfdbfe;border-radius:13px;background:#eff6ff;color:#1e3a8a}
.talent-match-explain span{font-size:12px;line-height:1.5;color:#475569}
.banco-talentos-resultados{overflow:hidden}
.talent-select-all{display:flex;align-items:center;gap:8px;color:#334155;font-weight:800}
.talent-batch-toolbar{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(170px,1fr) minmax(150px,.7fr) minmax(140px,.7fr) auto;gap:10px;align-items:center;margin:4px 0 18px;padding:14px;border:1px solid #dfe7ef;border-radius:14px;background:#f8fafc}
.talent-batch-toolbar select,.talent-batch-toolbar input{min-height:42px}
.talent-validade{display:flex;align-items:center;gap:8px;color:#475569;font-size:12px;font-weight:800}
.talent-validade input{width:68px;padding:8px;border:1px solid #cbd5e1;border-radius:9px}
.talent-whatsapp{display:flex;align-items:center;gap:8px;color:#334155;font-size:12px;font-weight:800}
.talent-table td{vertical-align:top}
.talent-profile-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.talent-profile-meta span{padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:800}
.talent-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.talent-tags span{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border:1px solid color-mix(in srgb,var(--tag-color) 35%,#fff);border-radius:999px;background:color-mix(in srgb,var(--tag-color) 10%,#fff);color:var(--tag-color);font-size:10px;font-weight:900}
.talent-tags-large span{min-height:29px;padding:6px 10px;font-size:11px}
.talent-match-score{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:38px;margin-bottom:7px;border-radius:11px;font-size:15px;font-weight:900}
.talent-match-score.is-high{background:#dcfce7;color:#166534}
.talent-match-score.is-medium{background:#fef3c7;color:#92400e}
.talent-match-score.is-low{background:#fee2e2;color:#991b1b}
.talent-match-source{display:block;max-width:180px;font-size:11px;line-height:1.35;color:#334155}
.talent-table small{display:block;margin-top:4px;color:#64748b}
.acoes-coluna{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.talent-profile-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.talent-profile-main{display:flex;align-items:center;gap:16px}
.talent-profile-main h2{margin:3px 0 5px;font-size:25px}
.talent-profile-main p{margin:0;color:#475569}
.talent-profile-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 62px;width:62px;height:62px;border-radius:18px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-size:21px;font-weight:900}
.talent-profile-contact{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.talent-profile-contact span{padding:6px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:700}
.talent-profile-actions{display:flex;gap:9px}
.talent-single-actions{display:grid;grid-template-columns:1.4fr 1.2fr auto auto auto;gap:10px;align-items:center}
.talent-single-actions select,.talent-single-actions input{min-height:42px}
.talent-single-actions>label{display:flex;align-items:center;gap:7px;color:#475569;font-size:12px;font-weight:800}
.talent-single-actions>label input[type=number]{width:68px;padding:8px;border:1px solid #cbd5e1;border-radius:9px}
.talent-history-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.talent-timeline-list{display:grid;gap:10px}
.talent-analysis-item,.talent-process-item{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}
.talent-analysis-item>div:nth-child(2),.talent-process-item>div:first-child{min-width:0;flex:1}
.talent-analysis-item strong,.talent-process-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.talent-analysis-item span,.talent-process-item span,.talent-analysis-item small,.talent-process-item small{display:block;margin-top:3px;color:#64748b;font-size:11px}
.talent-analysis-score{display:flex;align-items:center;justify-content:center;flex:0 0 50px;width:50px;height:42px;border-radius:11px;background:#e0f2fe;color:#075985;font-weight:900}
.talent-audit-list{display:grid;gap:0}.talent-audit-list article{display:flex;gap:12px;padding:13px 4px;border-bottom:1px solid #edf2f7}.talent-audit-list article:last-child{border-bottom:0}.talent-audit-dot{flex:0 0 10px;width:10px;height:10px;margin-top:5px;border-radius:50%;background:var(--primary-2)}.talent-audit-list strong{display:block}.talent-audit-list span{display:block;margin-top:4px;color:#64748b;font-size:11px}
@media(max-width:1200px){.banco-talentos-metricas{grid-template-columns:repeat(3,minmax(0,1fr))}.talent-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.talent-batch-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.talent-batch-toolbar .btn{width:100%}.talent-tag-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.banco-talentos-metricas,.talent-filter-grid,.talent-history-grid{grid-template-columns:1fr}.talent-filter-grid .campo-span-2{grid-column:auto}.talent-filter-actions,.talent-profile-header,.talent-profile-actions{align-items:stretch;flex-direction:column}.talent-batch-toolbar,.talent-single-actions{grid-template-columns:1fr}.talent-tag-form{position:static;width:auto;grid-template-columns:1fr}.talent-profile-main{align-items:flex-start}.talent-profile-header{align-items:flex-start}.talent-table{min-width:1050px}.talent-single-actions .btn{width:100%}}

/* Pacote 11 - Relatorios, SLA e indicadores */
.relatorios-hero{ align-items:stretch; }
.relatorios-filtros{ margin-bottom:22px; }
.relatorios-filter-row{ align-items:end; }
.relatorio-contexto{ margin-top:12px; color:var(--text-soft); font-size:14px; }
.relatorios-metricas{ margin-bottom:22px; }
.relatorios-main-grid{ align-items:start; }
.funil-lista{ display:flex; flex-direction:column; gap:14px; }
.funil-row{ padding:12px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.funil-row-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; color:var(--text); }
.funil-row-head span{ color:var(--text-soft); font-weight:700; font-size:13px; }
.funil-bar{ height:10px; border-radius:999px; background:#e7eef6; overflow:hidden; }
.funil-bar span{ display:block; height:100%; border-radius:999px; background:linear-gradient(90deg, var(--primary), var(--primary-2)); }
.sla-resumo{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.sla-resumo span{ display:inline-flex; align-items:center; min-height:34px; padding:0 12px; border-radius:999px; background:#f1f5f9; color:#334155; font-size:12px; font-weight:800; }
.alertas-lista{ display:flex; flex-direction:column; gap:10px; }
.alerta-sla{ display:block; padding:14px; border-radius:16px; border:1px solid var(--line); background:#fff; color:var(--text); }
.alerta-sla strong{ display:block; margin-bottom:4px; }
.alerta-sla span{ display:block; color:var(--text-soft); line-height:1.45; font-size:13px; }
.alerta-sla-alta{ border-color:#fecaca; background:#fff7f7; }
.alerta-sla-media{ border-color:#fed7aa; background:#fffaf3; }
.gargalos-lista{ display:flex; flex-direction:column; gap:10px; }
.gargalo-item{ display:grid; grid-template-columns:1fr auto auto; gap:14px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.gargalo-item span,.gargalo-item small{ display:block; color:var(--text-soft); font-size:12px; margin-top:4px; }
.relatorios-table td{ vertical-align:top; }
.sla-form small{ display:block; color:var(--text-soft); margin-top:6px; line-height:1.35; }
@media (max-width: 900px){
    .gargalo-item{ grid-template-columns:1fr; }
    .funil-row-head{ align-items:flex-start; flex-direction:column; gap:4px; }
}

/* Pacote 12 - Permissões, auditoria e LGPD */
.permissoes-matriz-wrap{ max-height:760px; overflow:auto; border:1px solid var(--line); border-radius:18px; }
.permissoes-matriz th{ position:sticky; top:0; z-index:2; background:#f8fafc; }
.permissoes-matriz input[type="checkbox"]{ width:20px; height:20px; accent-color:var(--primary-2); }
.permissoes-grupo td{ background:#eef6ff; color:#0f172a; font-weight:800; letter-spacing:.02em; text-transform:uppercase; font-size:12px; }
.text-center{ text-align:center; }
.filters-inline{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.filters-inline select{ min-width:280px; border:1px solid var(--line); border-radius:14px; padding:12px 14px; background:#fff; }
.audit-json{ white-space:pre-wrap; max-width:520px; max-height:240px; overflow:auto; padding:12px; background:#0f172a; color:#e2e8f0; border-radius:12px; font-size:12px; }
.tabela details summary{ cursor:pointer; color:var(--primary); font-weight:700; }

/* Pacote 16 - Usabilidade RH, menu lateral e fluxo guiado */
.sidebar-toggle-interno{
    width:100%;
    min-height:34px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    background:rgba(255,255,255,.06);
    color:#cbd5e1;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}
.sidebar-floating-toggle{
    position:fixed;
    z-index:80;
    left:14px;
    bottom:16px;
    width:46px;
    height:46px;
    border:none;
    border-radius:16px;
    background:linear-gradient(135deg, var(--primary), var(--primary-2));
    color:#fff;
    box-shadow:0 14px 28px rgba(15,23,42,.24);
    cursor:pointer;
    font-size:20px;
    font-weight:900;
}
.sidebar-hidden .sidebar{ transform:translateX(calc(-1 * var(--sidebar-width) - 24px)); }
.sidebar{ transition:transform .22s ease; }
.sidebar-hidden .admin-main{ margin-left:0; width:100%; }
.admin-main{ transition:margin-left .22s ease, width .22s ease; }
.menu-agrupado{ gap:9px; }
.menu-grupo{
    border:1px solid rgba(255,255,255,.06);
    border-radius:16px;
    background:rgba(255,255,255,.025);
    overflow:hidden;
}
.menu-grupo summary{
    list-style:none;
    min-height:38px;
    padding:0 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    color:#93a4bf;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.06em;
    cursor:pointer;
}
.menu-grupo summary::-webkit-details-marker{ display:none; }
.menu-grupo .menu-chevron{ transition:transform .2s ease; }
.menu-grupo[open] .menu-chevron{ transform:rotate(180deg); }
.menu-grupo-links{ padding:0 6px 8px; display:flex; flex-direction:column; gap:4px; }
.menu-grupo-links a{ min-height:38px; border-radius:12px; padding:0 10px; font-size:13px; }

.contratacao-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:22px;
    padding:28px 30px;
    margin-bottom:18px;
    background:linear-gradient(135deg, #0b1729 0%, #10243c 58%, #155e75 100%);
    color:#fff;
}
.contratacao-hero h2{ margin:8px 0 10px; font-size:34px; line-height:1.12; }
.contratacao-hero p{ margin:0; color:rgba(255,255,255,.86); line-height:1.65; max-width:800px; }
.contratacao-hero .page-eyebrow{ color:#67e8f9; }
.contratacao-hero .btn-outline{ background:rgba(255,255,255,.10); color:#fff; border-color:rgba(255,255,255,.2); }
.contratacao-steps{
    display:grid;
    grid-template-columns:repeat(6, minmax(0,1fr));
    gap:12px;
    margin-bottom:20px;
}
.contratacao-step{
    min-height:110px;
    padding:16px;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    box-shadow:var(--shadow-sm);
}
.contratacao-step strong{
    width:34px;
    height:34px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#e2e8f0;
    color:#334155;
    margin-bottom:12px;
}
.contratacao-step.ok strong{ background:#dcfce7; color:#166534; }
.contratacao-step span{ display:block; font-size:14px; font-weight:900; margin-bottom:5px; }
.contratacao-step small{ color:var(--text-soft); line-height:1.4; }
.contratacao-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:22px;
    margin-bottom:22px;
}
.contratacao-card{ padding:24px; }
.form-grid-compact{ gap:14px; }
.contratacao-operacao{ padding:24px; margin-bottom:22px; }
.contratacao-stats{ margin-bottom:20px; }
.contratacao-acoes-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:14px;
}
.contratacao-dicas{ padding:24px; }
.import-ia-insights{
    margin:14px 0 18px;
    padding:16px;
    border:1px solid #bae6fd;
    border-radius:18px;
    background:linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}
.insight-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.insight-grid div,
.insight-recommendation{
    padding:12px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
}
.insight-grid strong,
.insight-lists strong,
.insight-recommendation strong{ display:block; margin-bottom:5px; font-size:12px; color:#475569; text-transform:uppercase; letter-spacing:.04em; }
.insight-grid span,
.insight-recommendation span{ display:block; color:#0f172a; font-size:14px; font-weight:800; }
.insight-text{ color:#334155; line-height:1.55; margin-bottom:12px; }
.insight-lists{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.insight-lists div{ padding:12px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.insight-lists ul{ margin:0; padding-left:18px; color:#334155; line-height:1.55; }
.insight-recommendation small{ display:block; margin-top:5px; color:var(--text-soft); line-height:1.5; }
@media (max-width:1220px){
    .contratacao-steps{ grid-template-columns:repeat(3, minmax(0,1fr)); }
    .contratacao-acoes-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
    .insight-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:980px){
    .sidebar-hidden .sidebar{ transform:none; display:none; }
    .sidebar-floating-toggle{ top:12px; bottom:auto; left:auto; right:12px; }
    .contratacao-hero{ grid-template-columns:1fr; padding:24px; }
    .contratacao-steps{ grid-template-columns:1fr; }
    .contratacao-grid{ grid-template-columns:1fr; }
    .contratacao-acoes-grid{ grid-template-columns:1fr; }
    .insight-grid,
    .insight-lists{ grid-template-columns:1fr; }
}

/* Pacote 17 - pré-seleção antes da importação */
.import-ia-overview{ margin-bottom:22px; }
.stats-grid-mini{ grid-template-columns:repeat(5, minmax(0,1fr)); }
.stat-link{ text-decoration:none; color:inherit; transition:.18s ease; }
.stat-link:hover{ transform:translateY(-2px); border-color:#93c5fd; }
.stat-link.ativo{ border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.preimport-score-row{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
}
.preimport-class{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:7px 11px;
    font-size:12px;
    font-weight:900;
    border:1px solid var(--line);
    background:#f8fafc;
    color:#334155;
}
.preimport-recomendado{ background:#dcfce7; color:#166534; border-color:#bbf7d0; }
.preimport-revisao{ background:#fef9c3; color:#854d0e; border-color:#fde68a; }
.preimport-baixa{ background:#fee2e2; color:#991b1b; border-color:#fecaca; }
.preimport-insuficiente,
.preimport-sem_ia{ background:#e0f2fe; color:#075985; border-color:#bae6fd; }
.preimport-score-row strong{ color:#0f172a; }
.preimport-score-row small{ color:var(--text-soft); }
@media (max-width:1220px){ .stats-grid-mini{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:760px){ .stats-grid-mini{ grid-template-columns:1fr; } }

/* Pacote 18 - sala de teste adaptativa e transições */
.teste-progress-card{
    background:#ffffff;
    border-bottom:1px solid rgba(15,23,42,.08);
    padding:12px 18px 14px;
}

.teste-progress-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:8px;
    font-size:13px;
    color:#334155;
}

.teste-progress-head span{
    color:#64748b;
    font-weight:700;
}

.teste-progress-bar{
    height:8px;
    border-radius:999px;
    background:#e2e8f0;
    overflow:hidden;
    margin-bottom:10px;
}

.teste-progress-bar span{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg, var(--primary), var(--primary-2));
}

.teste-progress-steps{
    display:flex;
    gap:8px;
    overflow:auto;
    padding-bottom:2px;
}

.teste-progress-step{
    min-width:max-content;
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:999px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    color:#64748b;
    font-size:12px;
    font-weight:700;
}

.teste-progress-step b{
    width:20px;
    height:20px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#e2e8f0;
    color:#334155;
    font-size:11px;
}

.teste-progress-step.feito{
    background:#ecfdf5;
    border-color:#bbf7d0;
    color:#166534;
}

.teste-progress-step.feito b{
    background:#16a34a;
    color:#fff;
}

.teste-progress-step.atual{
    background:#eef6ff;
    border-color:#bfdbfe;
    color:#1d4ed8;
}

.teste-progress-step.atual b{
    background:#2563eb;
    color:#fff;
}

.teste-etapa-banner{
    background:#f8fbff;
    border-bottom:1px solid rgba(15,23,42,.08);
    padding:12px 18px;
    display:grid;
    gap:4px;
}

.teste-etapa-banner strong{
    font-size:14px;
    color:#0f172a;
}

.teste-etapa-banner span{
    font-size:13px;
    line-height:1.45;
    color:#475569;
}

.msg-transicao,
.msg-intro-etapa,
.msg-final-jornada{
    align-self:center !important;
    max-width:min(92%, 760px) !important;
    text-align:left;
    border-radius:18px !important;
    border:1px solid rgba(37,99,235,.18);
    background:#ffffff !important;
    box-shadow:0 10px 24px rgba(15,23,42,.08);
}

.msg-transicao strong,
.msg-intro-etapa strong,
.msg-final-jornada strong{
    color:#1d4ed8;
}

.msg-transicao p::before{
    content:'✓ ';
    color:#16a34a;
    font-weight:900;
}

.msg-intro-etapa p::before{
    content:'→ ';
    color:#2563eb;
    font-weight:900;
}

.msg-final-jornada{
    border-color:#bbf7d0;
    background:#f0fdf4 !important;
}

.msg-final-jornada strong{
    color:#166534;
}

@media (max-width: 768px){
    .teste-progress-card{
        padding:10px 12px 12px;
    }

    .teste-progress-steps{
        gap:6px;
    }

    .teste-progress-step{
        font-size:11px;
        padding:5px 8px;
    }

    .teste-etapa-banner{
        padding:10px 12px;
    }

    .teste-etapa-banner span{
        font-size:12px;
    }
}

/* Correção Pacote 18.1 - experiência da sala pública */
body.teste-body,
body.teste-body input,
body.teste-body textarea,
body.teste-body button,
body.teste-body select{
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.teste-flash-jornada{
    position:fixed;
    z-index:50;
    top:14px;
    left:50%;
    transform:translateX(-50%);
    width:min(760px, calc(100% - 32px));
    display:grid;
    gap:4px;
    padding:16px 18px;
    border-radius:18px;
    box-shadow:0 18px 48px rgba(15,23,42,.18);
    border:1px solid rgba(255,255,255,.7);
}
.teste-flash-jornada strong{
    font-size:16px;
    line-height:1.2;
}
.teste-flash-jornada span{
    font-size:14px;
    line-height:1.55;
    color:#334155;
}
.teste-flash-sucesso{
    background:linear-gradient(135deg,#ecfdf5,#f0fdf4);
    color:#166534;
    border-color:#bbf7d0;
}
.teste-flash-info{
    background:linear-gradient(135deg,#eff6ff,#f8fafc);
    color:#1d4ed8;
    border-color:#bfdbfe;
}

.teste-brand{
    position:relative;
}
.teste-side-toggle{
    margin-left:auto;
    border:1px solid #dbe7f3;
    background:#f8fbff;
    color:#0f172a;
    border-radius:999px;
    padding:8px 10px;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}
.teste-side-toggle:hover{
    background:#eaf3ff;
}
.teste-side-float{
    position:fixed;
    left:18px;
    top:18px;
    z-index:45;
    border:none;
    border-radius:999px;
    padding:11px 15px;
    font-size:13px;
    font-weight:800;
    color:#fff;
    background:linear-gradient(135deg,var(--primary),var(--primary-2));
    box-shadow:0 14px 36px rgba(15,23,42,.22);
    cursor:pointer;
}
.teste-web.teste-sidebar-collapsed{
    grid-template-columns:minmax(0, 1fr);
    max-width:980px;
}
.teste-web.teste-sidebar-collapsed .teste-side{
    display:none;
}

@media (min-width:769px){
    .teste-chat .teste-progress-card,
    .teste-chat .teste-etapa-banner{
        display:none;
    }
}

.teste-chat-top-left strong,
.teste-brand-text strong,
.teste-side-block h3{
    letter-spacing:-.01em;
}
.teste-side-meta div span{
    line-height:1.35;
}
.msg p{
    font-size:14px;
}

@media (max-width:768px){
    .teste-side-float,
    .teste-side-toggle{
        display:none !important;
    }
    .teste-flash-jornada{
        top:10px;
        width:calc(100% - 20px);
        padding:13px 14px;
    }
}

/* Correção sala pública - contexto dentro do chat, sem barra lateral */
.teste-web{
    grid-template-columns:minmax(0, 1fr) !important;
    max-width:1040px !important;
    gap:0 !important;
}
.teste-side,
.teste-side-float{
    display:none !important;
}
.teste-chat{
    width:100%;
}
.teste-chat .teste-progress-card,
.teste-chat .teste-etapa-banner{
    display:block !important;
}
.teste-contexto-candidato{
    background:linear-gradient(135deg,#ffffff,#f8fbff);
    border-bottom:1px solid rgba(15,23,42,.08);
    padding:18px 20px;
}
.teste-contexto-kicker{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-bottom:8px;
    color:#0f5f7a;
    background:#e0f2fe;
    border:1px solid #bae6fd;
    border-radius:999px;
    padding:5px 10px;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.03em;
}
.teste-contexto-candidato h2{
    margin:0;
    font-size:18px;
    line-height:1.45;
    color:#0f172a;
    font-weight:800;
    letter-spacing:-.02em;
}
.teste-contexto-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-top:14px;
}
.teste-contexto-grid div{
    border:1px solid #e2e8f0;
    background:#fff;
    border-radius:14px;
    padding:10px 12px;
    min-width:0;
}
.teste-contexto-grid strong{
    display:block;
    margin-bottom:4px;
    color:#64748b;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.teste-contexto-grid span{
    display:block;
    color:#0f172a;
    font-size:14px;
    font-weight:800;
    line-height:1.3;
    word-break:break-word;
}
@media (min-width:769px){
    .teste-web{
        max-width:1040px !important;
        padding:14px 18px 8px;
    }
    .teste-chat{
        min-height:0 !important;
        height:100%;
    }
}
@media (max-width:768px){
    .teste-contexto-candidato{
        padding:14px 12px;
    }
    .teste-contexto-candidato h2{
        font-size:15px;
    }
    .teste-contexto-grid{
        grid-template-columns:1fr;
        gap:8px;
    }
    .teste-contexto-grid div{
        padding:9px 10px;
    }
}

/* Correção sala candidato WhatsApp - 2026-07-14
   Mantém todo o contexto dentro da conversa e remove cards externos. */
.teste-shell{
    height:calc(100vh - 34px) !important;
    min-height:0 !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:stretch !important;
    justify-content:center !important;
    padding:0 !important;
}
.teste-web.teste-web-full,
.teste-web{
    grid-template-columns:minmax(0, 1fr) !important;
    max-width:960px !important;
    width:100% !important;
    height:100% !important;
    padding:14px 16px 8px !important;
    margin:0 auto !important;
    gap:0 !important;
}
.teste-side,
.teste-side-float,
.teste-contexto-candidato,
.teste-progress-card,
.teste-etapa-banner{
    display:none !important;
}
.teste-chat{
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    border-radius:22px !important;
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;
}
.teste-chat-top{
    min-height:68px;
    padding:12px 16px !important;
    background:#f0f2f5 !important;
}
.teste-chat-top-left strong{
    font-size:15px;
}
.teste-chat-top-left span{
    font-size:12px;
}
.teste-chat-body{
    flex:1 1 auto !important;
    min-height:0 !important;
    padding:18px 22px 18px !important;
    overflow-y:auto !important;
    background-color:#e5ddd5 !important;
    background-image:radial-gradient(rgba(255,255,255,.24) 1px, transparent 1px) !important;
    background-size:18px 18px !important;
}
.teste-chat-compose{
    flex:0 0 auto !important;
    padding:10px 12px 9px !important;
    background:#f0f2f5 !important;
}
.teste-form-principal{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
}
.teste-input-wrap.teste-input-chat{
    min-height:54px !important;
    border-radius:18px !important;
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    padding:7px 9px !important;
}
.teste-input-chat textarea{
    min-height:36px !important;
    max-height:86px !important;
    resize:none !important;
    font-size:14px !important;
    padding:8px 4px !important;
}
.teste-quick-actions{
    display:flex !important;
    gap:5px !important;
}
.quick-btn{
    width:34px !important;
    height:34px !important;
    border-radius:12px !important;
    font-size:15px !important;
    user-select:none;
    -webkit-user-select:none;
    touch-action:none;
}
.quick-btn-hold{
    background:#f8fafc !important;
}
.quick-btn-hold.is-recording{
    color:#fff !important;
    background:#ef4444 !important;
    border-color:#ef4444 !important;
    box-shadow:0 0 0 8px rgba(239,68,68,.14);
    animation:clickrhPulseRecord 1s infinite;
}
@keyframes clickrhPulseRecord{
    0%{ transform:scale(1); box-shadow:0 0 0 0 rgba(239,68,68,.28); }
    70%{ transform:scale(1.04); box-shadow:0 0 0 10px rgba(239,68,68,0); }
    100%{ transform:scale(1); box-shadow:0 0 0 0 rgba(239,68,68,0); }
}
.teste-audio-row-inline{
    margin-top:7px !important;
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:8px !important;
}
.teste-audio-inline-meta{
    font-size:12px !important;
    color:#475569 !important;
}
.audio-preview-wrap-inline{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    padding:6px 8px !important;
    border-radius:14px !important;
    background:#fff !important;
    border:1px solid #dbe7f3 !important;
}
.audio-preview-wrap-inline[hidden]{
    display:none !important;
}
.audio-preview-wrap-inline audio{
    height:34px !important;
    max-width:260px !important;
}
.audio-preview-note{
    font-size:12px !important;
    color:#2563eb !important;
    font-weight:700 !important;
}
.btn-chat-enviar-mini{
    width:52px !important;
    min-width:52px !important;
    height:52px !important;
    border-radius:18px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:20px !important;
}
.teste-finalizar-row{
    margin-top:8px !important;
    display:flex !important;
    justify-content:flex-end !important;
}
.btn-finalizar-mini{
    border-radius:14px !important;
    padding:9px 13px !important;
    font-size:13px !important;
}
.teste-helper-compact{
    margin-top:7px !important;
    font-size:11px !important;
}
.msg{
    max-width:min(82%, 680px) !important;
}
.msg p{
    font-size:14px !important;
    line-height:1.55 !important;
}
@media (max-width:768px){
    .teste-shell{
        height:calc(100vh - 28px) !important;
    }
    .teste-web.teste-web-full,
    .teste-web{
        padding:0 !important;
        max-width:none !important;
    }
    .teste-chat{
        border-radius:0 !important;
        border:none !important;
    }
    .teste-chat-top{
        min-height:62px !important;
        padding:10px 12px !important;
    }
    .teste-avatar{
        width:38px !important;
        height:38px !important;
        border-radius:13px !important;
        font-size:13px !important;
    }
    .teste-chat-status .badge{
        font-size:11px !important;
        padding:6px 9px !important;
    }
    .teste-chat-body{
        padding:12px 10px 12px !important;
        gap:10px !important;
    }
    .msg{
        max-width:88% !important;
        padding:10px 12px 9px !important;
    }
    .teste-chat-compose{
        padding:8px 8px 7px !important;
    }
    .teste-input-wrap.teste-input-chat{
        min-height:50px !important;
        border-radius:17px !important;
        gap:6px !important;
    }
    .emoji-toggle,
    .quick-btn{
        width:32px !important;
        height:32px !important;
    }
    .teste-quick-actions{
        gap:4px !important;
    }
    .btn-chat-enviar-mini{
        width:48px !important;
        min-width:48px !important;
        height:48px !important;
        border-radius:17px !important;
    }
    .teste-audio-row-inline{
        gap:6px !important;
    }
    .audio-preview-wrap-inline{
        width:100% !important;
        justify-content:space-between !important;
    }
    .audio-preview-wrap-inline audio{
        max-width:100% !important;
        flex:1 !important;
    }
    .teste-finalizar-row{
        justify-content:flex-end !important;
    }
    .btn-finalizar-mini{
        font-size:12px !important;
    }
}

/* Correção 18.4 - sala do candidato: introdução no chat e envio protegido */
.msg-boas-vindas{
    border:1px solid rgba(37,99,235,.16) !important;
    background:#ffffff !important;
}
.msg-boas-vindas p{
    font-size:14px !important;
    line-height:1.58 !important;
}
.msg-pending{
    opacity:.82 !important;
    filter:saturate(.92) !important;
}
.msg-pending time{
    color:#64748b !important;
    font-weight:700 !important;
}
.teste-chat-compose.is-sending{
    position:relative;
}
.teste-chat-compose.is-sending::after{
    content:'Aguarde, estamos registrando sua resposta...';
    display:block;
    margin-top:6px;
    font-size:12px;
    color:#2563eb;
    font-weight:700;
}
.btn-chat-enviar-mini.is-sending{
    cursor:wait !important;
    opacity:.76 !important;
}
.teste-input-chat textarea[readonly]{
    background:#fff !important;
    opacity:.8 !important;
}

/* Correção - processamento visível também no mobile */
.teste-mobile-processing{
    display:none;
    align-items:center;
    gap:10px;
    width:100%;
    padding:10px 12px;
    margin:0 0 8px 0;
    border-radius:14px;
    background:#e0f2fe;
    color:#075985;
    font-size:13px;
    font-weight:700;
    box-shadow:0 8px 18px rgba(14,165,233,.12);
}
.teste-mobile-processing[hidden]{
    display:none !important;
}
.teste-mobile-processing-spinner{
    width:16px;
    height:16px;
    border-radius:999px;
    border:2px solid rgba(7,89,133,.25);
    border-top-color:#075985;
    animation:clickrhSpinProcessando .8s linear infinite;
    flex:0 0 auto;
}
@keyframes clickrhSpinProcessando{
    to{ transform:rotate(360deg); }
}
@media (max-width: 768px){
    .teste-mobile-processing.is-visible{
        display:flex !important;
        position:relative;
        z-index:5;
    }
    .teste-chat-compose.is-sending::after{
        display:none !important;
        content:'' !important;
    }
    .teste-chat-compose.is-sending .btn-chat-enviar-mini{
        min-width:48px;
        pointer-events:none;
    }
    .teste-chat-compose.is-sending .teste-input-chat textarea{
        opacity:.75;
    }
}
