/* Design system do sistema jurídico — cinza neutro do Tailwind + dourado #aa976f.
   Cinzas de texto e bordas reforçados (2026-10-06): em monitores mais simples os cinzas claros sumiam. */

:root, [data-bs-theme="light"] {
    --app-primary: #927d57;
    --app-primary-hover: #766348;
    --app-primary-active: #5f513c;
    --app-primary-light: #aa976f;
    --app-primary-soft: #f0ebe1;
    --app-primary-text: #766348;
    --app-bg: #f9fafb;
    --app-surface: #ffffff;
    --app-surface-soft: #f3f4f6;
    --app-border: #d1d5db;
    --app-text: #111827;
    --app-text-2: #4b5563;
    --app-muted: #6b7280;
    --app-link: #766348;
    --app-highlight-bg: #f0ebe1;
    --app-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    --app-shadow-md: 0 4px 16px rgba(16, 24, 40, .08);
    --app-shadow-xl: 0 12px 36px rgba(16, 24, 40, .14);
    --app-radius: 14px;

    --bs-body-bg: #f9fafb;
    --bs-body-color: #111827;
    --bs-secondary-color: #4b5563;
    --bs-border-color: #c9ced6;
    --bs-link-color-rgb: 118, 99, 72;
    --bs-link-hover-color-rgb: 95, 81, 60;
}

[data-bs-theme="dark"] {
    --app-primary: #bba57e;
    --app-primary-hover: #ccb89b;
    --app-primary-active: #e1d5c2;
    --app-primary-light: #aa976f;
    --app-primary-soft: rgba(187, 165, 126, .12);
    --app-primary-text: #ccb89b;
    --app-bg: #0a0a0c;
    --app-surface: #16171a;
    --app-surface-soft: #1f2023;
    --app-border: #3c3f45;
    --app-text: #f3f4f6;
    --app-text-2: #c4c9d1;
    --app-muted: #9ca3af;
    --app-link: #ccb89b;
    --app-highlight-bg: rgba(187, 165, 126, .12);
    --app-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    --app-shadow-md: 0 6px 18px rgba(0, 0, 0, .6);

    --bs-body-bg: #0a0a0c;
    --bs-body-color: #f3f4f6;
    --bs-secondary-color: #c4c9d1;
    --bs-border-color: #43464d;
    --bs-link-color-rgb: 204, 184, 155;
    --bs-link-hover-color-rgb: 225, 213, 194;
}

