/* Recrute+ | ajustes visuais (v1): menu da conta, modais com cor antiga, aba Usuarios e Material de apoio.
   So apresentacao. Tema escuro usa os neutros do painel (#0a0c11 / #11141a); o tema claro nao e tocado. */

/* 1) Modais com fundo azul-marinho escrito direto no HTML (Novo usuario, confirmar, link gerado, adicionar candidato) */
body:not(.light-theme) [style*="background:#0f1626"] { background: #0a0c11 !important; border-color: #262b35 !important; }
body:not(.light-theme) [style*="background:#0d1526"] { background: #11141a !important; border-color: rgba(255, 255, 255, .1) !important; }

/* 2) Menu da conta (troca de ambiente) */
body:not(.light-theme) #clientCtxMenu { background: #0a0c11 !important; border-color: #262b35 !important; box-shadow: 0 18px 48px rgba(0, 0, 0, .55) !important; }
#clientCtxMenu { border-radius: 12px !important; padding: 6px !important; }
#clientCtxMenu .ctx-menu-item { min-height: 2.25rem; margin: 1px 0; padding: .4375rem .75rem; border-radius: 8px; }
#clientCtxMenu .ctx-menu-sep { border-top: 1px solid rgba(174, 190, 220, .14) !important; margin: 6px 4px !important; }
#clientCtxMenu .cm-actions .ctx-menu-item:not(.danger) { color: var(--text-muted); }
#clientCtxMenu .cm-actions .ctx-menu-item:not(.danger):hover { color: var(--text-primary); }
body:not(.light-theme) #clientCtxMenu .ctx-menu-item.active { background: rgba(82, 116, 217, .12); }

/* 3) Modal Novo usuario */
#newUserModal .nu-panel { border-radius: 16px !important; max-width: 780px !important; box-shadow: 0 24px 64px rgba(0, 0, 0, .5); }
#newUserModal .nu-head { padding: 1.25rem 1.5rem 1rem; }
#newUserModal .nu-head strong { font-size: 1.0625rem !important; font-weight: 700; color: var(--nu-strong); }
#newUserModal .nu-head .nu-help { margin-top: .25rem !important; font-size: .8125rem !important; }
#newUserModal .nu-sec-title { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nu-group); padding-top: .625rem; }
#newUserModal .nu-sec { padding: 1.125rem 0; }
#newUserModal .nu-label { font-size: .78125rem; }
#newUserModal .nu-foot { padding: .875rem 1.5rem 1.125rem; }
#newUserModal .nu-btn { min-height: 2.5rem; transition: background-color .15s ease, border-color .15s ease, filter .15s ease; }
#newUserModal .nu-btn-ghost:hover { background: rgba(128, 128, 128, .14); }
#newUserModal .nu-btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
#newUserModal .nu-btn:active:not(:disabled) { transform: scale(.98); }

/* 4) Aba Usuarios */
#usersView .users-head { padding: .5rem 1.5rem; margin-bottom: 1.25rem; }
#usersView .users-title { display: flex; align-items: center; gap: .5rem; font-size: 1.0625rem; font-weight: 700; }
#usersView .users-count { display: inline-block; min-width: 1.375rem; padding: .0625rem .4375rem; border-radius: 999px; border: 1px solid var(--nu-line); font-size: .6875rem; font-weight: 600; line-height: 1.4; text-align: center; color: var(--text-muted); font-variant-numeric: tabular-nums; }
#usersView .users-count:empty { display: none; }
#usersView .table-wrap { margin: 0 1.5rem; border: 1px solid var(--nu-line); border-radius: 12px; overflow: auto; }
#usersView table thead th { position: static; padding: .6875rem 1rem !important; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); background: transparent; border-bottom: 1px solid var(--nu-line); text-align: left !important; }
#usersTableBody td { padding: .625rem 1rem !important; vertical-align: middle; text-align: left; }
#usersTableBody tr { transition: background-color .15s ease; }
#usersTableBody tr:hover { background: rgba(128, 128, 128, .07); }
#usersTableBody tr:last-child { border-bottom: 0 !important; }
#usersTableBody .u-muted { color: var(--text-muted); }
#usersTableBody .u-vazio { padding: 2rem 1rem !important; text-align: center; color: var(--text-muted); }
#usersTableBody .u-user { display: inline-flex; align-items: center; gap: .625rem; font-weight: 600; color: var(--nu-strong); }
#usersTableBody .u-av { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--nu-line); background: rgba(128, 128, 128, .1); font-size: .75rem; font-weight: 700; color: var(--text-muted); }
#usersTableBody .u-pill { display: inline-block; padding: .125rem .5625rem; border-radius: 999px; border: 1px solid var(--nu-line); font-size: .71875rem; font-weight: 600; color: var(--text-muted); }
#usersTableBody .u-pill.u-admin { border-color: rgba(82, 116, 217, .5); color: #7fa2ff; background: rgba(82, 116, 217, .1); }
body.light-theme #usersTableBody .u-pill.u-admin { color: #2b56b8; }
#usersTableBody .u-status { display: inline-flex; align-items: center; gap: .4375rem; font-size: .78125rem; font-weight: 600; }
#usersTableBody .u-status i { width: .4375rem; height: .4375rem; border-radius: 50%; background: currentColor; }
#usersTableBody .u-on { color: #3fcf8e; }
#usersTableBody .u-off { color: #ff8a80; }
body.light-theme #usersTableBody .u-on { color: #1f9d63; }
body.light-theme #usersTableBody .u-off { color: #c0392b; }
#usersTableBody .u-date { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
#usersView .user-act-btn { height: 1.875rem; padding: 0 .75rem; background: transparent; border: 1px solid var(--nu-line); color: var(--text-muted); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
#usersView .user-act-btn:hover { filter: none; background: rgba(128, 128, 128, .12); color: var(--text-primary); }
#usersView .user-act-btn:active { transform: scale(.97); }
#usersView .user-act-ok { color: #3fcf8e; border-color: rgba(63, 207, 142, .4); background: transparent; }
#usersView .user-act-ok:hover { background: rgba(63, 207, 142, .12); color: #3fcf8e; }
#usersView .user-act-danger { color: #ff8a80; border-color: rgba(255, 138, 128, .35); background: transparent; }
#usersView .user-act-danger:hover { background: rgba(255, 138, 128, .12); color: #ff8a80; }
body.light-theme #usersView .user-act-btn { background: transparent; color: #475569; border-color: #cbd5e1; }
body.light-theme #usersView .user-act-btn:hover { background: #eef2f8; color: #1a1f2b; }
body.light-theme #usersView .user-act-ok { color: #1f9d63; border-color: #8fd5b5; }
body.light-theme #usersView .user-act-danger { color: #b3261e; border-color: #e6a8a3; }
body.light-theme #usersView .user-act-danger:hover { background: rgba(211, 47, 47, .08); }
@media (max-width: 520px) { #usersView .table-wrap { margin: 0 1rem; } #usersView .users-head { padding: .625rem 1rem; } }

/* 5) Material de apoio: icone em cada opcao */
.cv-opt { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 14px; }
.cv-oi { grid-column: 1; grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(174, 190, 220, .2); color: #8fa8ee; background: rgba(120, 140, 239, .08); }
.cv-oi svg { width: 20px; height: 20px; }
body.light-theme .cv-oi { color: #2b56b8; border-color: #cbd5e1; background: #eef2fb; }
.cv-opt .cv-ot { grid-column: 2; }
.cv-opt .cv-od { grid-column: 2; }
.cv-opt .cv-oc { grid-column: 3; }
.cv-opt:active { transform: scale(.995); }

/* 6) Menu do botao direito nas conversas */
.cctx-menu { min-width: 190px; padding: 6px; border: 1px solid rgba(174, 190, 220, .16); border-radius: 12px; background: #0a0c11; box-shadow: 0 18px 48px rgba(0, 0, 0, .55); transform-origin: top left; }
body.light-theme .cctx-menu { background: #fff; border-color: #cbd5e1; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.cctx-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 2.25rem; padding: .4375rem .75rem; border: 0; border-radius: 8px; background: transparent; color: var(--text-primary); font: inherit; font-size: .8125rem; text-align: left; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.cctx-item svg { width: 16px; height: 16px; flex: none; opacity: .75; }
.cctx-item:hover, .cctx-item:focus-visible { background: rgba(128, 128, 128, .14); outline: none; }
.cctx-item:active { transform: scale(.98); }
.cctx-danger { color: #ff8a80; }
.cctx-danger:hover, .cctx-danger:focus-visible { background: rgba(255, 138, 128, .12); }
body.light-theme .cctx-danger { color: #c0392b; }
.cctx-sep { height: 1px; margin: 5px 4px; background: rgba(174, 190, 220, .14); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes cctx-in { from { opacity: 0; transform: scale(.94) translateY(-4px); } to { opacity: 1; transform: none; } }
  .cctx-menu { animation: cctx-in .16s cubic-bezier(.16, 1, .3, 1) backwards; }
}

/* 7) Editar contato / candidato: cabecalho com subtitulo e rotulos mais claros */
.mdl-sub { margin-top: .25rem; font-size: .8125rem; font-weight: 400; color: var(--text-muted); }
#editContatoChatModal label, #editCandidatoCrmModal .ecc-label { font-size: .78125rem !important; font-weight: 600 !important; color: var(--text-muted) !important; }
#editContatoChatModal button, #editCandidatoCrmModal button, #addCandidatoCrmModal button { transition: background-color .15s ease, border-color .15s ease, filter .15s ease; }
#editContatoChatModal button:active, #editCandidatoCrmModal button:active, #addCandidatoCrmModal button:active { transform: scale(.98); }
#btnSaveEditContatoChat:hover { filter: brightness(1.1); }

/* 8) Sessoes sem candidatos */
.ses-vazio { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 420px; margin: 48px auto; padding: 0 16px; text-align: center; color: var(--text-muted); font-size: .8125rem; line-height: 1.5; }
.ses-vazio b { color: var(--text-primary); font-size: .9375rem; font-weight: 600; }
.ses-vazio-ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 6px; border: 1px solid rgba(174, 190, 220, .2); border-radius: 50%; }
.ses-vazio-ic svg { width: 20px; height: 20px; }

/* 9) Ficha do candidato: hierarquia (secoes em maiusculas pequenas, valores em destaque, linhas finas) */
.fc-drawer.fc-drawer { --fc-line: rgba(174, 190, 220, .12); }
body.light-theme .fc-drawer.fc-drawer { --fc-line: rgba(30, 41, 62, .1); }
.fc-drawer.fc-drawer .fc-drawer-head { padding: 24px 24px 18px; border-bottom: 1px solid var(--fc-line); }
.fc-drawer.fc-drawer .fc-identity small { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.fc-drawer.fc-drawer .fc-identity h2 { margin: 6px 0 10px; font-size: 23px; font-weight: 700; letter-spacing: -.01em; }
.fc-drawer.fc-drawer .fc-identity .fc-gestor { display: inline-block; padding: 4px 10px; border: 1px solid var(--fc-line); border-radius: 999px; font-size: 11.5px; font-weight: 600; background: transparent; }
.fc-drawer.fc-drawer .fc-identity .fc-no-manager { font-size: 12.5px; color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.fc-drawer.fc-drawer .fc-drawer-body { padding: 4px 24px 24px; }
.fc-drawer.fc-drawer .fc-section { margin: 0; padding: 20px 0; border-top: 1px solid var(--fc-line); }
.fc-drawer.fc-drawer .fc-section:first-child, .fc-drawer.fc-drawer .fc-notice + .fc-section { border-top: 0; }
.fc-drawer.fc-drawer .fc-section h3 { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.fc-drawer.fc-drawer .fc-interview { padding: 16px 18px; border: 1px solid var(--fc-line); border-left: 3px solid #7a8799; border-radius: 12px; background: rgba(128, 128, 128, .06); }
.fc-drawer.fc-drawer .fc-interview.is-confirmed { border-left-color: #3fcf8e; }
.fc-drawer.fc-drawer .fc-interview.is-proposed { border-left-color: #e6b84f; }
.fc-drawer.fc-drawer .fc-interview .fc-interview-date { margin: 8px 0 4px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.fc-drawer.fc-drawer .fc-interview .fc-interview-mode { font-size: 12.5px; color: var(--text-muted); }
.fc-drawer.fc-drawer .fc-history-dates { display: grid; margin-top: 12px; }
.fc-drawer.fc-drawer .fc-history-dates > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--fc-line); font-size: 12.5px; }
.fc-drawer.fc-drawer .fc-history-dates > div:first-child { border-top: 0; }
.fc-drawer.fc-drawer .fc-history-dates span { color: var(--text-muted); }
.fc-drawer.fc-drawer .fc-history-dates time { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; font-variant-numeric: tabular-nums; }
.fc-drawer.fc-drawer .fc-contact { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 11px 0; border-top: 1px solid var(--fc-line); font-size: 14px; }
.fc-drawer.fc-drawer .fc-contact:first-of-type { border-top: 0; padding-top: 0; }
.fc-drawer.fc-drawer .fc-contact > span:first-child { flex: none; font-size: 12.5px; color: var(--text-muted); }
.fc-drawer.fc-drawer .fc-cv { font-size: 14px; line-height: 1.6; }
.fc-drawer.fc-drawer .fc-history summary { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.fc-drawer.fc-drawer .fc-event b { font-size: 14px; }
.fc-drawer.fc-drawer .fc-footer { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--fc-line); }
.fc-drawer.fc-drawer .ef-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fc-drawer.fc-drawer .ef-item { padding: 12px 0; border-top: 1px solid var(--fc-line); font-size: 13px; line-height: 1.5; }
.fc-drawer.fc-drawer .ef-note, .fc-drawer.fc-drawer .ef-message { font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }

/* 10) Configuracoes da unidade */
#configuracoesUnidadeModal .cu-card { border-radius: 16px !important; box-shadow: 0 24px 64px rgba(0, 0, 0, .5); }
#configuracoesUnidadeModal .cu-head { padding: 22px 26px 18px !important; border-bottom: 1px solid var(--divider, #2a3550); }
#configuracoesUnidadeModal .cu-head h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 700; }
#configuracoesUnidadeModal .cu-head .cu-note { margin: 0; font-size: .875rem; }
body.light-theme #configuracoesUnidadeModal .cu-bloco > summary { gap: 14px !important; padding: 16px 26px !important; }
#configuracoesUnidadeModal .cu-bloco-icone { box-sizing: content-box; width: 18px; height: 18px; padding: 9px; border: 1px solid rgba(174, 190, 220, .18); border-radius: 10px; background: rgba(128, 128, 128, .06); color: var(--text-muted); }
body.light-theme #configuracoesUnidadeModal .cu-bloco-icone { color: #5b6b85; }
#configuracoesUnidadeModal .cu-bloco-titulos strong { font-size: .9375rem !important; font-weight: 600 !important; }
#configuracoesUnidadeModal .cu-bloco-titulos small { font-size: .8125rem; color: var(--text-muted); }
#configuracoesUnidadeModal .cu-bloco[open] > summary { background: transparent !important; }
#configuracoesUnidadeModal .cu-preservacao { font-size: .78125rem !important; color: var(--text-muted); }
#configuracoesUnidadeModal button { transition: background-color .15s ease, border-color .15s ease, filter .15s ease; }
#configuracoesUnidadeModal button:active:not(:disabled) { transform: scale(.98); }

/* 11) Configuracoes da unidade: conteudo de cada bloco (v2) */
#configuracoesUnidadeModal .cu-bloco > .cu-group { margin: 0; padding: 4px 26px 26px 90px; border: 0; border-radius: 0; background: transparent; }
#configuracoesUnidadeModal .cu-bloco > .cu-group > h3 { display: none; }
#configuracoesUnidadeModal .cu-group-body { display: grid; gap: 20px; }
#configuracoesUnidadeModal .cu-grid { gap: 18px 20px; }
#configuracoesUnidadeModal .cu-bloco label { display: flex; flex-direction: column; gap: 8px; margin: 0; font-size: .78125rem; font-weight: 600; color: var(--text-muted); }
#configuracoesUnidadeModal .cu-bloco input:not([type="hidden"]),
#configuracoesUnidadeModal .cu-bloco select:not(.rp-select-native),
#configuracoesUnidadeModal .cu-bloco textarea { min-height: 2.625rem; padding: .625rem .875rem; border: 1px solid rgba(174, 190, 220, .16); border-radius: 10px; background: rgba(255, 255, 255, .03); color: var(--text-primary); font-size: .875rem; font-weight: 400; transition: border-color .15s ease, box-shadow .15s ease; }
body.light-theme #configuracoesUnidadeModal .cu-bloco input:not([type="hidden"]),
body.light-theme #configuracoesUnidadeModal .cu-bloco select:not(.rp-select-native),
body.light-theme #configuracoesUnidadeModal .cu-bloco textarea { background: #f6f8fb; border-color: #cbd5e1; }
#configuracoesUnidadeModal .cu-bloco input:focus, #configuracoesUnidadeModal .cu-bloco select:focus, #configuracoesUnidadeModal .cu-bloco textarea:focus { outline: none; border-color: #5274D9; box-shadow: 0 0 0 3px rgba(82, 116, 217, .25); }
#configuracoesUnidadeModal .cu-bloco textarea { line-height: 1.5; resize: vertical; }
#configuracoesUnidadeModal .cu-bloco label small { font-size: .75rem; font-weight: 400; line-height: 1.45; color: var(--text-muted); }
#configuracoesUnidadeModal .cu-info { padding: 16px 18px; border: 1px solid rgba(82, 116, 217, .28); border-radius: 12px; background: rgba(82, 116, 217, .06); }
#configuracoesUnidadeModal .cu-info strong { display: block; margin-bottom: 8px; font-size: .84375rem; font-weight: 600; color: var(--text-primary); }
#configuracoesUnidadeModal .cu-info p { margin: 0 0 6px; font-size: .8125rem; line-height: 1.55; color: var(--text-muted); }
#configuracoesUnidadeModal .cu-info p:last-child { margin-bottom: 0; }
/* horarios: linhas limpas, remover discreto, adicionar tracejado */
#configuracoesUnidadeModal .cu-horarios-lista { display: grid; gap: 8px; }
#configuracoesUnidadeModal .cu-horario-linha { display: grid; grid-template-columns: minmax(0, 1fr) 116px 38px; gap: 8px; align-items: center; margin: 0; }
#configuracoesUnidadeModal .cu-horario-linha > button { width: 38px; height: 2.625rem; padding: 0; border: 1px solid rgba(174, 190, 220, .16); border-radius: 10px; background: transparent; color: var(--text-muted); font-size: 1.125rem; line-height: 1; cursor: pointer; }
#configuracoesUnidadeModal .cu-horario-linha > button:hover { border-color: rgba(255, 138, 128, .4); background: rgba(255, 138, 128, .1); color: #ff8a80; }
#configuracoesUnidadeModal .cu-adicionar-horario { width: 100%; margin: 8px 0 2px; padding: .5625rem .875rem; border: 1px dashed rgba(174, 190, 220, .3); border-radius: 10px; background: transparent; color: #8fa8ee; font-size: .8125rem; font-weight: 600; cursor: pointer; }
#configuracoesUnidadeModal .cu-adicionar-horario:hover { background: rgba(82, 116, 217, .1); border-color: rgba(82, 116, 217, .55); }
body.light-theme #configuracoesUnidadeModal .cu-adicionar-horario { color: #2b56b8; }
/* mensagens */
#configuracoesUnidadeModal .cu-message-card { padding: 16px 18px; border: 1px solid rgba(174, 190, 220, .14); border-radius: 12px; }
#configuracoesUnidadeModal .cu-model-preview { margin: 10px 0 0; padding: 12px 14px; border: 1px solid rgba(174, 190, 220, .12); border-radius: 10px; background: rgba(255, 255, 255, .025); font-size: .78125rem; line-height: 1.55; color: var(--text-muted); }
/* rodape */
#configuracoesUnidadeModal .cu-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 26px 18px; border-top: 1px solid var(--divider, #2a3550); }
#configuracoesUnidadeModal .cu-actions button { min-height: 2.5rem; padding: 0 1.125rem; border-radius: 10px; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
#configuracoesUnidadeModal .cu-actions #cuSalvar:hover:not(:disabled) { filter: brightness(1.1); }
@media (max-width: 640px) {
  #configuracoesUnidadeModal .cu-bloco > .cu-group { padding-left: 26px; }
  #configuracoesUnidadeModal .cu-horario-linha { grid-template-columns: minmax(0, 1fr) 104px 38px; }
}

/* 12) Tema claro: correcoes encontradas na revisao */
body.light-theme { --row-hover: #eef2f8; }
body.light-theme #editContatoChatModal button#btnCancelEditContatoChat, body.light-theme #btnCancelEditCandidatoCrm, body.light-theme #btnCancelAddCandidatoCrm { color: #334155 !important; border-color: #cbd5e1 !important; }
body.light-theme #usersView table thead th { color: #5b6b85; background: #f1f4f9; }
body.light-theme .cv-opt { border-color: #d7dce6; }
body.light-theme .cv-opt:hover { background: #f1f5ff; border-color: #aebdf0; }
body.light-theme #configuracoesUnidadeModal .cu-adicionar-horario { border-color: #b4c0d6; }
body.light-theme #configuracoesUnidadeModal .cu-horario-linha > button { border-color: #cbd5e1; }
body.light-theme #configuracoesUnidadeModal .cu-message-card, body.light-theme #configuracoesUnidadeModal .cu-model-preview { border-color: #dbe1ec; background: transparent; }
body.light-theme .ses-vazio-ic, body.light-theme #homeView .ih-hv-ic, body.light-theme #homeView .ih-hv-nx { border-color: #cbd5e1; }
body.light-theme .hbell-pop { border-color: #cbd5e1; box-shadow: 0 16px 40px rgba(15, 23, 42, .16); }
#configuracoesUnidadeModal .cu-message-card { padding: 16px 18px !important; display: grid; gap: 10px; }
body.light-theme .hbell-ag { color: #9a6700; }
body.light-theme .hbell-ag.is-late { color: #c0392b; }
body.light-theme .hbell-ag.is-muted { color: #5b6b85; }
body.light-theme .hbell-count { color: #9a6700; background: rgba(154, 103, 0, .12); }

/* 13) Tema claro: contraste (revisado no painel real; texto >= 3:1 sobre o fundo) */
html body.light-theme .hbell-badge.is-late { background: #d63b3b; color: #fff; }
html body.light-theme #homeView .hp.has-pending .hp-total-n, html body.light-theme #homeView .hp-it.has-pending .hp-c, html body.light-theme dialog.hpd .hpd-qtd { color: #b45309 !important; }
html body.light-theme #homeView .ih-online { color: #1d4ed8; background: rgba(37, 99, 235, .1); }
html body.light-theme #homeFollowup#homeFollowup .fu-existing-manager { color: #3b4a8a !important; background: rgba(82, 116, 217, .12) !important; }
html body.light-theme #homeFollowup#homeFollowup .fu-tag { color: #8a5a00 !important; background: rgba(217, 150, 20, .14) !important; }
html body.light-theme #homeFollowup#homeFollowup .fu-actions .fu-dismiss { color: #c0392b !important; }
html body.light-theme #homeFollowup#homeFollowup .fu-foot span, html body.light-theme #homeFollowup#homeFollowup .fu-foot { color: #5b6b85; }
html body.light-theme #homeFollowup#homeFollowup summary { color: #475569; }
html body.light-theme #planilhaView .ses-r-dir { color: #5b6b85; }
html body.light-theme .uca-card-status { color: #c0392b; }
html body.light-theme .uca-contato-v2.is-contacted { color: #1f7a4d; }
html body.light-theme .pj-mx-late { color: #9a6700; }
html body.light-theme .pj-mx-none { color: #64748b; }
html body.light-theme .pj-send { color: #1f7a4d; }
html body.light-theme .mt-kc-gr, html body.light-theme .mt-chip-ok { color: #1f7a4d; }
html body.light-theme .mt-kc-am, html body.light-theme .mt-chip-am { color: #9a6700; }
html body.light-theme .mt-kc-rd { color: #c0392b; }

/* 14) Tema claro: reforco de especificidade (inicio-aceito.css usa varios ids com !important no escuro) */
html body.light-theme #homeFollowup#homeFollowup#homeFollowup#homeFollowup .fu-tag { color: #8a5a00 !important; background: rgba(217, 150, 20, .14) !important; }
html body.light-theme #homeFollowup#homeFollowup#homeFollowup#homeFollowup .fu-actions .fu-dismiss { color: #c0392b !important; }
html body.light-theme #crmView#crmView#crmView#crmView#crmView .crm-card .uca-card-status { color: #c0392b !important; }
html body.light-theme [data-pj-view][data-pj-view][data-pj-view][data-pj-view] .pj-matrix .pj-send { color: #1a7f47 !important; }
html body.light-theme [data-pj-view][data-pj-view][data-pj-view][data-pj-view] .pj-matrix .pj-mx-late { color: #9a6700 !important; }
html body.light-theme [data-pj-view][data-pj-view][data-pj-view][data-pj-view] .pj-matrix .pj-mx-none { color: #64748b !important; }
html body.light-theme #funilPrincipalDados#funilPrincipalDados#funilPrincipalDados#funilPrincipalDados .mt-kb-sub.mt-kc-gr { color: #1a7f47 !important; }
html body.light-theme #funilPrincipalDados#funilPrincipalDados#funilPrincipalDados#funilPrincipalDados .mt-kb-sub.mt-kc-am { color: #9a6700 !important; }
html body.light-theme #funilPrincipalDados#funilPrincipalDados#funilPrincipalDados#funilPrincipalDados .mt-kb-sub.mt-kc-rd { color: #c0392b !important; }
html body.light-theme #funilPrincipalDados#funilPrincipalDados#funilPrincipalDados#funilPrincipalDados .mt-chip-ok { color: #1a7f47 !important; }
html body.light-theme #funilPrincipalDados#funilPrincipalDados#funilPrincipalDados#funilPrincipalDados .mt-chip-am { color: #9a6700 !important; }

/* 15) Tema claro: ultimos contrastes dos modais e do Follow-up */
html body.light-theme #homeFollowup#homeFollowup#homeFollowup#homeFollowup#homeFollowup#homeFollowup#homeFollowup#homeFollowup .fu-actions .fu-dismiss { color: #c0392b !important; }
html body.light-theme dialog.hpd .hpd-count { color: #9a6700; background: rgba(217, 150, 20, .14); }
html body.light-theme .nu-tab[aria-selected="true"] { color: #2b56b8; }
html body.light-theme #btnCloseEditContatoChat, html body.light-theme #btnCloseEditCandidatoCrm, html body.light-theme #btnCloseAddCandidatoCrm, html body.light-theme .nu-close { color: #5b6b85 !important; }
html body.light-theme #btnRemoveCandidatoCrm { color: #c0392b !important; border-color: rgba(192, 57, 43, .45) !important; }
html body.light-theme #addCandidatoCrmModal label, html body.light-theme #addCandidatoCrmModal label span { color: #5b6b85 !important; }
/* chip de modalidade dentro das linhas coloridas da planilha: texto escuro sobre fundo claro (legivel em verde, amarelo e vermelho) */
.row-confirmed td:not(.actions-col):not(.num-col) > span, .row-waiting td:not(.actions-col):not(.num-col) > span, .row-cancelled td:not(.actions-col):not(.num-col) > span { color: #1a2a6b !important; background: rgba(255, 255, 255, .6) !important; }

/* Atividade recente (Inicio): nome da movimentacao legivel nos dois temas */
body:not(.light-theme) #homeView#homeView .home-movement-item .home-list-name { color: var(--text-primary, #e9edf7) !important; }
body.light-theme #homeView#homeView .home-movement-item .home-list-name { color: #1a1f2b !important; }

/* 16) Tema claro: selo do sino sem anel escuro (o anel usava o fundo escuro) */
html body.light-theme .hbell-badge { border-color: #f4f6fa; box-shadow: 0 0 0 1px rgba(15, 23, 42, .06); }

/* 17) Pipeline: a tabela ocupa a largura toda (etapas distribuidas, sem sobra a direita) */
@media (min-width: 900px) {
  body [data-pj-view][data-pj-view][data-pj-view] .pj-matrix { table-layout: fixed !important; width: 100% !important; }
  body [data-pj-view][data-pj-view][data-pj-view] .pj-matrix th:nth-child(1) { width: 26% !important; }
  body [data-pj-view][data-pj-view][data-pj-view] .pj-matrix th:nth-child(2) { width: 12% !important; }
  body [data-pj-view][data-pj-view][data-pj-view] .pj-matrix th:last-child { width: 170px !important; }
}

/* 18) Pipeline: largura total e topo (titulo, abas e filtro) */
body #pipelineView#pipelineView .pj-heading, body #pipelineView#pipelineView .pj-content { max-width: none !important; margin-inline: 0 !important; }
body #pipelineView#pipelineView { padding: 20px 24px 28px !important; }
body #pipelineView#pipelineView .pj-heading { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--divider); }
body #pipelineView#pipelineView .pj-heading h2 { font-size: 1.125rem !important; font-weight: 700 !important; letter-spacing: -.01em; color: var(--text-primary) !important; }
body #pipelineView#pipelineView .pj-controls { display: flex !important; align-items: center !important; justify-content: space-between !important; flex-wrap: wrap; gap: 12px !important; padding: 0 0 14px !important; border: 0 !important; }
body #pipelineView#pipelineView .pj-tabs { display: flex; gap: 4px !important; padding: 3px; border: 1px solid var(--divider); border-radius: 10px; }
body #pipelineView#pipelineView .pj-tabs button { height: 30px; padding: 0 12px !important; border: 0; border-radius: 7px; background: transparent !important; color: var(--text-muted) !important; font-size: .8125rem !important; font-weight: 500 !important; transition: background-color .15s ease, color .15s ease; }
body #pipelineView#pipelineView .pj-tabs button:hover { color: var(--text-primary) !important; background: var(--row-hover) !important; }
body #pipelineView#pipelineView .pj-tabs button[aria-pressed="true"] { background: rgba(82, 116, 217, .2) !important; color: #9fb6ff !important; font-weight: 600 !important; }
body.light-theme #pipelineView#pipelineView .pj-tabs button[aria-pressed="true"] { background: #e3ebff !important; color: #1d4ed8 !important; }
body #pipelineView#pipelineView .pj-tabs button:active { transform: scale(.97); }
body #pipelineView#pipelineView .pj-controls select { width: 220px !important; min-width: 0 !important; max-width: 100% !important; height: 36px; flex: none !important; margin-left: auto; }
body #pipelineView#pipelineView .pj-controls > .rp-select-wrap { display: block !important; flex: none !important; width: 220px !important; max-width: 100% !important; margin-left: auto !important; }
body #pipelineView#pipelineView .pj-controls > .rp-select-wrap select { width: 100% !important; max-width: none !important; margin: 0 !important; }

/* 19) Editar candidato (Previas): 2 colunas, aviso unico e rodape claro */
#editCandidatoCrmModal > div { max-width: 480px !important; border-radius: 16px !important; }
#editCandidatoCrmModal > div > div:first-child > div { display: block; }
#editCandidatoCrmModal .ecc-row { gap: 14px; margin-bottom: 14px; }
#editCandidatoCrmModal > div > .ecc-field { margin-bottom: 14px; }
#editCandidatoCrmModal .ecc-field { gap: 7px; }
#editCandidatoCrmModal .ecc-input { border-radius: 10px !important; }
#editCandidatoCrmModal > div > .ecc-info { margin: 2px 1.25rem 14px !important; padding: 11px 14px; border: 1px solid rgba(82, 116, 217, .26); border-radius: 10px; background: rgba(82, 116, 217, .06); }
#editCandidatoCrmModal .ecc-info .ecc-hint { margin: 0 !important; font-size: .78125rem !important; line-height: 1.5; color: var(--text-muted); }
#editCandidatoCrmModal .ecc-info .ecc-hint:empty { display: none; }
#editCandidatoCrmModal .ecc-info .ecc-hint + .ecc-hint:not(:empty) { margin-top: 6px !important; }
#editCandidatoCrmModal textarea.ecc-input { min-height: 4.25rem !important; line-height: 1.5; }
#editCandidatoCrmModal #btnRemoveCandidatoCrm { font-size: .8125rem; font-weight: 500; }
#editCandidatoCrmModal #btnCancelEditCandidatoCrm, #editCandidatoCrmModal #btnSaveEditCandidatoCrm { min-height: 2.5rem; border-radius: 10px !important; }
#editCandidatoCrmModal #btnSaveEditCandidatoCrm:hover { filter: brightness(1.1); }
body.light-theme #editCandidatoCrmModal .ecc-info { border-color: #c7d4f5; background: #eef3ff; }
@media (max-width: 520px) { #editCandidatoCrmModal .ecc-row { flex-direction: column; gap: 14px; } }

/* 20) Configuracoes: horarios em visao semanal (um dia por linha, horarios como etiquetas) */
:is(#configuracoesUnidadeModal, #newUserModal) .cu-semana { display: grid; border: 1px solid rgba(174, 190, 220, .14); border-radius: 12px; overflow: hidden; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-dia { display: grid; grid-template-columns: 38px minmax(0, 1fr) 28px; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px 6px 14px; border-top: 1px solid rgba(174, 190, 220, .1); }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-dia:first-child { border-top: 0; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-nome { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border: 1px solid rgba(174, 190, 220, .18); border-radius: 8px; background: rgba(255, 255, 255, .03); font: 500 .8125rem ui-monospace, "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; color: var(--text-primary); }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-chip button { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-chip button:hover { background: rgba(255, 138, 128, .14); color: #ff8a80; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-vazio { font-size: .8125rem; color: var(--text-muted); opacity: .6; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-add { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px dashed rgba(174, 190, 220, .3); border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-add:hover { background: rgba(82, 116, 217, .12); border-color: rgba(82, 116, 217, .55); color: #9fb6ff; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-add:active, #configuracoesUnidadeModal .cu-sem-chip button:active { transform: scale(.94); }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-add[hidden] { display: none; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-novo { grid-column: 2 / 4; height: 32px; width: 130px; padding: 0 8px; border-radius: 8px; font: 500 .8125rem ui-monospace, "Cascadia Mono", Consolas, monospace; }
body.light-theme :is(#configuracoesUnidadeModal, #newUserModal) .cu-semana, body.light-theme :is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-dia { border-color: #dbe1ec; }
body.light-theme :is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-chip { border-color: #cbd5e1; background: #f6f8fb; }
body.light-theme :is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-add { border-color: #b4c0d6; }
body.light-theme :is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-add:hover { color: #2b56b8; }

/* 21) Configuracoes > Mensagens: lista com linhas finas (sem caixas), titulo + inicio do texto, um modelo aberto por vez */
#configuracoesUnidadeModal #cuPanel_mensagens .cu-message-card, #configuracoesUnidadeModal .cu-message-card { margin: 0 !important; padding: 0 !important; gap: 0 !important; border: 0 !important; border-top: 1px solid rgba(174, 190, 220, .12) !important; border-radius: 0 !important; background: transparent !important; overflow: hidden; }
#configuracoesUnidadeModal #cuPanel_mensagens .cu-message-card:first-of-type { border-top: 0 !important; }
#configuracoesUnidadeModal .cu-msg-head { display: grid; grid-template-columns: 10px minmax(0, 1fr) 20px; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 10px 4px; border: 0; background: transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease; }
#configuracoesUnidadeModal .cu-msg-head:hover { background: rgba(128, 128, 128, .06); }
#configuracoesUnidadeModal .cu-msg-dot { width: 8px; height: 8px; border-radius: 50%; background: #8b93a6; }
#configuracoesUnidadeModal .cu-msg-dot-faltou { background: #e8a93b; }
#configuracoesUnidadeModal .cu-msg-dot-sim { background: #4cc38a; }
#configuracoesUnidadeModal .cu-msg-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#configuracoesUnidadeModal .cu-msg-tit { font-size: .9375rem; font-weight: 600; }
#configuracoesUnidadeModal .cu-msg-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: var(--text-muted); }
#configuracoesUnidadeModal .cu-msg-chev { color: var(--text-muted); transition: transform .2s var(--mv-ease, ease); }
#configuracoesUnidadeModal .cu-msg-aberto .cu-msg-chev { transform: rotate(180deg); }
#configuracoesUnidadeModal .cu-message-card:not(.cu-msg-aberto) > label, #configuracoesUnidadeModal .cu-message-card:not(.cu-msg-aberto) > .cu-message-tools { display: none !important; }
#configuracoesUnidadeModal .cu-message-card.cu-msg-aberto > label, #configuracoesUnidadeModal .cu-message-card.cu-msg-aberto > .cu-message-tools { margin: 0 4px 0 24px !important; }
#configuracoesUnidadeModal .cu-message-card.cu-msg-aberto > .cu-message-tools { padding: 8px 0 18px; }
#configuracoesUnidadeModal .cu-message-card.cu-msg-aberto .cu-msg-prev { display: none; }
#configuracoesUnidadeModal .cu-message-card > label { font-size: 0 !important; gap: 0 !important; margin-bottom: 0 !important; }
#configuracoesUnidadeModal .cu-message-card > label textarea { font-size: .8125rem !important; }

/* 22) Usuarios: sem bolinha de inicial na tabela */
#usersTableBody .u-av { display: none !important; }

/* 23) Modal de usuario (novo/editar): hierarquia clara (secao > campo > ajuda) */
#newUserModal .nu-head strong { font-size: 1.1875rem !important; letter-spacing: -.01em; }
#newUserModal .nu-sec { grid-template-columns: 200px minmax(0, 1fr); gap: 12px 32px; padding: 22px 0; }
#newUserModal .nu-scroll > .nu-sec:first-child, #newUserModal .nu-scroll > div > .nu-sec:first-child { padding-top: 6px; }
#newUserModal .nu-sec-title { display: block; padding-top: 2px; font-size: .75rem; letter-spacing: .08em; color: var(--nu-strong); }
#newUserModal .nu-sec-title::after { display: block; margin-top: 6px; font-size: .8125rem; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.45; color: var(--text-muted); }
#newUserModal #nuSecAcesso::after { content: "Como a pessoa entra no painel."; }
#newUserModal #nuSecEmpresa::after { content: "Identificação do cliente e endereço do chat."; }
#newUserModal #nuSecEntrevista::after { content: "Onde, como e quando acontecem as seletivas."; }
#newUserModal #nuSecContato::after { content: "Canais que o candidato recebe."; }
#newUserModal #nuSecExtras::after { content: "Modelo de contratação e foto da unidade."; }
#newUserModal .nu-grid { gap: 18px 16px; }
#newUserModal .nu-field { gap: 8px; }
#newUserModal .nu-label { font-size: .8125rem; font-weight: 600; color: var(--nu-strong); }
#newUserModal .nu-input { min-height: 2.75rem; border-radius: 10px; font-size: .9375rem; }
#newUserModal .nu-input:disabled, #newUserModal .nu-input[readonly] { opacity: .6; }
#newUserModal .nu-help { font-size: .78125rem; line-height: 1.5; }
#newUserModal .nu-field .nu-help .nu-slug { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .75rem; }
#newUserModal .nu-hint { padding: 10px 14px; border: 1px solid rgba(82, 116, 217, .26); border-radius: 10px; background: rgba(82, 116, 217, .06); }
body.light-theme #newUserModal .nu-hint { border-color: #c7d4f5; background: #eef3ff; }
#newUserModal .nu-foot { padding: 14px 24px 18px; }
#newUserModal .nu-foot .nu-btn { min-height: 2.5rem; border-radius: 10px; font-weight: 600; transition: background-color .15s ease, filter .15s ease; }
#newUserModal .nu-foot .nu-btn:active { transform: scale(.98); }
@media (max-width: 720px) { #newUserModal .nu-sec { grid-template-columns: 1fr; gap: 12px; } }

/* 24) Modal de usuario: abas em pilulas e secoes em coluna unica (campos mais largos, ordem logica) */
#newUserModal .nu-tabs { gap: 6px; padding: 12px 24px; align-items: center; }
#newUserModal .nu-tab { min-height: 0; height: 32px; padding: 0 14px; border-radius: 8px; font-size: .8125rem; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
#newUserModal .nu-tab:hover { background: var(--row-hover); color: var(--nu-strong); }
#newUserModal .nu-tab:active { transform: scale(.97); }
#newUserModal .nu-tab[aria-selected="true"] { background: rgba(82, 116, 217, .2); color: #9fb6ff; font-weight: 600; }
#newUserModal .nu-tab[aria-selected="true"]::after { display: none; }
body.light-theme #newUserModal .nu-tab[aria-selected="true"] { background: #e3ebff; color: #1d4ed8; }
#newUserModal .nu-sec { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 0; }
#newUserModal .nu-sec-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
#newUserModal .nu-sec-title::after { display: inline; margin-top: 0; }
#newUserModal .nu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#newUserModal .nu-grid > .nu-full, #newUserModal .nu-grid > .nu-checks { grid-column: 1 / -1; }
#newUserModal .nu-field:has(#newUserModalidadeEntrevista) { order: 1; }
#newUserModal .nu-field:has(#newUserLimiteSeletiva) { order: 2; }
#newUserModal .nu-field:has(#newUserEndereco) { order: 3; }
#newUserModal .nu-field:has(#newUserBairro) { order: 4; }
#newUserModal #newUserHorariosPresenciaisField { order: 5; grid-column: 1 / -1; }
#newUserModal #newUserHorariosOnlineField { order: 6; grid-column: auto; }
#newUserModal .nu-grid:has(#newUserHorariosOnlineField:not([style*="none"])) #newUserHorariosPresenciaisField { grid-column: auto; }
#newUserModal #newUserInstrucaoOnlineField { order: 7; grid-column: 1 / -1; }
#newUserModal #newUserPresencialOptions { order: 8; }
#newUserModal textarea.nu-input { min-height: 4.5rem; line-height: 1.5; }
@media (max-width: 640px) { #newUserModal .nu-grid { grid-template-columns: minmax(0, 1fr); } #newUserModal .nu-tabs { padding: 10px 16px; } }

/* 25) Calendario das seletivas: celulas sem o padding global dos botoes (estourava a largura e desalinhava os dias) */
.ses-cal-pop .ses-cal-grid, .ses-cal-pop .ses-cal-dow { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ses-cal-pop .ses-cal-day { min-width: 0; padding: 0 !important; }
.ses-cal-pop .ses-cal-nav { padding: 0 !important; }

/* 26) Definir processo (Pipeline): paleta neutra, abas em pilula, prazos agrupados e trilha da cadencia */
.pj-settings.pj-settings { --pj-shell: #0a0c11; --pj-row: #0f1218; --pj-well: #0f1218; --pj-field: #12151c; --pj-line: rgba(174, 190, 220, .14); --pj-muted: #8a94a6; --pj-accent: #9fb6ff; width: min(600px, calc(100% - 28px)); border-radius: 16px; box-shadow: 0 24px 64px rgba(0, 0, 0, .5); }
body.light-theme .pj-settings.pj-settings { --pj-shell: #ffffff; --pj-row: #f6f8fb; --pj-well: #f6f8fb; --pj-field: #ffffff; --pj-line: #dbe1ec; --pj-muted: #5b6b85; --pj-accent: #1d4ed8; }
.pj-settings .pj-modal-head { align-items: flex-start; padding: 20px 24px 16px; }
.pj-settings h2 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.pj-settings .pj-sub { display: block; margin-top: 4px; font-size: .8125rem; font-weight: 400; color: var(--pj-muted); }
.pj-settings .pj-modal-nav { gap: 6px; padding: 12px 24px; border-bottom: 1px solid var(--pj-line); }
.pj-settings .pj-modal-nav button { padding: 0 14px; height: 32px; border: 0; border-radius: 8px; font-size: .8125rem; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.pj-settings .pj-modal-nav button:hover { background: rgba(128, 128, 128, .1); color: var(--pj-text); }
.pj-settings .pj-modal-nav button:active { transform: scale(.97); }
.pj-settings .pj-modal-nav button[aria-pressed=true] { background: rgba(82, 116, 217, .2); color: var(--pj-accent); font-weight: 600; }
body.light-theme .pj-settings .pj-modal-nav button[aria-pressed=true] { background: #e3ebff; }
.pj-settings .pj-modal-scroll { padding: 22px 24px 18px; }
.pj-settings h3 { font-size: .6875rem; letter-spacing: .08em; color: var(--pj-text); }
.pj-settings .pj-modal-scroll > div > p { margin: 6px 0 16px; font-size: .8125rem; color: var(--pj-muted); }
.pj-settings .pj-dues { border: 1px solid var(--pj-line); border-radius: 12px; overflow: hidden; }
.pj-settings .pj-due, .pj-settings .pj-extra { grid-template-columns: minmax(0, 1fr) 72px 34px; min-height: 52px; margin: 0; padding: 0 16px; border-top: 1px solid var(--pj-line); }
.pj-settings .pj-dues > :first-child { border-top: 0; }
.pj-settings .pj-due > span, .pj-settings .pj-extra > span { font-size: .9375rem; font-weight: 600; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: -.01em; }
.pj-settings .pj-due input { height: 36px; padding: 0 8px; border-radius: 8px; font: 600 .9375rem ui-monospace, "Cascadia Mono", Consolas, monospace; }
.pj-settings .pj-extra strong { grid-column: 2 / -1; text-align: right; font-size: .8125rem; font-weight: 500; }
.pj-settings .pj-summary { margin: 16px 0 20px; padding: 16px 18px; border: 1px solid rgba(82, 116, 217, .26); border-radius: 12px; background: rgba(82, 116, 217, .06); }
body.light-theme .pj-settings .pj-summary { border-color: #c7d4f5; background: #eef3ff; }
.pj-settings .pj-summary strong { font-size: .9375rem; font-weight: 600; }
.pj-settings .pj-trilha { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pj-settings .pj-ponto { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border: 1px solid var(--pj-line); border-radius: 8px; background: var(--pj-field); }
.pj-settings .pj-ponto b { font: 600 .8125rem ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--pj-text); }
.pj-settings .pj-ponto small { font-size: .75rem; color: var(--pj-muted); }
.pj-settings .pj-ponto + .pj-ponto::before { content: none; }
.pj-settings .pj-opening { padding: 16px 16px; border: 1px solid var(--pj-line); border-radius: 12px; row-gap: 2px; }
.pj-settings .pj-opening { font-size: .9375rem; font-weight: 600; }
.pj-settings .pj-opening small { font-weight: 400; font-size: .8125rem; }
.pj-settings .pj-opening input { height: 38px; border-radius: 8px; font: 600 .9375rem ui-monospace, "Cascadia Mono", Consolas, monospace; }
.pj-settings .pj-message-template { position: relative; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 14px 16px 16px; margin-top: 12px; border-radius: 12px; }
.pj-settings .pj-message-template label { font-size: .75rem; letter-spacing: .06em; }
.pj-settings .pj-message-template textarea { margin-top: 10px; min-height: 76px; font-size: .875rem; }
.pj-settings .pj-copy { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; margin: 0; border-radius: 8px; border-color: transparent; }
.pj-settings .pj-copy:hover { background: rgba(128, 128, 128, .12); color: var(--pj-text); }
.pj-settings .pj-modal-foot { padding: 14px 24px 18px; }
.pj-settings .pj-modal-foot button { min-height: 2.5rem; padding: 0 18px; border-radius: 10px; font-weight: 600; transition: background-color .15s ease, filter .15s ease; }
.pj-settings .pj-modal-foot button:active { transform: scale(.98); }
.pj-settings .pj-modal-foot button:not(.pj-primary) { border: 1px solid var(--pj-line); }
.pj-settings .pj-primary { background: #3461d1; }
.pj-settings .pj-primary:hover { filter: brightness(1.1); }

/* HORARIO_PICKER_V1: seletor de horario do painel (substitui o seletor nativo branco). Fica NA linha das etiquetas (ao lado), com o confirmar (check) dentro do campo HH:MM e o fechar em icone. */
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-picker { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-caixa { display: inline-flex; align-items: center; height: 28px; border: 1px solid rgba(174, 190, 220, .22); border-radius: 8px; background: rgba(255, 255, 255, .03); transition: border-color .15s ease; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-caixa:focus-within { border-color: rgba(82, 116, 217, .8); }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-caixa.invalido { border-color: rgb(240, 100, 100); }
/* os estilos gerais de campo do painel (borda, fundo, brilho de foco) vencem por especificidade: aqui o campo e neutralizado so dentro do seletor */
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-picker .cu-sem-novo { width: 58px !important; height: 100% !important; min-height: 0 !important; padding: 0 2px 0 9px !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0 !important; text-align: left; letter-spacing: .06em; color: var(--text-primary); font: 600 .8125rem ui-monospace, "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-ok { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 100%; padding: 0; border: 0; border-left: 1px solid rgba(174, 190, 220, .14); border-radius: 0 7px 7px 0; background: transparent; color: var(--text-muted); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-caixa.pronto .cu-sem-pk-ok { color: #9fb6ff; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-ok:hover { background: rgba(82, 116, 217, .14); color: #9fb6ff; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-fechar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-fechar:hover { background: rgba(255, 138, 128, .12); color: #ff8a80; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-ok:active, :is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-fechar:active { transform: scale(.94); }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-aviso { font-size: .75rem; color: var(--text-muted); }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-aviso:not(:empty) { flex-basis: 100%; }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-caixa.invalido ~ .cu-sem-pk-aviso { color: rgb(240, 100, 100); }
:is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-picker :is(.cu-sem-pk-ok, .cu-sem-pk-fechar):focus-visible { outline: 2px solid rgba(82, 116, 217, .7); outline-offset: 1px; }
body.light-theme :is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-caixa { border-color: #cbd5e1; background: #fff; }
body.light-theme :is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-ok { border-left-color: #dbe1ec; color: #5b6b85; }
body.light-theme :is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-caixa.pronto .cu-sem-pk-ok, body.light-theme :is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-ok:hover { color: #2b56b8; }
body.light-theme :is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-ok:hover { background: #e8eefc; }
body.light-theme :is(#configuracoesUnidadeModal, #newUserModal) .cu-sem-pk-fechar { color: #5b6b85; }

/* SES_SEL_SEM_FUNDO_V1: o grupo Selecionado / Nao selecionado / Sem interesse nao tem fundo nem moldura atras dos botoes (igual ao Compareceu / Faltou) */
html body #planilhaView.sessoes-active .ses-toggle.ses-toggle-sel { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
html body.light-theme #planilhaView .ses-toggle.ses-toggle-sel { background: transparent !important; border: 0 !important; }