/* ---------- Base ---------- */
html { font-size: 15px; }
body {
    margin: 0;
    background: var(--app-bg);
    color: var(--app-text);
    /* "Noto Color Emoji" antes das fontes do Windows: emojis coloridos e iguais em todo computador (o "Segoe UI" do
       Windows desenha alguns, como ✌️ ⚠️ ❤️ ⚖️, em preto e branco) */
    font-family: "IBM Plex Sans", "Inter", "Noto Color Emoji", -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Emoji", Roboto, sans-serif;
    font-weight: 400;
}
.text-muted, .text-body-secondary { color: var(--app-text-2) !important; font-weight: 400; }
.small, small { font-size: 13px; }
h1, .h1 { font-family: "Fraunces", "Source Serif 4", Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.3; }
h2, .h2 { font-family: "Fraunces", "Source Serif 4", Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.3; }
h3, .h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
h4, .h4 { font-size: 15px; font-weight: 600; line-height: 1.4; }
a { text-decoration: none; color: var(--app-link); }
a:hover { text-decoration: underline; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

:focus-visible { outline: 2px solid var(--app-primary-light); outline-offset: 2px; }

/* Sem o Preflight do Tailwind, um <button> "cru" (só com classes tw:) mantém a
   borda/fundo nativos do navegador por baixo do estilo pretendido. Os botões do
   Bootstrap (.btn) e as listas de caixinhas (.form-select, que é um botão) têm sua própria borda e não são afetados. */
button:not(.btn):not(.form-select) {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.dropdown-menu {
    --bs-dropdown-bg: var(--app-surface); --bs-dropdown-border-color: var(--app-border);
    --bs-dropdown-link-color: var(--app-text); --bs-dropdown-link-hover-bg: var(--app-surface-soft);
    --bs-dropdown-link-hover-color: var(--app-text); --bs-dropdown-border-radius: 12px;
    box-shadow: var(--app-shadow-md); font-size: 13px;
}
.dropdown-item { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dropdown-item.text-danger { color: #e03131 !important; }
.dropdown-info { padding: 8px 16px 4px; }

.app-main { flex: 1; min-width: 0; padding: 24px; }

/* ---------- Ícone temático e cabeçalho de tela ---------- */
.theme-icon {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--app-primary-soft); color: var(--app-primary-text); font-size: 26px;
}
.theme-icon.sm { width: 34px; height: 34px; font-size: 18px; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.page-head h2 { margin: 0; }
.page-head .subtitle { font-size: 13px; color: var(--app-text-2); font-weight: 400; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--app-text-2) !important; font-weight: 400; margin-bottom: 8px; }
.page-head-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- Componentes Bootstrap ajustados ---------- */
.card {
    --bs-card-bg: var(--app-surface); --bs-card-border-color: var(--app-border);
    --bs-card-cap-bg: var(--app-surface-soft); --bs-card-border-radius: var(--app-radius);
    --bs-card-inner-border-radius: calc(var(--app-radius) - 1px);
    box-shadow: var(--app-shadow);
}
.card-header { font-size: 16px; font-weight: 600; background: var(--app-surface-soft); border-bottom: 0; padding: 14px 16px; }
.card-header h4 { margin: 0; }
.filtro-panel { background: var(--app-surface-soft) !important; }

.btn { --bs-btn-border-radius: 10px; font-weight: 500; }
.btn-primary {
    --bs-btn-color: #fff; --bs-btn-bg: #111827; --bs-btn-border-color: #111827;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #766348; --bs-btn-hover-border-color: #766348;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #5f513c; --bs-btn-active-border-color: #5f513c;
    --bs-btn-focus-shadow-rgb: 118, 99, 72;
}
[data-bs-theme="dark"] .btn-primary {
    --bs-btn-color: #0a0a0c; --bs-btn-bg: #bba57e; --bs-btn-border-color: #bba57e;
    --bs-btn-hover-color: #0a0a0c; --bs-btn-hover-bg: #ccb89b; --bs-btn-hover-border-color: #ccb89b;
    --bs-btn-active-color: #0a0a0c; --bs-btn-active-bg: #e1d5c2; --bs-btn-active-border-color: #e1d5c2;
}
.btn-outline-primary {
    --bs-btn-color: var(--app-primary-text); --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #111827; --bs-btn-hover-border-color: #111827;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #111827; --bs-btn-active-border-color: #111827;
}
[data-bs-theme="dark"] .btn-outline-primary {
    --bs-btn-hover-color: #0a0a0c; --bs-btn-hover-bg: var(--app-primary); --bs-btn-hover-border-color: var(--app-primary);
    --bs-btn-active-color: #0a0a0c; --bs-btn-active-bg: var(--app-primary); --bs-btn-active-border-color: var(--app-primary);
}
.btn-outline-secondary {
    --bs-btn-color: var(--app-text); --bs-btn-border-color: var(--app-border); --bs-btn-bg: var(--app-surface);
    --bs-btn-hover-color: var(--app-text); --bs-btn-hover-bg: var(--app-surface-soft); --bs-btn-hover-border-color: var(--app-border);
    --bs-btn-active-color: var(--app-text); --bs-btn-active-bg: var(--app-surface-soft); --bs-btn-active-border-color: var(--app-border);
}
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.form-control, .form-select {
    background-color: var(--app-surface); border-color: var(--app-border); color: var(--app-text);
    border-radius: 10px; font-weight: 400; font-size: 14px;
}
.form-control::placeholder { color: var(--app-muted); font-weight: 400; }
.form-control:focus, .form-select:focus {
    background-color: var(--app-surface); color: var(--app-text);
    border-color: var(--app-primary-light); box-shadow: 0 0 0 .2rem rgba(170, 151, 111, .18);
}
.form-check-input:checked { background-color: var(--app-primary); border-color: var(--app-primary); }
.form-check-input:focus { border-color: var(--app-primary); box-shadow: 0 0 0 .2rem rgba(170, 151, 111, .18); }
.form-text { color: var(--app-text-2); font-weight: 400; font-size: 12px; }
.alert { border-radius: 10px; }

.badge { font-weight: 600; border-radius: 6px; }
.badge-soft { background: var(--app-primary-soft); color: var(--app-primary-text); }
.badge.bg-primary { background: var(--app-primary) !important; color: #fff; }
.tag-assunto { background: var(--app-primary-soft); color: var(--app-primary-text); border: 1px solid var(--app-border); font-weight: 500; }

/* ---------- Tabelas ---------- */
.app-table { --bs-table-bg: transparent; margin-bottom: 0; font-size: 13px; }
.app-table th, .app-table td { border: 1px solid var(--app-border); padding: 10px 12px; vertical-align: middle; }
.app-table thead th { font-size: 13px; font-weight: 600; background: var(--app-surface); color: var(--app-text); }
.app-table td { font-weight: 400; }
.app-table td.col-main { font-size: 14px; font-weight: 500; }
.app-table tr > *:first-child { border-left: 0; }
.app-table tr > *:last-child { border-right: 0; }
.app-table thead tr:first-child > * { border-top: 0; }
.app-table tbody tr:last-child > * { border-bottom: 0; }
.table-paper { overflow: hidden; border: 1px solid var(--app-border); border-radius: var(--app-radius); background: var(--app-surface); box-shadow: var(--app-shadow); }

.senha-provisoria {
    font-size: 22px; font-weight: 700; letter-spacing: .08em; padding: 8px 14px; border-radius: var(--app-radius);
    background: var(--app-surface-soft); color: var(--app-text); border: 1px dashed var(--app-primary);
    user-select: all;
}

/* ---------- Obrigatoriedade de campos ---------- */
.linha-obrigatoriedade { display: grid; grid-template-columns: 1fr 170px 140px; gap: 12px; align-items: center; padding: 10px 4px; margin: 0; }
.linha-obrigatoriedade label { margin: 0; cursor: pointer; }
.linha-obrigatoriedade + .linha-obrigatoriedade { border-top: 1px solid var(--app-border); }
.linha-obrigatoriedade .rotulo { font-size: 14px; font-weight: 600; }
.linha-obrigatoriedade .aplica { font-size: 12px; color: var(--app-text-2); font-weight: 400; }
.linha-obrigatoriedade .chave { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.linha-obrigatoriedade .chave .form-check-input { margin: 0; }
.linha-obrigatoriedade .texto-chave { font-size: 13px; font-weight: 500; }
@media (max-width: 575px) { .linha-obrigatoriedade { grid-template-columns: 1fr auto; } .linha-obrigatoriedade .aplica { display: none; } }

/* ---------- Notificações ---------- */
[data-bs-theme="dark"] .ic-moon, [data-bs-theme="light"] .ic-sun { display: none; }
.notif-menu { min-width: 330px; max-width: 92vw; padding: 6px 0; }
.notif-item { flex-direction: column; align-items: flex-start !important; gap: 2px !important; white-space: normal; padding: 9px 16px; }
.notif-item.nao-lida { background: var(--app-primary-soft); }
.notif-titulo { font-size: 13px; font-weight: 600; }
.notif-quando { font-size: 11px; font-weight: 400; color: var(--app-text-2); }
.notif-numero { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--app-text-2); font-variant-numeric: tabular-nums; }
.notif-numero i { font-size: 12px; }
.notif-numero-lista { font-weight: 500; font-size: 13px; color: var(--app-text-2); font-variant-numeric: tabular-nums; }
.notif-linha { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.notif-linha + .notif-linha { border-top: 1px solid var(--app-border); }
.notif-linha.nao-lida { background: var(--app-primary-soft); }

/* ---------- Grupos de trabalho ---------- */
.opcao-notificacao { padding: 12px 14px; border: 1px solid var(--app-border); border-radius: var(--app-radius); background: var(--app-surface-soft); }
.lista-membros { max-height: 340px; overflow-y: auto; border: 1px solid var(--app-border); border-radius: var(--app-radius); padding: 6px; background: var(--app-surface); }
.membro-item { border-radius: 8px; font-size: 14px; font-weight: 500; }
.membro-item label { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 0; cursor: pointer; border-radius: 8px; }
.membro-item:hover { background: var(--app-primary-soft); }
.membro-item input { margin: 0; flex-shrink: 0; }
.lista-marcavel .lista-membros { padding: 4px; }
.lista-marcavel > .form-select { cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-marcavel .membro-item { font-size: 13px; }
.lista-marcavel .membro-item label { padding: 3px 8px; gap: 8px; }

/* ---------- Avatares de usuário ---------- */
.avatar-app {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--app-primary-soft); color: var(--app-primary-text); font-weight: 700; font-size: 16px;
}
.avatar-app.sm { width: 30px; height: 30px; font-size: 13px; }
.avatar-app.lg { width: 110px; height: 110px; font-size: 44px; border: 3px solid var(--app-border); }
.avatar-app img, .user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-avatar { overflow: hidden; }

/* ---------- Configurações ---------- */
.logo-previa {
    width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--app-radius);
    display: flex; align-items: center; justify-content: center; font-size: 32px;
    background: var(--app-surface-soft); border: 1px dashed var(--app-border); color: var(--app-primary);
    overflow: hidden;
}
.logo-previa img { width: 100%; height: 100%; object-fit: contain; }
.previa-topo {
    display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 16px; color: #fff;
    background: #111827; border-radius: 0 0 0 0;
}

/* ---------- Resumo A Fazer (Home) ---------- */
.afazer-corpo { display: flex; align-items: center; }
.afazer { width: 100%; display: flex; align-items: center; gap: 32px; }
.afazer-rosca { position: relative; flex: 0 0 auto; width: clamp(170px, 44%, 260px); aspect-ratio: 1 / 1; }
.afazer-rosca canvas { width: 100% !important; height: 100% !important; }
.afazer-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.afazer-centro span { font-size: 14px; color: var(--app-text-2); font-weight: 600; }
.afazer-centro strong { font-size: 34px; font-weight: 700; line-height: 1.1; }
.afazer-legenda { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.afazer-linha { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.afazer-linha .ponto { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.afazer-linha .rotulo { flex: 1; color: var(--app-text-2); font-weight: 500; white-space: nowrap; }
.afazer-linha .valor { font-weight: 700; min-width: 24px; text-align: right; }
.afazer-linha .pct { color: var(--app-text-2); font-weight: 500; min-width: 40px; text-align: right; }
.afazer-corpo { container-type: inline-size; }
@container (max-width: 420px) {
    .afazer { flex-direction: column; gap: 20px; }
    .afazer-rosca { width: 190px; }
    .afazer-legenda { width: 100%; max-width: 320px; }
}

.cabecalho-afazer { min-height: 60px; }
.afazer-lista { max-height: 640px; overflow-y: auto; }
.afazer-item { border-left: 4px solid transparent; }
.afazer-item-vermelho { border-left-color: var(--bs-danger); background: rgba(var(--bs-danger-rgb), .06); }
.afazer-item-amarelo { border-left-color: var(--bs-warning); background: rgba(var(--bs-warning-rgb), .08); }
.afazer-item-verde { border-left-color: var(--bs-success); background: rgba(var(--bs-success-rgb), .06); }
.calendario-afazer { max-width: 640px; }
.calendario-afazer-cabecalho { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.calendario-afazer-cabecalho strong { font-size: 18px; }
.calendario-afazer-tabela { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendario-afazer-tabela th { font-size: 13px; font-weight: 600; color: var(--app-text-2); text-align: center; padding: 6px 0; text-transform: uppercase; }
.calendario-afazer-tabela td { text-align: center; padding: 3px; }
.dia-calendario { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 56px; border-radius: 10px; color: var(--app-text); text-decoration: none; font-size: 16px; font-weight: 500; }
.dia-calendario:hover { background: var(--app-primary-soft); }
.dia-calendario.fora-do-mes { color: var(--app-text-2); opacity: 0.45; }
.dia-calendario.hoje { border: 1px solid var(--app-primary); }
.dia-calendario.com-evento { background: var(--app-primary-soft); color: var(--app-primary); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--app-primary); }
.dia-calendario.com-evento.fora-do-mes { opacity: 0.7; }
.dia-calendario.selecionado { background: #111827; color: #fff; box-shadow: none; }
[data-bs-theme="dark"] .dia-calendario.selecionado { background: var(--app-primary); color: #0a0a0c; }
.dia-calendario.selecionado .ponto-evento { background: #fff; }
.dia-calendario .ponto-evento { width: 6px; height: 6px; border-radius: 50%; background: var(--app-primary); }
.dia-calendario.selecionado .ponto-evento { background: #fff; }

/* ---------- Hub de módulo (Pessoa, Processo...) ---------- */
.hub-head {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; margin-bottom: 24px;
    background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--app-radius); box-shadow: var(--app-shadow);
}
.hub-search { margin-left: auto; position: relative; width: min(420px, 100%); }
.hub-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--app-muted); font-size: 16px; }
.hub-search input { padding-left: 40px; height: 40px; }
.hub-titulo { font-size: 15px; font-weight: 700; color: var(--app-link); }
.hub-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.hub-quick-item, .hub-item {
    display: flex; align-items: center; gap: 12px; color: var(--app-text); text-decoration: none !important;
    background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--app-radius);
}
.hub-quick-item { padding: 12px 14px; box-shadow: var(--app-shadow); }
.hub-quick-label { flex: 1; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; }
.hub-item { padding: 11px 14px; font-size: 13px; font-weight: 600; }
.hub-item-icone { color: var(--app-primary); font-size: 16px; }
.hub-item-label { flex: 1; }
.hub-quick-item i.ti-chevron-right, .hub-item i.ti-chevron-right { color: var(--app-muted); font-size: 15px; }
.hub-quick-item, .hub-item {
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
a.hub-quick-item:hover, a.hub-item:hover,
a.hub-quick-item:focus-visible, a.hub-item:focus-visible {
    transform: scale(1.025);
    z-index: 2;
    background: var(--app-primary-soft);
    border-color: var(--app-primary);
    box-shadow: var(--app-shadow-md);
    outline: none;
}
a.hub-quick-item:hover .hub-quick-label, a.hub-item:hover .hub-item-label,
a.hub-quick-item:focus-visible .hub-quick-label, a.hub-item:focus-visible .hub-item-label,
a.hub-quick-item:hover i.ti-chevron-right, a.hub-item:hover i.ti-chevron-right { color: var(--app-primary-text); }
@media (prefers-reduced-motion: reduce) {
    .hub-quick-item, .hub-item { transition: none; }
    a.hub-quick-item:hover, a.hub-item:hover { transform: none; }
}
.hub-quick-item.disabled, .hub-item.disabled { opacity: .55; cursor: not-allowed; }
.hub-quick-item small, .hub-item small { font-size: 11px; font-weight: 400; color: var(--app-text-2); }
.hub-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }

/* ---------- Resumo dos processos ---------- */
.resumo-lista { border: 1px solid var(--app-border); border-radius: var(--app-radius); overflow: hidden; }
.resumo-linha {
    display: grid; grid-template-columns: 50% 1fr 40px; align-items: center;
    border-top: 1px solid var(--app-border); color: var(--app-text); text-decoration: none !important;
}
.resumo-linha:first-child { border-top: 0; }
.resumo-rotulo { padding: 14px 16px; background: var(--app-surface-soft); font-size: 13px; font-weight: 600; align-self: stretch; display: flex; align-items: center; }
.resumo-total { padding: 14px 16px; font-size: 14px; font-weight: 700; color: var(--app-link); }
.resumo-total.zero { color: var(--app-text); }
.resumo-linha i { color: var(--app-link); font-size: 16px; }
.resumo-linha.clicavel:hover { background: var(--app-primary-soft); }
.resumo-linha.clicavel:hover .resumo-rotulo { background: transparent; }

.chip-filtro {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px;
    background: var(--app-primary-soft); color: var(--app-primary-text); font-size: 13px; font-weight: 600;
}
.chip-filtro a { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; color: inherit; }
.chip-filtro a:hover { background: var(--app-border); text-decoration: none; }

/* Login: ver templates/registration/login.html (classes Tailwind com prefixo tw:) */

/* ---------- Cartão de filtros recolhível ---------- */
.cabecalho-recolhivel { cursor: pointer; user-select: none; }
.cabecalho-recolhivel .seta-recolher { transition: transform .2s ease; }
.cabecalho-recolhivel[aria-expanded="false"] .seta-recolher { transform: rotate(180deg); }

/* ---------- Caixa de marcação em formulários (ex.: Processo Eletrônico) ---------- */
.caixa-marcavel { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 14px; border: 1px solid var(--app-border); border-radius: var(--app-radius); background: var(--app-surface); font-size: 14px; font-weight: 600; cursor: pointer; height: 100%; }
.caixa-marcavel:hover { background: var(--app-primary-soft); }
.caixa-marcavel input { margin: 0; flex-shrink: 0; }

/* ---------- Central de operações: janela com todas as opções ---------- */
.hub-modal { border: 0; border-radius: 18px; overflow: hidden; background: var(--app-bg); }
.hub-modal .modal-header { align-items: flex-start; padding: 22px 28px 16px; background: var(--app-surface); border-bottom: 1px solid var(--app-border); }
.hub-modal .modal-title { font-weight: 800; font-size: 20px; }
.btn-close-hub { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--app-primary-soft); color: var(--app-text-2); display: inline-flex; align-items: center; justify-content: center; }
.btn-close-hub:hover { background: var(--app-border); }
.hub-modal-topo { background: var(--app-surface); padding: 16px 28px 0; border-bottom: 1px solid var(--app-border); }
.hub-modal-busca { position: relative; margin-bottom: 14px; }
.hub-modal-busca i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--app-muted); }
.hub-modal-busca input { padding-left: 40px; height: 46px; border-radius: 12px; }
.hub-abas { gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; }
.hub-aba { border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--app-text-2); white-space: nowrap; }
.hub-aba:hover { background: var(--app-primary-soft); }
.hub-aba.active { background: var(--app-surface); border-color: var(--app-primary); color: var(--app-primary-text); box-shadow: var(--app-shadow); }
.hub-aba.sem-resultado { opacity: .45; }
.hub-modal .modal-body { padding: 24px 28px 28px; min-height: 340px; }
.hub-modal-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 991px) { .hub-modal-grade { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .hub-modal-grade { grid-template-columns: 1fr; } .hub-modal .modal-header, .hub-modal-topo, .hub-modal .modal-body { padding-left: 16px; padding-right: 16px; } }

/* ---------- Lista de opções em colunas (ex.: Assunto do processo) ---------- */
.lista-em-colunas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px 14px; max-height: 360px; overflow-y: auto; padding: 8px; border: 1px solid var(--app-border); border-radius: var(--app-radius); background: var(--app-surface); align-content: start; }
.item-coluna { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 4px 8px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.item-coluna:hover { background: var(--app-primary-soft); }
.item-coluna input { margin-top: 3px; flex-shrink: 0; }

/* ---------- Seletor de pessoa com lupa ---------- */
.seletor-pessoa .form-control[readonly] { background: var(--app-bg); cursor: default; }
.seletor-pessoa .btn { min-width: 44px; }
.linha-localizada { cursor: pointer; }

/* ---------- Calendário da Agenda (estilo Google Agenda) ---------- */
.calendario-cheio .app-main { padding: 10px 14px; }
.cal-app { display: flex; gap: 18px; height: calc(100vh - 64px - 24px); min-height: 560px; }
.cal-lado { width: 250px; flex: 0 0 250px; overflow-y: auto; padding-right: 4px; }
.cal-criar { width: 100%; padding: 12px 0; border-radius: 28px; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.18); margin-bottom: 18px; }
.cal-principal { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 16px; padding: 12px 14px; }
.cal-barra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-titulo { font-size: 20px; font-weight: 600; margin: 0 0 0 6px; }
.cal-barra-fim { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cal-aviso { padding: 6px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 8px; }
.cal-aviso.ok { background: #e6f4ea; color: #1e6b32; }
.cal-aviso.erro { background: #fdecea; color: #a12622; }
#calendario { flex: 1; min-height: 0;
    --fc-border-color: var(--app-border); --fc-page-bg-color: transparent; --fc-neutral-bg-color: var(--app-primary-soft);
    --fc-today-bg-color: var(--app-primary-soft); --fc-event-bg-color: var(--app-primary); --fc-event-border-color: var(--app-primary);
    --fc-now-indicator-color: #e5484d; --fc-list-event-hover-bg-color: var(--app-primary-soft); --fc-neutral-text-color: var(--app-text-2);
    --fc-button-bg-color: var(--app-primary); --fc-button-border-color: var(--app-primary); }
#calendario .fc-col-header-cell-cushion, #calendario .fc-daygrid-day-number, #calendario .fc-list-day-text, #calendario .fc-list-day-side-text { color: var(--app-text); text-decoration: none; }
#calendario .fc-event { cursor: pointer; border-radius: 6px; }
#calendario .fc-event.ev-urgente { --fc-event-bg-color: #d64545; --fc-event-border-color: #d64545; }
#calendario .fc-event.ev-de-outro { opacity: .82; }
#calendario .fc-event.ev-realizado { --fc-event-bg-color: #6b8f71; --fc-event-border-color: #6b8f71; opacity: .8; }
#calendario .fc-event.ev-realizado .fc-event-title { text-decoration: line-through; }
#calendario .fc-event.ev-cancelado { --fc-event-bg-color: #8a8a8a; --fc-event-border-color: #8a8a8a; opacity: .55; }
#calendario .fc-event.ev-cancelado .fc-event-title { text-decoration: line-through; }
#calendario .ev-clipe { margin-left: 4px; font-size: 12px; }
.cal-mini { margin-bottom: 14px; }
.cal-mini-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; font-size: 14px; }
.cal-mini-nav { border: 0; background: transparent; color: var(--app-text-2); padding: 2px 6px; border-radius: 50%; }
.cal-mini-nav:hover { background: var(--app-primary-soft); }
.cal-mini table { width: 100%; border-collapse: collapse; text-align: center; }
.cal-mini th { font-size: 11px; font-weight: 600; color: var(--app-text-2); padding: 2px 0; }
.cal-mini td { padding: 1px 0; }
.cal-mini td button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; font-size: 12px; color: var(--app-text); }
.cal-mini td button:hover { background: var(--app-primary-soft); }
.cal-mini td button.fora { color: var(--app-text-2); opacity: .55; }
.cal-mini td button.hoje { border: 1px solid var(--app-primary); font-weight: 700; }
.cal-mini td button.escolhido { background: var(--app-primary); color: #fff; }
.cal-filtros details > summary { cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--app-text-2); margin-bottom: 6px; }
.cal-tipos { max-height: 260px; overflow-y: auto; }
.cal-filtros h6 { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--app-text-2); margin: 0 0 6px; }
.cal-filtros .form-check { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; padding-left: 0; font-size: 14px; cursor: pointer; }
.cal-filtros .form-check-input { margin: 0; float: none; }
.cal-info { display: flex; gap: 12px; margin-bottom: 8px; }
.cal-info-rotulo { flex: 0 0 110px; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--app-text-2); padding-top: 2px; }
.cal-texto { white-space: pre-wrap; }
.cal-anexos h6 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.cal-anexo { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--app-border); flex-wrap: wrap; }
.cal-anexo-nome { font-weight: 500; word-break: break-all; }
.cal-soltar { border: 2px dashed var(--app-border); border-radius: 10px; padding: 14px; text-align: center; color: var(--app-text-2); margin-top: 8px; }
.cal-soltar.sobre { border-color: var(--app-primary); background: var(--app-primary-soft); }
@media (max-width: 991px) {
    .cal-app { flex-direction: column; height: auto; }
    .cal-lado { width: 100%; flex: none; }
    .cal-mini, .cal-filtros { display: none; }
    .cal-criar { width: auto; padding: 8px 22px; margin-bottom: 4px; }
    #calendario { min-height: 70vh; }
}

.cal-pessoa { margin-bottom: 16px; }
.cal-pessoa h6 { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--app-text-2); margin: 0 0 6px; }
.cal-leitura { background: var(--app-primary-soft); color: var(--app-primary-text, var(--app-text)); border: 1px solid var(--app-primary); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
#calendario .fc-event.ev-privado { --fc-event-bg-color: #7d7466; --fc-event-border-color: #7d7466; opacity: .85; font-style: italic; }

.cal-pessoas-lista { max-height: 150px; overflow-y: auto; border: 1px solid var(--app-border); border-radius: 8px; padding: 4px 8px; }
.cal-pessoa-item { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 2px 0; cursor: pointer; margin: 0; }
.cal-pessoa-item .form-check-input { margin: 0; float: none; }

/* ---------- Gerador de Relatórios (Pessoa) ---------- */
.ger-secao { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.ger-cab { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--app-primary-soft); border: 0; text-align: left; color: var(--app-text); cursor: pointer; }
.ger-cab:hover { filter: brightness(.98); }
.ger-num { width: 26px; height: 26px; border-radius: 50%; background: var(--app-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: 0 0 auto; }
.ger-titulo { font-weight: 700; font-size: 16px; }
.ger-resumo { margin-left: auto; font-size: 13px; color: var(--app-text-2); }
.ger-seta { font-size: 18px; transition: transform .2s; color: var(--app-text-2); }
.ger-cab[aria-expanded="false"] .ger-seta { transform: rotate(-90deg); }
.ger-corpo { padding: 18px; border-top: 1px solid var(--app-border); }
.ger-modelos { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.ger-modelos-rotulo { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--app-text-2); margin-right: 4px; }
.ger-separador { width: 1px; height: 22px; background: var(--app-border); margin: 0 6px; }
.ger-grade { display: grid; gap: 14px; }
.ger-grade-campos { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ger-grade-filtros { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding: 6px 4px 12px 4px; }
.ger-painel { border: 1px solid var(--app-border); border-radius: 12px; overflow: hidden; background: var(--app-surface); }
.ger-painel-cab { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: var(--app-primary-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--app-text-2); }
.ger-painel-cab a { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; white-space: nowrap; margin-left: 8px; }
.ger-painel-corpo { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.ger-opcao { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 3px 0; cursor: pointer; margin: 0; }
.ger-opcao .form-check-input { margin: 0; float: none; flex: 0 0 auto; }
.ger-busca { max-width: 640px; margin-bottom: 18px; }
.ger-subcab { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--app-text-2); padding: 0 2px 8px 2px; border-bottom: 1px solid var(--app-border); margin-bottom: 8px; }
.ger-subcab a { text-transform: none; letter-spacing: 0; font-weight: 500; }
.ger-grupo { border-bottom: 1px solid var(--app-border); }
.ger-grupo:last-of-type { border-bottom: 0; }
.ger-grupo > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 4px; font-weight: 600; }
.ger-grupo > summary::-webkit-details-marker { display: none; }
.ger-seta-grupo { transition: transform .2s; color: var(--app-text-2); }
.ger-grupo[open] > summary .ger-seta-grupo { transform: rotate(90deg); }
.ger-filtro .form-label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ger-acoes { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 14px; box-shadow: 0 -4px 14px rgba(0,0,0,.08); margin-bottom: 6px; }
.ger-acoes-ordem { display: flex; align-items: center; gap: 8px; }
.ger-acoes-ordem .form-select { width: auto; min-width: 150px; }
.ger-acoes-rotulo { font-size: 13px; font-weight: 600; color: var(--app-text-2); }
.ger-acoes-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.ger-resultado-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 12px; margin: 14px 0 10px 0; }


/* ---- Avisos do evento (minutos, horas ou dias antes) ---- */
.avisos-evento { border: 1px solid var(--app-border); border-radius: var(--app-radius); padding: 10px 12px; background: var(--app-surface); }
.avisos-rotulo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--app-text-muted, #7b7367); margin: 8px 0 4px; }
.avisos-rotulo:first-child { margin-top: 0; }
.avisos-atalhos { display: flex; flex-wrap: wrap; gap: 6px; }
.avisos-atalhos .btn.ativo { background: #111827; border-color: #111827; color: #fff; }
[data-bs-theme="dark"] .avisos-atalhos .btn.ativo { background: var(--app-primary); border-color: var(--app-primary); color: #0a0a0c; }
.avisos-campos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.avisos-campos input { width: 90px; }
.avisos-campos select { width: 110px; }
.avisos-antes { font-size: 13px; color: var(--app-text-muted, #7b7367); }
.avisos-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; align-items: center; }
.avisos-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--app-primary-soft); font-size: 13px; font-weight: 600; }
.avisos-x { border: 0; background: transparent; font-size: 17px; line-height: 1; padding: 0 6px; border-radius: 50%; color: inherit; cursor: pointer; }
.avisos-x:hover { background: rgba(0, 0, 0, .12); }

/* ---- Copiar número (processo/instância) ---- */
.btn-copiar-numero { border: 0; background: transparent; color: var(--app-muted); padding: 2px 4px; line-height: 1; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn-copiar-numero:hover { background: var(--app-primary-soft); color: var(--app-primary-text); }
.btn-copiar-numero.copiado { color: #1f7a3a; }

/* ---- Minimizar card por completo ---- */
.btn-editar-secao, .btn-colapsar-card { border: 0; background: transparent; color: var(--app-muted); padding: 2px 4px; line-height: 1; border-radius: 6px; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; }
.btn-editar-secao:hover, .btn-colapsar-card:hover { background: var(--app-primary-soft); color: var(--app-primary-text); }
.btn-colapsar-card i { display: inline-block; transition: transform .15s ease; }
.card-colapsavel.colapsado .btn-colapsar-card i { transform: rotate(180deg); }
.card-colapsavel.colapsado > .card-body { display: none; }

/* ---- Buscar nesta página (Ctrl+F dentro do app desktop) ---- */
.barra-busca-pagina {
    position: fixed; top: 14px; right: 14px; z-index: 2000;
    display: flex; align-items: center; gap: 6px;
    background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 10px;
    padding: 6px 8px; box-shadow: var(--app-shadow-md);
}
.barra-busca-pagina i { color: var(--app-muted); font-size: 15px; }
.barra-busca-pagina input { border: 0; outline: none; background: transparent; color: var(--app-text); font-size: 14px; width: 200px; }
.btn-busca-pagina { border: 0; background: transparent; color: var(--app-muted); padding: 4px 6px; line-height: 1; border-radius: 6px; cursor: pointer; }
.btn-busca-pagina:hover { background: var(--app-primary-soft); color: var(--app-primary-text); }
.busca-pagina-contador { font-size: 12px; color: var(--app-muted); white-space: nowrap; min-width: 64px; text-align: right; }
.busca-pagina-contador.sem-resultado { color: #c0392b; }
::highlight(busca-pagina) { background-color: #ffe58a; color: #1d1a16; }
::highlight(busca-pagina-atual) { background-color: #ff9632; color: #1d1a16; }


/* Status do processo: selo colorido (lista e topo do processo) e linha vermelha para arquivados */
.status-processo { font-weight: 600; }
.status-processo.status-ativo { background: rgba(47, 158, 68, .14); color: #1f7a3a; }
.status-processo.status-arquivado { background: rgba(192, 57, 43, .14); color: #b03a2e; }
.status-processo.status-suspenso { background: rgba(230, 145, 20, .16); color: #9a5b00; }
.status-processo.status-inativo { background: rgba(120, 113, 104, .16); color: #5f5850; }
.status-processo.status-grande { font-size: 13px; padding: 6px 11px; border-radius: 999px; }
.app-table tr.processo-arquivado > td { color: #b03a2e; background-color: rgba(192, 57, 43, .05); }
.app-table tr.processo-arquivado > td a { color: #b03a2e; }
[data-bs-theme="dark"] .status-processo.status-ativo { color: #6fd38a; }
[data-bs-theme="dark"] .status-processo.status-arquivado { color: #ff8a7a; }
[data-bs-theme="dark"] .status-processo.status-suspenso { color: #ffc266; }
[data-bs-theme="dark"] .status-processo.status-inativo { color: #c9c2b8; }
[data-bs-theme="dark"] .app-table tr.processo-arquivado > td,
[data-bs-theme="dark"] .app-table tr.processo-arquivado > td a { color: #ff8a7a; }

/* ---------- Chat interno ---------- */
.chat-tela { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 210px); min-height: 420px; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--app-radius); overflow: hidden; box-shadow: var(--app-shadow); }
.chat-contatos { display: flex; flex-direction: column; border-right: 1px solid var(--app-border); min-height: 0; }
.chat-busca { position: relative; padding: 12px; border-bottom: 1px solid var(--app-border); }
.chat-busca i { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: var(--app-muted); }
.chat-busca input { width: 100%; border: 1px solid var(--app-border); border-radius: 999px; padding: 7px 12px 7px 34px; font-size: 13px; background: var(--app-surface-soft); color: var(--app-text); }
.chat-busca input:focus { outline: none; border-color: var(--app-primary-light); }
.chat-lista { overflow-y: auto; flex: 1; }
.chat-contato { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--app-text); text-decoration: none; border-left: 3px solid transparent; font-size: 13px; }
.chat-contato:hover { background: var(--app-surface-soft); color: var(--app-text); }
.chat-contato.ativo { background: var(--app-primary-soft); border-left-color: var(--app-primary); }
.chat-avatar { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #1f2937; color: #e1d5c2; font-size: 11px; font-weight: 600; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-contato-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-contato-presenca { display: block; font-size: 11px; color: var(--app-text-2); overflow: hidden; text-overflow: ellipsis; }
.chat-contato-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--app-primary); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.chat-conversa { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-conversa-topo { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--app-border); }
.chat-voltar { display: none; color: var(--app-text-2); }
.chat-mensagens { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--app-bg); }
.chat-vazio, .chat-escolha { margin: auto; text-align: center; color: var(--app-text-2); font-size: 13px; }
.chat-escolha i { font-size: 42px; color: var(--app-muted); }
.chat-msg { max-width: 72%; padding: 8px 12px; border-radius: 14px; font-size: 14px; box-shadow: var(--app-shadow); }
.chat-msg.dele { align-self: flex-start; background: var(--app-surface); border: 1px solid var(--app-border); border-bottom-left-radius: 4px; }
.chat-msg.minha { align-self: flex-end; background: var(--app-primary-soft); border: 1px solid transparent; border-bottom-right-radius: 4px; }
.chat-msg-texto { white-space: pre-wrap; word-break: break-word; color: var(--app-text); }
.chat-msg-info { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; font-size: 11px; color: var(--app-muted); }
.chat-visto.lido { color: #2f80ed; }
.chat-envio { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--app-border); }
.chat-envio textarea { flex: 1; resize: none; border: 1px solid var(--app-border); border-radius: 12px; padding: 9px 12px; font-size: 14px; background: var(--app-surface); color: var(--app-text); max-height: 160px; }
.chat-envio textarea:focus { outline: none; border-color: var(--app-primary-light); }
.chat-msg.aviso { border-left: 3px solid var(--app-primary); }
.chat-msg-aviso { font-size: 11px; font-weight: 600; color: var(--app-primary); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .03em; }
.chat-msg-anexo { display: flex; align-items: center; gap: 6px; color: var(--app-text); text-decoration: none; font-size: 13px; padding: 6px 8px; border-radius: 8px; background: var(--app-surface-soft); margin-bottom: 4px; word-break: break-all; }
.chat-msg-anexo:hover { color: var(--app-primary); }
.chat-msg-anexo img { max-width: 260px; max-height: 220px; border-radius: 6px; display: block; }
.chat-msg-anexo:has(img) { padding: 0; background: none; }
.chat-arquivo-escolhido { display: flex; align-items: center; gap: 6px; padding: 6px 14px 0; font-size: 13px; color: var(--app-text-2); }
.chat-arquivo-escolhido button { border: 0; background: none; color: var(--app-muted); padding: 0 4px; }
.chat-anteriores { align-self: center; border: 1px solid var(--app-border); background: var(--app-surface); color: var(--app-text-2); border-radius: 999px; padding: 5px 14px; font-size: 12px; margin-bottom: 6px; }
.chat-anteriores:hover { color: var(--app-primary); border-color: var(--app-primary); }
.chat-anteriores[hidden] { display: none; }
.chat-abrir-pesquisa { margin-left: auto; border: 1px solid var(--app-border); background: var(--app-surface); color: var(--app-text-2); border-radius: 50%; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-abrir-pesquisa:hover { color: var(--app-primary); border-color: var(--app-primary); }
.chat-pesquisa { border-bottom: 1px solid var(--app-border); padding: 10px 18px; background: var(--app-surface); display: flex; flex-direction: column; gap: 6px; max-height: 45%; min-height: 0; }
.chat-pesquisa[hidden] { display: none; }
.chat-pesquisa-campo { position: relative; display: flex; align-items: center; }
.chat-pesquisa-campo > i { position: absolute; left: 12px; color: var(--app-muted); }
.chat-pesquisa-campo input { flex: 1; min-width: 0; border: 1px solid var(--app-border); border-radius: 999px; padding: 7px 36px 7px 34px; font-size: 13px; background: var(--app-surface-soft); color: var(--app-text); }
.chat-pesquisa-campo button { position: absolute; right: 8px; border: 0; background: none; color: var(--app-muted); padding: 2px 4px; }
.chat-pesquisa-situacao { font-size: 12px; color: var(--app-text-2); }
.chat-pesquisa-situacao:empty { display: none; }
.chat-pesquisa-resultados { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-pesquisa-resultados:empty { display: none; }
.chat-resultado { text-align: left; border: 1px solid var(--app-border); background: var(--app-surface-soft); color: var(--app-text); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.chat-resultado:hover, .chat-resultado.ativo { border-color: var(--app-primary); }
.chat-resultado-topo { font-size: 11px; color: var(--app-muted); margin-bottom: 2px; }
.chat-resultado-trecho { white-space: pre-wrap; word-break: break-word; max-height: 3.2em; overflow: hidden; }
.chat-resultado mark, .chat-msg mark { background: rgba(250, 204, 21, .5); color: inherit; padding: 0 1px; border-radius: 3px; }
.chat-msg.chat-msg-achada { outline: 2px solid var(--app-primary); outline-offset: 2px; }
.emoji-caixa { position: relative; display: inline-flex; }
.emoji-painel { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 1080; width: 300px; max-height: 220px; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 12px; box-shadow: var(--app-shadow-xl); }
.emoji-painel[hidden] { display: none; }
.emoji-item { border: 0; background: none; font-family: "Noto Color Emoji", "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 20px; line-height: 1; padding: 5px 0; border-radius: 6px; cursor: pointer; }
.emoji-item:hover { background: var(--app-surface-soft); }
@media (max-width: 767px) {
    .chat-tela { grid-template-columns: 1fr; height: calc(100vh - 180px); }
    .chat-tela.chat-com-conversa .chat-contatos { display: none; }
    .chat-tela:not(.chat-com-conversa) .chat-conversa { display: none; }
    .chat-voltar { display: inline-flex; }
    .chat-msg { max-width: 88%; }
}

/* Aviso de mensagem nova (aparece em qualquer tela) */
.chat-avisos { position: fixed; right: 20px; bottom: 20px; z-index: 1090; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 32px)); }
.chat-aviso { background: var(--app-surface); border: 1px solid var(--app-border); border-left: 4px solid var(--app-primary); border-radius: 12px; box-shadow: var(--app-shadow-xl); padding: 12px 14px; font-size: 13px; color: var(--app-text); animation: chat-aviso-entra .25s ease-out; }
.chat-aviso-topo { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
.chat-aviso-topo button { margin-left: auto; border: 0; background: none; color: var(--app-muted); padding: 0; }
.chat-aviso-texto { color: var(--app-text-2); white-space: pre-wrap; word-break: break-word; max-height: 4.5em; overflow: hidden; margin-bottom: 8px; }
@keyframes chat-aviso-entra { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Presença no chat: verde online, amarela ausente, vermelha offline */
.chat-avatar-caixa { position: relative; flex-shrink: 0; }
.chat-avatar-caixa .chat-presenca { position: absolute; right: -1px; bottom: -1px; border: 2px solid var(--app-surface); width: 12px; height: 12px; }
.chat-presenca { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; flex-shrink: 0; }
.chat-presenca.online { background: #22c55e; }
.chat-presenca.ausente { background: #f59e0b; }
.chat-presenca.offline { background: #ef4444; }
.chat-conversa-nome { min-width: 0; line-height: 1.2; }
.chat-presenca-texto { font-size: 12px; color: var(--app-text-2); }
.chat-legenda { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -8px 0 12px; font-size: 12px; color: var(--app-text-2); }
.chat-legenda > span { display: inline-flex; align-items: center; gap: 6px; }
.aviso-pessoas { max-height: 460px; overflow-y: auto; border: 1px solid var(--app-border); border-radius: 10px; }
.aviso-pessoa { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--app-border); cursor: pointer; margin: 0; font-size: 13px; }
.aviso-pessoa:last-child { border-bottom: 0; }
.aviso-pessoa:hover { background: var(--app-surface-soft); }
.aviso-pessoa-nome { display: flex; flex-direction: column; min-width: 0; }
.aviso-pessoa-nome small { color: var(--app-muted); font-size: 11px; }

/* Relatório para Clientes */
.rc-etapas { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-etapa { font-size: 12.5px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--app-border); color: var(--app-muted); background: var(--app-surface); }
.rc-etapa.atual { border-color: var(--app-primary); color: var(--app-primary); font-weight: 600; }
.rc-etapa.feita { color: var(--app-text-2); }
.rc-etapa.feita::before { content: "✓ "; }
.rc-modos { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-modo { display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--app-border); border-radius: 10px; padding: 8px 12px; cursor: pointer; flex: 1; min-width: 200px; margin: 0; }
.rc-modo:has(input:checked) { border-color: var(--app-primary); background: var(--app-primary-soft); }
.rc-modo span { display: flex; flex-direction: column; }
.rc-modo small { color: var(--app-muted); font-size: 12px; }
.rc-mesa { overflow-x: auto; padding-bottom: 8px; }
.rc-folha { position: relative; box-sizing: border-box; width: 210mm; min-height: 297mm; background: #fff; color: #1d2430; border: 1px solid var(--app-border); box-shadow: var(--app-shadow); margin: 0 auto 28px; padding: 20mm 22mm 22mm; font-size: 10.5pt; }
.rc-folha a { color: inherit; }
.rc-numero-folha { position: absolute; right: 22mm; bottom: 10mm; font-size: 8pt; color: #6b7280; }
.rc-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.rc-logo { max-height: 52px; max-width: 200px; object-fit: contain; }
.rc-local { color: var(--app-text-2); font-size: 14px; }
.rc-cliente { font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 10px; }
.rc-abertura { text-align: justify; margin-bottom: 18px; }
.rc-orgao { text-align: center; font-weight: 700; color: var(--app-primary); border-bottom: 1px solid var(--app-border); padding-bottom: 6px; margin: 22px 0 12px; }
.rc-processo { margin-bottom: 16px; }
.rc-proc-titulo { font-weight: 600; margin-bottom: 6px; }
.rc-quadro { display: grid; grid-template-columns: 170px 1fr; border: 1px solid var(--app-border); border-radius: 8px; overflow: hidden; margin: 0; font-size: 13.5px; }
.rc-quadro dt { background: var(--app-surface-soft); color: var(--app-text-2); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--app-border); }
.rc-quadro dd { margin: 0; padding: 6px 10px; border-bottom: 1px solid var(--app-border); min-width: 0; overflow-wrap: anywhere; }
.rc-quadro dt:last-of-type, .rc-quadro dd:last-of-type { border-bottom: 0; }
.rc-mov + .rc-mov { margin-top: 6px; }
.rc-fecho { margin-top: 22px; }
.rc-assinaturas { display: flex; justify-content: space-around; gap: 24px; flex-wrap: wrap; margin-top: 36px; text-align: center; }
.rc-assinaturas span { display: block; color: var(--app-text-2); font-size: 13px; }
@media print { .rc-folha { box-shadow: none; border: 0; margin: 0; page-break-after: always; } }

.rc-continuacao { font-size: 12px; color: var(--app-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
a.rc-etapa { text-decoration: none; }
a.rc-etapa:hover { border-color: var(--app-primary); color: var(--app-primary); }

/* Campo de busca com sugestões (components/busca_caixas.html) */
.busca-caixas { position: relative; }
.busca-caixas-campo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 38px; padding: 4px 8px; cursor: text; }
.busca-caixas-campo:focus-within { border-color: var(--app-primary-light); box-shadow: 0 0 0 .2rem rgba(170, 151, 111, .18); }
.busca-caixas-campo input { flex: 1; min-width: 120px; border: 0; outline: 0; background: transparent; color: var(--app-text); font-size: 14px; padding: 2px; }
.busca-caixas-campo input::placeholder { color: var(--app-muted); }
.busca-caixas-etiquetas { display: contents; }
.busca-caixas-etiqueta { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; background: var(--app-primary-soft); color: var(--app-text); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 12.5px; }
.busca-caixas-etiqueta button.busca-caixas-tirar { border: 0; background: none; color: var(--app-muted); font-size: 15px; line-height: 1; padding: 0 4px; cursor: pointer; }
.busca-caixas-etiqueta button.busca-caixas-tirar:hover { color: var(--app-text); }
.busca-caixas-lista { position: absolute; z-index: 1060; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 10px; box-shadow: var(--app-shadow-xl); padding: 4px; }
.busca-caixas-item { padding: 6px 10px; border-radius: 6px; font-size: 13.5px; cursor: pointer; }
.busca-caixas-item:hover, .busca-caixas-item.ativo { background: var(--app-surface-soft); }
.busca-caixas-vazio { padding: 8px 10px; font-size: 13px; color: var(--app-muted); }
/* a folha é sempre papel branco, mesmo com o sistema no modo escuro */
.rc-folha { --app-border: #dfe1e5; --app-surface-soft: #f3efe6; --app-text: #1d2430; --app-text-2: #555b66; --app-muted: #6b7280; --app-primary: #8a7448; }

.rc-por-processo { border: 1px solid var(--app-border); border-radius: 10px; overflow: hidden; }
.rc-por-processo-cab, .rc-por-processo-linha { display: grid; grid-template-columns: minmax(0, 1fr) 150px 210px; gap: 8px; align-items: center; padding: 6px 10px; }
.rc-por-processo-cab { background: var(--app-surface-soft); font-size: 12px; font-weight: 600; color: var(--app-text-2); }
.rc-por-processo-linha + .rc-por-processo-linha { border-top: 1px solid var(--app-border); }
.rc-por-processo-nome { font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.rc-por-processo-nome small { display: block; color: var(--app-muted); font-size: 11.5px; }
@media (max-width: 640px) { .rc-por-processo-cab { display: none; } .rc-por-processo-linha { grid-template-columns: 1fr; } }

/* Pesquisa por Jurisprudência */
/* estrela de processo favorito */
/* sempre o ícone ti-star (o "preenchido" não existe na fonte de ícones carregada e a estrela sumia); marcado =
   estrela dourada e mais grossa num fundo amarelo-claro. Seletor dobrado para vencer "button:not(.btn)" acima. */
.btn-estrela.btn-estrela:not(.btn) { border: 0; background: none; padding: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-size: 18px; color: #8b919b; cursor: pointer; border-radius: 6px; vertical-align: middle; }
.btn-estrela.btn-estrela:not(.btn):hover { color: #e0a800; background: rgba(224, 168, 0, .10); }
.btn-estrela.btn-estrela.ativa:not(.btn) { color: #e0a100; background: #fff3c4; }
.btn-estrela.ativa i { -webkit-text-stroke: .6px currentColor; }
/* coluna da estrela: larga o bastante para o quadrado de 28px, com a estrela no meio da célula */
.app-table th.col-estrela, .app-table td.col-estrela { width: 44px; min-width: 44px; padding-left: 8px !important; padding-right: 8px !important; text-align: center; vertical-align: middle; }
.app-table th.col-estrela i { font-size: 16px; }
h2 .btn-estrela { margin-right: 4px; vertical-align: -3px; }
.jz-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.jz-grupo { border: 1px solid var(--app-border); border-radius: 10px; padding: 8px 12px 10px; margin: 0; min-width: 0; }
.jz-grupo-cab { float: none; width: 100%; display: flex; flex-direction: column; gap: 2px; font-size: 13px; margin-bottom: 6px; padding: 0; }
.jz-grupo-nome { font-weight: 600; color: var(--app-text); }
.jz-modo-grupo { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--app-text-2); font-weight: 400; }
.jz-modo-grupo label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; margin: 0; }
.jz-canais { display: flex; flex-direction: column; gap: 4px; }
/* grupos longos: só 10 canais à vista, o resto com rolagem (altura exata calculada no script da tela) */
.jz-canais.jz-rolagem { max-height: 240px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.jz-mais { font-size: 11.5px; color: var(--app-text-2); margin-top: 4px; }
.jz-canal { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; margin: 0; flex-wrap: wrap; }
.jz-canal .form-check-input { margin: 0; }
.jz-aviso { font-size: 10.5px; line-height: 1.2; padding: 2px 6px; border-radius: 999px; background: #fbeed5; color: #8a5a00; border: 1px solid #f0d49b; }
.jz-aviso-assistido { background: #e3f0fb; color: #1d5a8c; border-color: #b6d4ef; }
.jz-captcha img { height: 48px; max-width: 100%; object-fit: contain; border: 1px solid var(--app-border); border-radius: 6px; background: #fff; }
.jz-captcha input { width: 130px; font-family: monospace; letter-spacing: 2px; }
.jz-andamento { border: 1px solid var(--app-border); border-radius: 10px; background: var(--app-surface); overflow: hidden; }
.jz-passo { display: flex; gap: 12px; padding: 7px 12px; font-size: 13px; align-items: baseline; }
.jz-passo + .jz-passo { border-top: 1px solid var(--app-border); }
.jz-passo-nome { width: 190px; flex-shrink: 0; font-weight: 600; }
.jz-item { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.jz-item-cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; font-size: 14px; }
.jz-trib { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; background: var(--app-primary-soft); color: var(--app-primary-text); }
.jz-meta { font-size: 12px; color: var(--app-text-2); margin: 3px 0 6px; }
.jz-ementa { font-size: 13px; line-height: 1.5; margin: 0 0 6px; white-space: pre-line; overflow-wrap: anywhere; }
.jz-ementa.jz-curta { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.jz-texto { font-size: 12.5px; line-height: 1.5; white-space: pre-line; background: var(--app-surface-soft); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; max-height: 420px; overflow: auto; overflow-wrap: anywhere; }
[data-bs-theme="dark"] .jz-aviso { background: #3a2c10; color: #f3cf86; border-color: #6b5222; }
@media (max-width: 640px) { .jz-passo { flex-direction: column; gap: 2px; } .jz-passo-nome { width: auto; } }

/* ---------- Marca MAJUR (menu lateral e telas de entrada) ---------- */
.marca-majur { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.1; }
.marca-majur-nome { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 19px; letter-spacing: .08em; color: #f3f4f6; }
.marca-majur-sub { font-family: "IBM Plex Sans", sans-serif; font-size: 9px; font-weight: 500; letter-spacing: .16em; color: #9c8a66; }

.entrada-majur { display: flex; min-height: 100vh; }
.entrada-majur-marca {
    flex: 1 1 50%; background: #0b0b0d; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
    gap: 40px; padding: 56px 64px; box-sizing: border-box;
}
.entrada-majur-sub { font-size: 12px; font-weight: 500; letter-spacing: .22em; color: #9c8a66; }
.entrada-majur-nome { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(52px, 6vw, 84px); line-height: 1; letter-spacing: .06em; color: #fff; margin: 28px 0 12px; }
.entrada-majur-texto { font-size: 17px; line-height: 1.5; color: #c9c2b4; max-width: 420px; margin: 0; }
.entrada-majur-form {
    flex: 1 1 50%; background: linear-gradient(35deg, #c4a974, #e0d4a4 60%, #d2bd8a);
    display: flex; align-items: center; justify-content: center; padding: 40px 24px; box-sizing: border-box;
}
.entrada-majur-cartao {
    width: 100%; max-width: 400px; background: #fff; color: #111827; border-radius: 16px; padding: 36px 36px 30px;
    box-sizing: border-box; box-shadow: 0 12px 36px rgba(16, 24, 40, .12);
}
.entrada-majur-cartao h1 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 30px; color: #1b1612; margin: 0 0 4px; }
.entrada-majur-cartao .entrada-majur-dica { font-size: 14px; color: #6b7280; margin: 0 0 22px; }
.entrada-majur-cartao a { color: #766348; }
.entrada-majur-cartao button.entrada-majur-botao {
    margin-top: 22px; width: 100%; height: 48px; border: 0; border-radius: 10px; background: #766348; color: #fff;
    font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
.entrada-majur-cartao button.entrada-majur-botao:hover { background: #5f513c; }
.entrada-majur-rodape { font-size: 12px; color: #6b6457; }
.entrada-majur-rodape a { color: #bba57e; }
@media (max-width: 860px) {
    .entrada-majur { flex-direction: column; }
    .entrada-majur-marca { flex: 0 0 auto; padding: 28px 24px; gap: 0; }
    .entrada-majur-marca .entrada-majur-texto, .entrada-majur-marca .entrada-majur-sub { display: none; }
    .entrada-majur-nome { font-size: 44px; margin: 14px 0 0; }
    .entrada-majur-escudo svg { width: 96px; height: 59px; }
    .entrada-majur-form { flex: 1 1 auto; align-items: flex-start; padding: 28px 16px 40px; }
}

/* ---------- Animações da marca MAJUR (login e abertura logo após entrar) ---------- */
@keyframes majur-esq { from { transform: translateX(-900px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes majur-dir { from { transform: translateX(900px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes majur-brilho {
    0% { filter: drop-shadow(0 0 0 rgba(224, 212, 164, 0)); }
    45% { filter: drop-shadow(0 0 34px rgba(224, 212, 164, .75)); }
    100% { filter: drop-shadow(0 0 0 rgba(224, 212, 164, 0)); }
}
@keyframes majur-letra { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes majur-surgir { from { opacity: 0; } to { opacity: 1; } }
@keyframes majur-subir { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes majur-varredura { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes majur-sair { to { opacity: 0; visibility: hidden; } }

.anima .escudo-esq { animation: majur-esq 1600ms cubic-bezier(.16, 1, .3, 1) 300ms both; }
.anima .escudo-dir { animation: majur-dir 1600ms cubic-bezier(.16, 1, .3, 1) 300ms both; }
.anima svg { animation: majur-brilho 2000ms ease 1500ms both; overflow: visible; }
.majur-letras > span { display: inline-block; }
.anima .majur-letras > span, .anima-entrada .majur-letras > span { animation: majur-letra 1000ms cubic-bezier(.16, 1, .3, 1) both; }
.anima .majur-letras > span:nth-child(1), .anima-entrada .majur-letras > span:nth-child(1) { animation-delay: 1300ms; }
.anima .majur-letras > span:nth-child(2), .anima-entrada .majur-letras > span:nth-child(2) { animation-delay: 1450ms; }
.anima .majur-letras > span:nth-child(3), .anima-entrada .majur-letras > span:nth-child(3) { animation-delay: 1600ms; }
.anima .majur-letras > span:nth-child(4), .anima-entrada .majur-letras > span:nth-child(4) { animation-delay: 1750ms; }
.anima .majur-letras > span:nth-child(5), .anima-entrada .majur-letras > span:nth-child(5) { animation-delay: 1900ms; }

.anima-entrada .entrada-majur-sub, .anima-entrada .entrada-majur-texto { animation: majur-surgir 1200ms ease 2300ms both; }
.anima-entrada .entrada-majur-marca { overflow: hidden; }
.anima-entrada .entrada-majur-form { position: relative; overflow: hidden; }
.anima-entrada .entrada-majur-form::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%);
    animation: majur-varredura 3200ms ease 900ms both;
}
.anima-entrada .entrada-majur-form > * { position: relative; z-index: 1; }
.anima-entrada .entrada-majur-cartao { animation: majur-subir 1200ms cubic-bezier(.16, 1, .3, 1) 600ms both; }

.entrada-splash {
    position: fixed; inset: 0; z-index: 9999; background: #0b0b0d; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 22px;
}
.entrada-splash[hidden] { display: none !important; }
.entrada-splash .majur-letras { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 64px; line-height: 1; letter-spacing: .06em; color: #fff; }
.entrada-splash-sub { font-family: "IBM Plex Sans", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .24em; color: #bba57e; }
.entrada-splash.anima .entrada-splash-sub { animation: majur-surgir 500ms ease 850ms both; }
.entrada-splash:not(.anima) > * { visibility: hidden; }   /* tela escura enquanto a página carrega */
.entrada-splash { overflow: hidden; cursor: pointer; }
.entrada-splash.saindo { animation: majur-sair 500ms ease forwards; }

@media (prefers-reduced-motion: reduce) {
    .anima .escudo-esq, .anima .escudo-dir, .anima svg, .anima .majur-letras > span, .anima-entrada .majur-letras > span, .anima-entrada .entrada-majur-sub,
    .anima-entrada .entrada-majur-texto, .anima-entrada .entrada-majur-cartao, .entrada-splash.anima .entrada-splash-sub { animation: none; }
    .anima-entrada .entrada-majur-form::after { display: none; }
}

/* Abertura depois de entrar: mais curta que a animação da tela de login (só vale para .entrada-splash) */
.entrada-splash.anima .escudo-esq { animation: majur-esq 500ms cubic-bezier(.16, 1, .3, 1) 0ms both; }
.entrada-splash.anima .escudo-dir { animation: majur-dir 500ms cubic-bezier(.16, 1, .3, 1) 0ms both; }
.entrada-splash.anima svg { animation: majur-brilho 700ms ease 400ms both; }
.entrada-splash.anima .majur-letras > span { animation: majur-letra 450ms cubic-bezier(.16, 1, .3, 1) both; }
.entrada-splash.anima .majur-letras > span:nth-child(1) { animation-delay: 300ms; }
.entrada-splash.anima .majur-letras > span:nth-child(2) { animation-delay: 340ms; }
.entrada-splash.anima .majur-letras > span:nth-child(3) { animation-delay: 380ms; }
.entrada-splash.anima .majur-letras > span:nth-child(4) { animation-delay: 420ms; }
.entrada-splash.anima .majur-letras > span:nth-child(5) { animation-delay: 460ms; }
.entrada-splash.anima .entrada-splash-sub { animation: majur-surgir 400ms ease 550ms both; }
.entrada-splash.saindo { animation: majur-sair 400ms ease forwards; }
