/*
 * SICOF – camada de design (v13).
 * Carregada depois de sicof.css: define tipografia, cores, sombras e componentes com acabamento
 * profissional, mantendo a identidade (azul marinho, dourado e branco).
 * Fontes locais: Inter (texto) e Plus Jakarta Sans (títulos), licença SIL OFL (ver vendor/fontes).
 */
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("vendor/fontes/inter-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Plus Jakarta Sans Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("vendor/fontes/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --navy-950: #040d1c; --navy-900: #07172f; --navy-800: #0e2446; --navy-700: #183462; --navy-600: #284a80;
  --navy-200: #c5cfdf; --navy-100: #e5eaf2; --navy-50: #f3f5f9;
  --gold-700: #96761c; --gold-600: #b8952a; --gold-500: #d4af37; --gold-400: #e2c35f; --gold-100: #f7edcf; --gold-50: #fcf8ec;
  --ink: #142033; --ink-2: #2b3648; --muted: #5f6c80; --line: #e3e7ee; --line-2: #d3d9e3; --bg: #f5f6f9; --white: #fff;
  --ok: #157a4a; --ok-bg: #e4f5ec; --ok-line: #b8e2ca;
  --erro: #b42318; --erro-bg: #fdeceb; --erro-line: #f5c6c2;
  --aviso: #8a6100; --aviso-bg: #fdf4dc; --aviso-line: #f1dc9c;
  --info: #0b6a8f; --info-bg: #e5f3fa; --info-line: #bfe2f2;
  --raio-sm: 8px; --raio: 12px; --raio-lg: 16px;
  --sombra-sm: 0 1px 2px rgba(7,23,47,.05), 0 1px 3px rgba(7,23,47,.06);
  --sombra: 0 1px 2px rgba(7,23,47,.04), 0 6px 16px -6px rgba(7,23,47,.12);
  --sombra-lg: 0 24px 48px -16px rgba(7,23,47,.32), 0 4px 10px -4px rgba(7,23,47,.12);
  --anel: 0 0 0 3px rgba(212,175,55,.32);
  --fonte: "Inter Variable", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fonte-titulo: "Plus Jakarta Sans Variable", "Inter Variable", "Segoe UI", system-ui, sans-serif;

  --bs-body-font-family: var(--fonte);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line);
  --bs-border-radius: var(--raio-sm);
  --bs-link-color: var(--navy-700); --bs-link-color-rgb: 24, 52, 98;
  --bs-link-hover-color: var(--gold-700); --bs-link-hover-color-rgb: 150, 118, 28;
  --sicof-offwhite: var(--bg);
}

/* ---------------------------------------------------------------- base */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  font-family: var(--fonte); font-size: .9375rem; line-height: 1.55; color: var(--ink);
  font-feature-settings: "cv11", "ss01", "tnum" 0;
  background:
    radial-gradient(1400px 380px at 50% -160px, rgba(14,36,70,.07), transparent 70%),
    var(--bg);
}
::selection { background: var(--gold-100); color: var(--navy-900); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--fonte-titulo); letter-spacing: -.015em; color: var(--navy-900); }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-muted { color: var(--muted) !important; }
strong, b { font-weight: 650; }
.table td, .numero, .tabular { font-variant-numeric: tabular-nums; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #c3cad6; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #a5afbf; background-clip: padding-box; border: 2px solid transparent; }
*::-webkit-scrollbar-track { background: transparent; }

main.container-fluid { padding-top: 1.75rem !important; padding-bottom: 2.5rem !important; }

/* ---------------------------------------------------------------- barra superior */
.navbar-sicof {
  min-height: 64px; padding-top: .35rem; padding-bottom: .35rem;
  background: linear-gradient(180deg, #0b1f3d 0%, var(--navy-900) 100%);
  border-bottom: 0; position: sticky; top: 0; z-index: 1030;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 6px 18px -10px rgba(4,13,28,.6);
}
.navbar-sicof::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, rgba(212,175,55,.15), var(--gold-500) 18%, var(--gold-400) 50%, var(--gold-500) 82%, rgba(212,175,55,.15));
}
.navbar-sicof .navbar-brand { margin-right: 1rem; }
.navbar-sicof .navbar-brand img { height: 34px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.navbar-sicof .marca { font-family: var(--fonte-titulo); font-weight: 800; letter-spacing: .06em; font-size: 1.18rem; }
.navbar-sicof .navbar-nav .nav-link {
  color: rgba(255,255,255,.78); font-weight: 500; font-size: .9rem; border-radius: 8px;
  padding: .45rem .7rem; margin: 0 .05rem; transition: color .15s, background-color .15s;
}
.navbar-sicof .navbar-nav .nav-link .bi { opacity: .85; margin-right: .15rem; }
.navbar-sicof .navbar-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.navbar-sicof .navbar-nav .nav-link.active { color: var(--gold-400); background: rgba(212,175,55,.13); box-shadow: inset 0 0 0 1px rgba(212,175,55,.22); }
.navbar-sicof .navbar-nav .nav-link.active .bi { opacity: 1; }
.navbar-sicof .badge.text-bg-danger { background: #e5484d !important; color: #fff !important; border: 0; font-size: .68rem; padding: .25em .5em; vertical-align: 1px; }
.navbar-sicof .dropdown-toggle { display: inline-flex; align-items: center; gap: .45rem; }
.navbar-sicof .dropdown-toggle .bi-person-circle { font-size: 1.25rem; }
.btn-conheca { border-radius: 999px !important; border-width: 1px !important; background: rgba(212,175,55,.06); letter-spacing: .01em; }
.navbar-sicof .btn-conheca { padding: .32rem .85rem; font-size: .84rem; }
@media (max-width: 1439.98px) {
  .navbar-sicof .navbar-nav .nav-link { font-size: .86rem; padding: .42rem .5rem; }
  .navbar-sicof .btn-conheca { font-size: .8rem; padding: .28rem .65rem; }
}

/* ---------------------------------------------------------------- títulos de página */
.titulo-pagina { font-family: var(--fonte-titulo); font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); }
h1.titulo-pagina.h3, .h3.titulo-pagina { font-size: 1.65rem; }
.titulo-pagina small { font-family: var(--fonte); font-size: .52em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: .35rem; }
.titulo-pagina + .text-muted, .titulo-pagina + p { font-size: .95rem; }
nav.small a { color: var(--muted); text-decoration: none; font-weight: 500; }
nav.small a:hover { color: var(--navy-800); }

/* ---------------------------------------------------------------- cartões */
.card { border: 1px solid var(--line); border-radius: var(--raio); box-shadow: var(--sombra-sm); background: var(--white); }
.card > .card-header:first-child { border-radius: calc(var(--raio) - 1px) calc(var(--raio) - 1px) 0 0; }
.card-header {
  position: relative; background: var(--white); border-bottom: 1px solid var(--line);
  padding: .85rem 1.25rem .85rem 1.4rem; font-family: var(--fonte-titulo); font-weight: 700; font-size: .98rem; color: var(--navy-900);
}
.card-header::before {
  content: ""; position: absolute; left: 0; top: .8rem; bottom: .8rem; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
}
.card-header .bi { color: var(--gold-600); }
.card-body { padding: 1.25rem 1.4rem; }
.list-group-item { border-color: var(--line); padding: .8rem 1.25rem; }
.list-group-flush > .list-group-item:last-child { border-bottom-left-radius: var(--raio); border-bottom-right-radius: var(--raio); }

/* ---------------------------------------------------------------- tabelas */
.table { --bs-table-bg: var(--white); --bs-table-hover-bg: #f7f9fc; --bs-table-border-color: var(--line); margin-bottom: 0; color: var(--ink); }
.table > thead > tr > th {
  background: var(--navy-50); color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; border-bottom: 1px solid var(--line); padding: .7rem 1rem; white-space: nowrap;
}
.table > tbody > tr > td { padding: .8rem 1rem; border-color: var(--line); }
.table > tbody > tr:last-child > td { border-bottom: 0; }
.table > tbody > tr { transition: background-color .12s; }
.card > .table-responsive:first-child > .table > thead > tr:first-child > th:first-child,
.card > .table-responsive:first-child > .table > thead > tr:first-child > th:first-child { border-top-left-radius: calc(var(--raio) - 1px); }
.card > .table-responsive:first-child > .table > thead > tr:first-child > th:last-child { border-top-right-radius: calc(var(--raio) - 1px); }
.card > .table-responsive { border-radius: var(--raio); }
.table td strong, .table td .fw-semibold { color: var(--navy-900); }
.table a.fw-semibold { text-decoration: none; }
.table a.fw-semibold:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- botões */
.btn { font-weight: 600; border-radius: 10px; padding: .5rem 1rem; letter-spacing: .005em;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s; }
.btn:active { transform: translateY(1px); }
.btn-sm { border-radius: 8px; padding: .3rem .7rem; font-size: .82rem; }
.btn-lg { border-radius: 12px; padding: .7rem 1.4rem; font-size: 1.02rem; }
.btn:focus-visible { box-shadow: var(--anel) !important; outline: 0; }
.btn .bi { margin-right: .1rem; }
.btn-dourado {
  background: linear-gradient(180deg, #ddbd4f 0%, #cfa62f 100%); border: 1px solid #c39b26; color: var(--navy-950);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px -2px rgba(150,118,28,.55);
}
.btn-dourado:hover, .btn-dourado:focus {
  background: linear-gradient(180deg, #d4b23f 0%, #c2981f 100%); border-color: #b08a1d; color: var(--navy-950);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 14px -6px rgba(150,118,28,.7);
}
.btn-primary {
  --bs-btn-bg: var(--navy-900); --bs-btn-border-color: var(--navy-900); --bs-btn-hover-bg: var(--navy-800);
  --bs-btn-hover-border-color: var(--navy-800); --bs-btn-active-bg: var(--navy-950); --bs-btn-active-border-color: var(--navy-950);
  background-image: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0));
  box-shadow: 0 2px 6px -2px rgba(7,23,47,.5);
}
.btn-outline-primary {
  --bs-btn-color: var(--navy-800); --bs-btn-border-color: var(--line-2); --bs-btn-bg: var(--white);
  --bs-btn-hover-color: var(--navy-900); --bs-btn-hover-bg: var(--navy-50); --bs-btn-hover-border-color: var(--navy-200);
  --bs-btn-active-color: var(--navy-900); --bs-btn-active-bg: var(--navy-100); --bs-btn-active-border-color: var(--navy-200);
  box-shadow: var(--sombra-sm);
}
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line-2); --bs-btn-bg: var(--white);
  --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--navy-50); --bs-btn-hover-border-color: var(--navy-200); }
.btn-outline-danger { --bs-btn-color: var(--erro); --bs-btn-border-color: var(--erro-line); --bs-btn-bg: var(--white);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #d92d20; --bs-btn-hover-border-color: #d92d20; }
.btn-outline-success { --bs-btn-color: var(--ok); --bs-btn-border-color: var(--ok-line); --bs-btn-bg: var(--white);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #12a05c; --bs-btn-hover-border-color: #12a05c; }
.btn-success { --bs-btn-bg: #12935a; --bs-btn-border-color: #12935a; --bs-btn-hover-bg: #0f7d4c; --bs-btn-hover-border-color: #0f7d4c; }
.btn-danger { --bs-btn-bg: #d92d20; --bs-btn-border-color: #d92d20; --bs-btn-hover-bg: #b42318; --bs-btn-hover-border-color: #b42318; }
.btn-link { font-weight: 500; }
.btn-whatsapp { border-radius: 12px; box-shadow: 0 4px 14px -6px rgba(37,211,102,.7); }

/* ---------------------------------------------------------------- formulários */
.form-label { font-weight: 600; font-size: .87rem; color: var(--navy-800); margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1px solid var(--line-2); border-radius: 10px; min-height: 44px; padding: .55rem .85rem; color: var(--ink);
  background-color: var(--white); box-shadow: 0 1px 2px rgba(7,23,47,.04); transition: border-color .15s, box-shadow .15s;
}
.form-control-sm, .form-select-sm { min-height: 34px; border-radius: 8px; padding: .3rem .65rem; font-size: .85rem; }
textarea.form-control { min-height: 96px; }
.form-control[type="file"] { padding: 0; line-height: 42px; overflow: hidden; }
.form-control[type="file"]::file-selector-button {
  height: 44px; margin: 0 .85rem 0 0; padding: 0 1rem; border: 0; border-right: 1px solid var(--line-2);
  background: var(--navy-50); color: var(--navy-800); font-weight: 600;
}
.form-control:hover, .form-select:hover { border-color: #b8c2d2; }
.form-control:focus, .form-select:focus { border-color: var(--gold-500); box-shadow: var(--anel); }
.form-control::placeholder { color: #98a2b3; }
.form-text { color: var(--muted); font-size: .8rem; margin-top: .35rem; }
.form-check-input { border-color: #b8c2d2; }
.form-check-input:checked { background-color: var(--navy-900); border-color: var(--navy-900); }
.form-check-input:focus { box-shadow: var(--anel); border-color: var(--gold-500); }
.invalid-feedback { font-weight: 500; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #e5484d; }

/* ---------------------------------------------------------------- selos (badges) */
.badge { font-weight: 600; border-radius: 999px; padding: .36em .72em; letter-spacing: .01em; font-size: .74em; line-height: 1.15; }
.badge.bg-info, .badge.text-bg-info { background: var(--info-bg) !important; color: var(--info) !important; box-shadow: inset 0 0 0 1px var(--info-line); }
.badge.bg-primary, .badge.text-bg-primary { background: var(--navy-100) !important; color: var(--navy-800) !important; box-shadow: inset 0 0 0 1px var(--navy-200); }
.badge.bg-warning, .badge.text-bg-warning { background: var(--aviso-bg) !important; color: var(--aviso) !important; box-shadow: inset 0 0 0 1px var(--aviso-line); }
.badge.bg-danger, .badge.text-bg-danger { background: var(--erro-bg) !important; color: var(--erro) !important; box-shadow: inset 0 0 0 1px var(--erro-line); }
.badge.bg-success, .badge.text-bg-success { background: var(--ok-bg) !important; color: var(--ok) !important; box-shadow: inset 0 0 0 1px var(--ok-line); }
.badge.bg-secondary, .badge.text-bg-secondary { background: #eef0f4 !important; color: #4b5565 !important; box-shadow: inset 0 0 0 1px #dadfe7; }
.badge.text-bg-light { background: var(--navy-50) !important; color: var(--navy-800) !important; box-shadow: inset 0 0 0 1px var(--line); }
.badge.bg-info::before, .badge.bg-primary::before, .badge.bg-warning::before, .badge.bg-danger::before,
.badge.bg-success::before, .badge.bg-secondary::before {
  content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: currentColor;
  margin-right: .4em; vertical-align: .08em; opacity: .85;
}
.badge.fs-6 { font-size: .8rem !important; }
.badge-whatsapp { background: #e3f8ea !important; color: #0f7a3d !important; box-shadow: inset 0 0 0 1px #b3e8c6; }

/* ---------------------------------------------------------------- avisos */
.alert { border-radius: var(--raio); border: 1px solid; border-left-width: 4px; padding: .85rem 1.1rem; box-shadow: var(--sombra-sm); font-weight: 500; }
.alert-success { background: #f1faf5; border-color: var(--ok-line); border-left-color: #12935a; color: #0d5c37; }
.alert-danger { background: #fff4f3; border-color: var(--erro-line); border-left-color: #d92d20; color: #8f1d14; }
.alert-warning { background: #fffaeb; border-color: var(--aviso-line); border-left-color: var(--gold-500); color: #6b4c00; }
.alert-info { background: #f1f8fc; border-color: var(--info-line); border-left-color: #0b84b4; color: #08516e; }
.alert .btn-close { padding: 1.05rem 1rem; }

/* ---------------------------------------------------------------- menus, abas e janelas */
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--raio); box-shadow: var(--sombra-lg); padding: .4rem; font-size: .9rem; min-width: 15rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; color: var(--ink-2); font-weight: 500; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--navy-50); color: var(--navy-900); }
.dropdown-item:active { background: var(--navy-100); color: var(--navy-900); }
.dropdown-divider { border-color: var(--line); margin: .35rem .25rem; }
.dropdown-item-text { padding: .45rem .75rem; }
.nav-tabs.abas-funcionarios { border-bottom: 1px solid var(--line); gap: .25rem; }
.abas-funcionarios .nav-link {
  border: 0; border-radius: 8px 8px 0 0; color: var(--muted); font-weight: 600; padding: .65rem 1rem; margin-bottom: -1px;
  transition: color .15s, background-color .15s;
}
.abas-funcionarios .nav-link:hover { color: var(--navy-900); background: rgba(14,36,70,.04); }
.abas-funcionarios .nav-link.active { color: var(--navy-900); background: transparent; border-top: 0; box-shadow: inset 0 -3px 0 var(--gold-500); }
.nav-pills-sicof .nav-link { border-radius: 8px; font-weight: 600; }
.modal-content { border: 0; border-radius: var(--raio-lg); box-shadow: var(--sombra-lg); }
.modal-header { border-bottom-color: var(--line); padding: 1rem 1.4rem; }
.modal-header .modal-title { font-family: var(--fonte-titulo); font-weight: 700; }
.modal-footer { border-top-color: var(--line); }
.modal-backdrop.show { opacity: .55; }
.tooltip-inner { border-radius: 8px; }

/* ---------------------------------------------------------------- painel do escritório: resumo por status */
.resumo-status .card {
  text-align: left !important; padding: 1rem 1.1rem !important; border: 1px solid var(--line) !important;
  border-top: 3px solid var(--cor-status, var(--line-2)) !important; transition: transform .15s, box-shadow .15s;
}
.resumo-status .card:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.resumo-status .card.selecionado { box-shadow: 0 0 0 2px var(--gold-500), var(--sombra); }
.resumo-status .numero { font-family: var(--fonte-titulo); font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.resumo-status .status-aberta { --cor-status: #0b84b4; }
.resumo-status .status-enviada { --cor-status: var(--navy-700); }
.resumo-status .status-em_revisao { --cor-status: var(--gold-500); }
.resumo-status .status-com_pendencia { --cor-status: #d92d20; }
.resumo-status .status-fechada { --cor-status: #12935a; }
.resumo-status .status-nao_iniciada { --cor-status: #98a2b3; }

/* ---------------------------------------------------------------- calendário de dias trabalhados */
.grade-cal { gap: 8px; }
.grade-cal .cab { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.grade-cal .dia { border-radius: 12px; border-color: var(--line); box-shadow: var(--sombra-sm); font-family: var(--fonte-titulo); font-size: 1.05rem;
  transition: transform .08s, box-shadow .15s, background-color .15s; }
.grade-cal button.dia:hover:not(:disabled) { border-color: var(--gold-500); box-shadow: var(--anel); }
.grade-cal button.dia:disabled { cursor: default; }
.grade-cal .dia.fds { background: #f0f2f6; color: #6b7587; }
.grade-cal .dia.trabalhou { background: linear-gradient(180deg, #1aa866, #12935a) !important; border-color: #12935a !important; box-shadow: 0 4px 10px -4px rgba(18,147,90,.6); }
.grade-cal .dia.falta { background: linear-gradient(180deg, #ea4b40, #d92d20) !important; border-color: #d92d20 !important; box-shadow: 0 4px 10px -4px rgba(217,45,32,.6); }

/* ---------------------------------------------------------------- rodapé */
footer.rodape-sicof { border-top: 1px solid var(--line); background: rgba(255,255,255,.6); padding: 1rem 1.5rem !important; font-size: .8rem; color: var(--muted); }
footer.rodape-sicof .marca-rodape { font-family: var(--fonte-titulo); font-weight: 800; color: var(--navy-900); letter-spacing: .04em; }
footer.rodape-sicof .marca-rodape span { color: var(--gold-600); }
footer.rodape-sicof .sep { margin: 0 .5rem; color: var(--line-2); }

/* ---------------------------------------------------------------- tela de entrada */
.acesso-form h1, .acesso-form h2, .acesso-form .h3, .acesso-form .h4 { font-family: var(--fonte-titulo); font-weight: 800; letter-spacing: -.02em; }
.tela-acesso .form-control { min-height: 50px; font-size: 1rem; }
.tela-acesso .btn { min-height: 48px; }
.acesso-slogan { font-size: 1.05rem; line-height: 1.6; }

/* ---------------------------------------------------------------- detalhes */
.logo-mini { border-radius: 6px; box-shadow: var(--sombra-sm); }
.pagina-aviso { border: 1px solid var(--line); box-shadow: var(--sombra); }
.cicero-janela { font-family: var(--fonte); }
.cicero-topo-texto strong { font-family: var(--fonte-titulo); }
hr { border-color: var(--line); opacity: 1; }
code { color: var(--navy-700); background: var(--navy-50); padding: .1em .35em; border-radius: 5px; }

/* ajustes finos */
.form-select { padding-right: 2.5rem; background-position: right .85rem center; }
.form-select-sm { padding-right: 2.2rem; background-position: right .65rem center; }
.grade-cal .dia.vazio { box-shadow: none; border: 0; background: transparent; }
/* títulos sobre fundo azul marinho continuam brancos */
.conheca-topo h1, .conheca-topo .h1, .acesso-marca h1, .acesso-marca h2 { color: #fff; }
.conheca-topo h1 { font-family: var(--fonte-titulo); font-weight: 800; letter-spacing: -.025em; }

/* ================================================================ v14 – Gestão de Tarefas da Folha */
:root {
  --pri-urgente: #d92d20; --pri-alta: #e07b0e; --pri-normal: var(--navy-700); --pri-baixa: #98a2b3;
}
.navbar-sicof .rotulo-longo { display: none; }
@media (min-width: 1800px) { .navbar-sicof .rotulo-longo { display: inline; } }

/* ---------- sino de avisos */
.sino { position: relative; }
.btn-sino {
  position: relative; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.12rem; transition: background-color .15s, border-color .15s;
}
.btn-sino:hover, .btn-sino[aria-expanded="true"] { background: rgba(212,175,55,.16); border-color: rgba(212,175,55,.45); color: var(--gold-400); }
.btn-sino:focus-visible { outline: 0; box-shadow: var(--anel); }
.sino-contador {
  position: absolute; top: -4px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--gold-500); color: var(--navy-950); font-size: .68rem; font-weight: 800; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--navy-900);
}
.sino-contador.urgente { background: #e5484d; color: #fff; animation: sino-pulso 2.4s ease-in-out infinite; }
@keyframes sino-pulso { 0%, 100% { box-shadow: 0 0 0 2px var(--navy-900), 0 0 0 0 rgba(229,72,77,.55); }
  50% { box-shadow: 0 0 0 2px var(--navy-900), 0 0 0 6px rgba(229,72,77,0); } }
.sino-menu { width: 380px; padding: 0; overflow: hidden; margin-top: .6rem !important; }
.sino-topo { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem .7rem; border-bottom: 1px solid var(--line); }
.sino-topo strong { font-family: var(--fonte-titulo); font-size: 1rem; color: var(--navy-900); display: block; line-height: 1.2; }
.sino-topo small { color: var(--muted); font-size: .75rem; }
.sino-topo .btn-link { font-size: .78rem; text-decoration: none; }
.sino-resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .75rem 1rem; background: var(--navy-50); border-bottom: 1px solid var(--line); }
.sino-kpi { display: flex; flex-direction: column; align-items: center; padding: .45rem .25rem; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .72rem; transition: border-color .15s, transform .1s; }
.sino-kpi strong { font-family: var(--fonte-titulo); font-size: 1.25rem; line-height: 1.1; color: var(--navy-900); }
.sino-kpi:hover { border-color: var(--gold-500); color: var(--navy-800); }
.sino-kpi.atrasadas strong { color: var(--erro); }
.sino-kpi.hoje strong { color: var(--gold-700); }
.sino-lista { max-height: 340px; overflow-y: auto; }
.sino-item { display: flex; gap: .7rem; padding: .7rem 1rem; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--line);
  font-size: .85rem; line-height: 1.35; position: relative; transition: background-color .12s; }
.sino-item:hover { background: var(--navy-50); color: var(--navy-900); }
.sino-item.nao-lida { background: #fffdf6; color: var(--ink); font-weight: 550; }
.sino-item.nao-lida::after { content: ""; position: absolute; right: .9rem; top: 1rem; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }
.sino-item.nao-lida .sino-texto { padding-right: 1rem; }
.sino-texto small { display: block; color: var(--muted); font-weight: 400; font-size: .74rem; margin-top: .15rem; }
.sino-icone { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-100); color: var(--navy-700); font-size: .95rem; }
.tipo-atribuida .sino-icone { background: var(--info-bg); color: var(--info); }
.tipo-lembrete .sino-icone { background: var(--gold-100); color: var(--gold-700); }
.tipo-hoje .sino-icone { background: #fff1d6; color: #9a5b00; }
.tipo-atrasada .sino-icone { background: var(--erro-bg); color: var(--erro); }
.tipo-concluida .sino-icone { background: var(--ok-bg); color: var(--ok); }
.sino-vazio { padding: 1.6rem 1rem; text-align: center; color: var(--muted); font-size: .85rem; }
.sino-vazio .bi { display: block; font-size: 1.5rem; margin-bottom: .3rem; opacity: .6; }
.sino-rodape { display: flex; flex-direction: column; gap: .45rem; padding: .7rem 1rem .8rem; background: #fff; }
.sino-rodape a { font-weight: 600; font-size: .85rem; text-decoration: none; color: var(--navy-800); }
.sino-rodape a:hover { color: var(--gold-700); }
.sino-desktop { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--muted); cursor: pointer; margin: 0; }
.sino-desktop .form-check-input { margin: 0; }

/* ---------- avisos que aparecem no canto (toasts) */
.avisos-toasts { position: fixed; top: 78px; right: 1.25rem; z-index: 1090; display: flex; flex-direction: column; gap: .6rem; }
.toast-aviso { width: 360px; border: 1px solid var(--line); border-radius: var(--raio); box-shadow: var(--sombra-lg); background: #fff;
  overflow: hidden; border-left: 4px solid var(--gold-500); }
.toast-aviso.tipo-atrasada { border-left-color: #d92d20; }
.toast-aviso.tipo-concluida { border-left-color: #12935a; }
.toast-aviso.tipo-atribuida { border-left-color: #0b84b4; }
.toast-aviso-corpo { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem .9rem; font-size: .87rem; color: var(--ink-2); }
.toast-aviso-corpo strong { font-family: var(--fonte-titulo); color: var(--navy-900); display: block; margin-bottom: .1rem; }
.toast-aviso-corpo a { display: inline-block; margin-top: .3rem; font-weight: 600; font-size: .8rem; }
.toast-aviso .btn-close { font-size: .7rem; margin-top: .15rem; }

/* ---------- faixa no painel */
.faixa-tarefas { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--raio); box-shadow: var(--sombra-sm); border-left: 4px solid var(--gold-500); }
.faixa-icone { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: var(--gold-400); box-shadow: 0 4px 10px -4px rgba(7,23,47,.5); }
.faixa-tarefas strong { font-family: var(--fonte-titulo); color: var(--navy-900); }
.faixa-kpi { display: inline-flex; align-items: baseline; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; text-decoration: none;
  font-size: .84rem; font-weight: 600; border: 1px solid var(--line); color: var(--ink-2); background: var(--navy-50); white-space: nowrap; }
.faixa-kpi strong { font-size: 1rem; }
.faixa-kpi.atrasadas { background: var(--erro-bg); border-color: var(--erro-line); color: var(--erro); }
.faixa-kpi.atrasadas strong { color: var(--erro); }
.faixa-kpi.hoje { background: var(--gold-50); border-color: var(--aviso-line); color: var(--aviso); }
.faixa-kpi.hoje strong { color: var(--gold-700); }
.faixa-kpi.zero { background: var(--navy-50) !important; border-color: var(--line) !important; color: var(--muted) !important; }
.faixa-kpi.zero strong { color: var(--muted) !important; }
.faixa-kpi:hover { box-shadow: var(--anel); }

/* ---------- topo e indicadores */
.tarefas-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.selo-secao { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold-700); background: var(--gold-50); border: 1px solid var(--aviso-line); padding: .2rem .65rem; border-radius: 999px; margin-bottom: .5rem; }
.kpi { display: flex; align-items: center; gap: .9rem; height: 100%; padding: 1rem 1.15rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--raio); box-shadow: var(--sombra-sm); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.kpi-icone { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.kpi-numero { font-family: var(--fonte-titulo); font-size: 1.75rem; font-weight: 800; line-height: 1.05; color: var(--navy-900); letter-spacing: -.02em; }
.kpi-numero small { font-family: var(--fonte); font-size: .78rem; font-weight: 600; color: var(--ok); letter-spacing: 0; margin-left: .3rem; }
.kpi-rotulo { color: var(--muted); font-size: .84rem; font-weight: 500; }
.kpi-afazer .kpi-icone { background: var(--navy-100); color: var(--navy-700); }
.kpi-andamento .kpi-icone { background: var(--gold-100); color: var(--gold-700); }
.kpi-concluidas .kpi-icone { background: var(--ok-bg); color: var(--ok); }
.kpi-atrasadas .kpi-icone { background: #eef0f4; color: #6b7587; }
.kpi-atrasadas.alerta { border-color: var(--erro-line); background: linear-gradient(180deg, #fff, #fff8f7); }
.kpi-atrasadas.alerta .kpi-icone { background: var(--erro-bg); color: var(--erro); }
.kpi-atrasadas.alerta .kpi-numero { color: var(--erro); }
.kpi-barra { height: 6px; border-radius: 999px; background: var(--navy-100); margin-top: .5rem; overflow: hidden; }
.kpi-barra span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #1aa866, #12935a); }

/* ---------- calendário */
.calendario-tarefas { overflow: hidden; }
.cal-barra { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--navy-50)); }
.cal-navegar { display: flex; align-items: center; gap: .4rem; }
.cal-mes { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.35rem; margin: 0 .35rem; min-width: 190px; text-align: center; letter-spacing: -.02em; }
.cal-mes span { color: var(--gold-600); font-weight: 700; }
.btn-icone { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; color: var(--navy-800); box-shadow: var(--sombra-sm); }
.btn-icone:hover { border-color: var(--gold-500); color: var(--navy-900); background: var(--gold-50); }
.cal-filtros { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cal-filtros .form-select-sm { width: auto; min-width: 150px; max-width: 210px; }
.cal-chave { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); font-weight: 500; margin: 0 .15rem; cursor: pointer; white-space: nowrap; }
.cal-chave .form-check-input { margin: 0; }
.cal-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; }
.cal-cab { background: var(--navy-50); text-align: center; padding: .55rem 0; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }
.cal-dia { background: #fff; min-height: 128px; padding: .4rem .45rem .5rem; display: flex; flex-direction: column; gap: 3px; position: relative; min-width: 0;
  transition: background-color .12s; }
.cal-dia:hover { background: #fdfcf7; }
.cal-dia.fds { background: #fafbfc; }
.cal-dia.fora { background: #f6f7f9; }
.cal-dia.fora .cal-num { color: #b3bac6; }
.cal-dia.fora .cal-tarefa, .cal-dia.fora .cal-sistema { opacity: .6; }
.cal-dia.hoje { background: linear-gradient(180deg, #fffaeb, #fff 60%); box-shadow: inset 0 0 0 2px var(--gold-500); z-index: 1; }
.cal-dia.selecionado { box-shadow: inset 0 0 0 2px var(--navy-700); z-index: 2; }
.cal-dia-topo { display: flex; align-items: center; gap: .35rem; margin-bottom: 2px; }
.cal-num { font-family: var(--fonte-titulo); font-weight: 700; font-size: .92rem; color: var(--navy-900); text-decoration: none; width: 28px; height: 28px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.cal-num:hover { background: var(--navy-100); }
.cal-dia.hoje .cal-num { background: var(--navy-900); color: var(--gold-400); }
.cal-hoje { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); }
.cal-add { margin-left: auto; width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy-700); background: var(--navy-50); border: 1px solid var(--line); opacity: 0; transition: opacity .12s; text-decoration: none; font-size: .8rem; }
.cal-dia:hover .cal-add, .cal-add:focus { opacity: 1; }
.cal-add:hover { background: var(--gold-500); border-color: var(--gold-600); color: var(--navy-950); }
.cal-tarefa { display: flex; align-items: center; gap: .3rem; padding: .18rem .45rem; border-radius: 6px; font-size: .76rem; line-height: 1.35;
  text-decoration: none; color: var(--ink); background: var(--navy-50); border-left: 3px solid var(--pri-normal); min-width: 0;
  transition: transform .08s, box-shadow .12s; }
.cal-tarefa:hover { box-shadow: 0 2px 8px -3px rgba(7,23,47,.35); color: var(--navy-900); transform: translateX(1px); }
.cal-tarefa .texto { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.cal-tarefa .hora { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy-700); font-size: .7rem; }
.cal-tarefa.prioridade-urgente { border-left-color: var(--pri-urgente); background: #fff2f1; }
.cal-tarefa.prioridade-alta { border-left-color: var(--pri-alta); background: #fff6ea; }
.cal-tarefa.prioridade-baixa { border-left-color: var(--pri-baixa); background: #f5f6f8; }
.cal-tarefa.atrasada { background: var(--erro-bg); color: var(--erro); box-shadow: inset 0 0 0 1px var(--erro-line); }
.cal-tarefa.atrasada .hora { color: var(--erro); }
.cal-tarefa.concluida { background: #f1f3f6; border-left-color: #c3cad6; color: #8a93a3; }
.cal-tarefa.concluida .texto { text-decoration: line-through; font-weight: 500; }
.cal-tarefa.concluida .bi { color: var(--ok); }
.cal-sistema { display: flex; align-items: center; gap: .3rem; padding: .12rem .45rem; border-radius: 6px; font-size: .7rem; font-weight: 600;
  text-decoration: none; border: 1px dashed; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-sistema.prazo { color: var(--gold-700); border-color: var(--gold-400); background: var(--gold-50); }
.cal-sistema.ferias { color: #0b6a8f; border-color: #93cde6; background: #f1f9fd; }
.cal-sistema:hover { filter: brightness(.97); }
.cal-mais { font-size: .72rem; font-weight: 700; color: var(--navy-700); text-decoration: none; padding: 0 .45rem; }
.cal-mais:hover { color: var(--gold-700); text-decoration: underline; }
.cal-legenda { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; padding: .75rem 1.1rem; border-top: 1px solid var(--line);
  font-size: .76rem; color: var(--muted); background: #fff; }
.cal-legenda .sep { width: 1px; height: 14px; background: var(--line-2); }
.cal-legenda .bi-check2 { color: var(--ok); }
.cal-legenda .bi-send-check { color: var(--gold-700); }
.cal-legenda .bi-sun { color: #0b6a8f; }
.ponto { display: inline-block; width: 9px; height: 9px; border-radius: 3px; vertical-align: 0; background: var(--pri-normal); }
.ponto.urgente { background: var(--pri-urgente); }
.ponto.alta { background: var(--pri-alta); }
.ponto.baixa { background: var(--pri-baixa); }
.ponto.atrasada { background: var(--erro-bg); box-shadow: inset 0 0 0 1px var(--erro); }

/* ---------- listas laterais */
.lista-tarefas .card-header .contagem { font-family: var(--fonte); font-size: .74rem; font-weight: 700; min-width: 24px; height: 22px; padding: 0 .45rem;
  border-radius: 999px; background: var(--navy-100); color: var(--navy-800); display: inline-flex; align-items: center; justify-content: center; }
.lista-atrasadas .card-header::before { background: linear-gradient(180deg, #ef6b62, #d92d20); }
.lista-atrasadas .card-header .bi { color: var(--erro); }
.lista-atrasadas .contagem { background: var(--erro-bg) !important; color: var(--erro) !important; }
.lista-dia { border-color: var(--navy-200); }
.lista-dia .card-header { background: var(--navy-50); }
.lista-dia .card-header .btn { padding: .15rem .45rem; }
.lista-corpo { max-height: 360px; overflow-y: auto; }
.tarefa-item { display: flex; align-items: flex-start; gap: .65rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); position: relative; transition: background-color .3s; }
.tarefa-item:last-child { border-bottom: 0; }
.tarefa-item::before { content: ""; position: absolute; left: 0; top: .7rem; bottom: .7rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--pri-normal); }
.tarefa-item.prioridade-urgente::before { background: var(--pri-urgente); }
.tarefa-item.prioridade-alta::before { background: var(--pri-alta); }
.tarefa-item.prioridade-baixa::before { background: var(--pri-baixa); }
.tarefa-item.destaque { background: var(--gold-50); }
.tarefa-check { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px; border: 1.5px solid #b8c2d2; background: #fff; color: transparent;
  display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; padding: 0; margin-top: 1px; transition: all .15s; }
.tarefa-check:hover { border-color: #12935a; color: #12935a; background: var(--ok-bg); }
.tarefa-check.feito { background: #12935a; border-color: #12935a; color: #fff; }
.tarefa-info { flex: 1 1 auto; min-width: 0; }
.tarefa-titulo { display: block; font-weight: 600; font-size: .87rem; color: var(--navy-900); text-decoration: none; line-height: 1.35; }
.tarefa-titulo:hover { color: var(--gold-700); text-decoration: underline; }
.tarefa-item.concluida .tarefa-titulo { color: #8a93a3; text-decoration: line-through; }
.tarefa-meta { display: flex; flex-wrap: wrap; gap: .15rem .7rem; font-size: .75rem; color: var(--muted); margin-top: .15rem; min-width: 0; }
.tarefa-meta span { max-width: 100%; }
.tarefa-meta .andamento { color: var(--gold-700); font-weight: 600; }
.avatar-ini { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .66rem; font-weight: 800; letter-spacing: .02em; color: var(--gold-400); background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.avatar-ini.equipe { background: var(--gold-100); color: var(--gold-700); font-size: .78rem; }
.lista-vazia { padding: 1.25rem 1rem; text-align: center; color: var(--muted); font-size: .84rem; }
.lista-vazia .bi { display: block; font-size: 1.35rem; margin-bottom: .2rem; opacity: .55; }
.lista-vazia.ok .bi { color: var(--ok); opacity: .8; }

/* ---------- formulário da tarefa */
.titulo-icone { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: var(--gold-400); box-shadow: 0 6px 14px -6px rgba(7,23,47,.6); }
.escolha-pilulas { display: flex; flex-wrap: wrap; gap: .4rem; }
.pilula { margin: 0; cursor: pointer; }
.pilula input { position: absolute; opacity: 0; pointer-events: none; }
.pilula span { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .95rem; border-radius: 10px; border: 1px solid var(--line-2);
  background: #fff; font-weight: 600; font-size: .86rem; color: var(--ink-2); box-shadow: 0 1px 2px rgba(7,23,47,.04); transition: all .15s; }
.pilula:hover span { border-color: #b8c2d2; }
.pilula input:focus-visible + span { box-shadow: var(--anel); }
.pilula input:checked + span { border-color: var(--navy-800); background: var(--navy-900); color: #fff; box-shadow: 0 4px 10px -5px rgba(7,23,47,.6); }
.pilula.prioridade-urgente input:checked + span { background: var(--pri-urgente); border-color: var(--pri-urgente); }
.pilula.prioridade-alta input:checked + span { background: var(--pri-alta); border-color: var(--pri-alta); }
.pilula.prioridade-baixa input:checked + span { background: #6b7587; border-color: #6b7587; }
.pilula input:checked + span .ponto { background: #fff !important; }
.pilula.situacao-concluida input:checked + span { background: #12935a; border-color: #12935a; }
.pilula.situacao-em_andamento input:checked + span { background: var(--gold-500); border-color: var(--gold-600); color: var(--navy-950); }
.repetir-caixa { padding: 1rem 1rem .85rem; border-radius: var(--raio); background: var(--navy-50); border: 1px dashed var(--line-2); }
.repetir-caixa .mb-3 { margin-bottom: .5rem !important; }
.lista-dicas { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.lista-dicas li { display: flex; gap: .6rem; color: var(--ink-2); }
.lista-dicas .bi { color: var(--gold-600); font-size: 1rem; }
.zona-excluir { border-color: var(--erro-line); background: #fffafa; }

/* ---------- janela "Integrar com minha agenda" */
.agenda-integrar .input-group .form-control { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; background: var(--navy-50); }
.agenda-passo { height: 100%; padding: .85rem 1rem; border-radius: var(--raio); border: 1px solid var(--line); background: #fff; font-size: .82rem; color: var(--ink-2); }
.agenda-passo strong { display: flex; align-items: center; gap: .4rem; font-family: var(--fonte-titulo); color: var(--navy-900); margin-bottom: .35rem; font-size: .9rem; }
.agenda-passo strong .bi { color: var(--gold-600); }
/* marca d'água fica atrás das janelas (modais): antes ela aparecia por cima do conteúdo da janela */
body.modal-open:not(.tela-acesso):not(.tela-conheca)::after { z-index: 1040; }
.card-header .btn .bi { color: inherit; }
@media (max-width: 1439.98px) { .navbar-sicof .btn-conheca .rotulo-sicof { display: none; } }

/* ================================================================ v15 – ranking da equipe */
:root { --ouro: #d4af37; --prata: #a7b1c2; --bronze: #c3804a; }
.abas-tarefas { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--navy-100); border: 1px solid var(--line); margin-right: .35rem; }
.abas-tarefas a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 9px; font-weight: 600; font-size: .88rem;
  color: var(--navy-700); text-decoration: none; transition: background-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.abas-tarefas a:hover { color: var(--navy-900); background: rgba(255,255,255,.6); }
.abas-tarefas a.ativa { background: #fff; color: var(--navy-900); box-shadow: var(--sombra-sm); }
.abas-tarefas a.ativa .bi { color: var(--gold-600); }

.ranking-mes { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ranking-situacao { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.ranking-situacao.aberto { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.ranking-situacao.fechado { background: var(--navy-100); color: var(--navy-800); border: 1px solid var(--navy-200); }
.ranking-situacao .pulso { width: 8px; height: 8px; border-radius: 50%; background: #12935a; animation: ranking-pulso 1.8s ease-in-out infinite; }
@keyframes ranking-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(18,147,90,.5); } 50% { box-shadow: 0 0 0 6px rgba(18,147,90,0); } }
.ranking-total { color: var(--muted); font-size: .88rem; margin-left: auto; }
.ranking-total strong { font-family: var(--fonte-titulo); color: var(--navy-900); font-size: 1.05rem; }
.btn-icone.disabled { opacity: .4; pointer-events: none; }

/* faixa do prêmio */
.premio-faixa { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem 1.35rem; border-radius: var(--raio-lg);
  color: #fff; background: radial-gradient(600px 160px at 85% -40%, rgba(226,195,95,.35), transparent 70%), linear-gradient(120deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--sombra); border: 1px solid rgba(212,175,55,.35); }
.premio-faixa::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold-500), var(--gold-400), var(--gold-500), transparent); }
.premio-icone { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem;
  color: var(--navy-950); background: linear-gradient(160deg, #f3dc8a, #d4af37 55%, #a98620); box-shadow: 0 8px 20px -8px rgba(212,175,55,.8), inset 0 1px 0 rgba(255,255,255,.5); }
.premio-rotulo { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); }
.premio-descricao { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.25; }
.premio-descricao .sem { color: rgba(255,255,255,.55); font-weight: 600; font-size: 1.05rem; }
.premio-vencedor { margin-top: .25rem; font-size: .88rem; color: rgba(255,255,255,.85); }
.premio-vencedor strong { color: #fff; }
.premio-vencedor .bi { color: var(--gold-400); }
.premio-faixa .text-muted { color: rgba(255,255,255,.6) !important; }
.premio-acoes { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.btn-premio-editar { color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.btn-premio-editar:hover { color: var(--navy-950); background: var(--gold-400); border-color: var(--gold-400); }
.premio-form { border-color: var(--aviso-line); background: var(--gold-50); }

/* pódio */
.podio-card { overflow: hidden; background: radial-gradient(700px 260px at 50% 0%, rgba(212,175,55,.12), transparent 70%), #fff; }
.podio { display: flex; justify-content: center; align-items: flex-end; gap: 1.25rem; padding: 2rem 1.5rem 0; }
.podio-lugar { flex: 0 1 220px; display: flex; flex-direction: column; align-items: center; }
.podio-lugar.ordem-1 { order: 2; } .podio-lugar.ordem-2 { order: 1; } .podio-lugar.ordem-3 { order: 3; }
.podio-pessoa { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: .9rem; position: relative; }
.podio-coroa { font-size: 1.6rem; color: var(--gold-500); filter: drop-shadow(0 3px 6px rgba(150,118,28,.45)); margin-bottom: .2rem; }
.podio-avatar { position: relative; width: 84px; height: 84px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.5rem; color: var(--gold-400); background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--cor-medalha, var(--line-2)), 0 12px 24px -10px rgba(7,23,47,.5); margin-bottom: .85rem; }
.podio-avatar img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; }
.lugar-1 .podio-avatar { width: 104px; height: 104px; font-size: 1.85rem; --cor-medalha: var(--ouro); }
.lugar-2 .podio-avatar { --cor-medalha: var(--prata); }
.lugar-3 .podio-avatar { --cor-medalha: var(--bronze); }
.podio-medalha { position: absolute; bottom: -6px; right: -4px; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; font-family: var(--fonte-titulo); font-size: .8rem; font-weight: 800; color: var(--navy-950); background: var(--cor-medalha);
  box-shadow: 0 0 0 3px #fff, 0 4px 8px -2px rgba(7,23,47,.35); }
.lugar-1 .podio-medalha { background: linear-gradient(160deg, #f3dc8a, #d4af37 60%, #b08a1d); }
.podio-nome { font-family: var(--fonte-titulo); font-size: 1.02rem; color: var(--navy-900); }
.lugar-1 .podio-nome { font-size: 1.15rem; }
.podio-total { font-weight: 700; color: var(--navy-800); font-size: .9rem; }
.lugar-1 .podio-total { color: var(--gold-700); }
.podio-prazo { font-size: .76rem; color: var(--muted); margin-top: .1rem; }
.podio-degrau { width: 100%; display: flex; align-items: flex-start; justify-content: center; padding-top: .7rem; border-radius: 14px 14px 0 0;
  font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.6rem; color: rgba(255,255,255,.95); }
.lugar-1 .podio-degrau { height: 110px; background: linear-gradient(180deg, #e7c75a, #c79f2a); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.lugar-2 .podio-degrau { height: 80px; background: linear-gradient(180deg, #c3cbd8, #98a3b5); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.lugar-3 .podio-degrau { height: 60px; background: linear-gradient(180deg, #d99a66, #b57440); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.podio-degrau span { text-shadow: 0 2px 4px rgba(0,0,0,.18); }
.podio-vazio { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 2.5rem 1rem; color: var(--muted); text-align: center; }
.podio-vazio .bi { font-size: 2.2rem; color: var(--gold-500); opacity: .7; }
.podio-vazio strong { color: var(--navy-900); font-family: var(--fonte-titulo); }

/* tabela */
.tabela-ranking tr.lider td { background: linear-gradient(90deg, var(--gold-50), #fff 60%); }
.tabela-ranking tr.sou-eu td:first-child { box-shadow: inset 3px 0 0 var(--navy-700); }
.posicao { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 28px; padding: 0 .4rem; border-radius: 8px;
  font-family: var(--fonte-titulo); font-weight: 800; font-size: .85rem; background: var(--navy-50); color: var(--navy-800); border: 1px solid var(--line); }
.posicao.p1 { background: linear-gradient(160deg, #f3dc8a, #d4af37); color: var(--navy-950); border-color: #c39b26; }
.posicao.p2 { background: linear-gradient(160deg, #e3e8ef, #b9c2cf); color: var(--navy-900); border-color: #a7b1c2; }
.posicao.p3 { background: linear-gradient(160deg, #f0c39d, #c98a57); color: #3d220d; border-color: #b57440; }
.ranking-barra { display: inline-block; vertical-align: middle; width: calc(100% - 48px); height: 8px; border-radius: 999px; background: var(--navy-100); overflow: hidden; }
.ranking-barra span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--navy-600), var(--navy-800)); }
.tabela-ranking tr.lider .ranking-barra span { background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); }
.ranking-num { display: inline-block; width: 40px; text-align: right; font-family: var(--fonte-titulo); font-size: 1rem; color: var(--navy-900); }
.avatar-ini.com-foto { padding: 0; overflow: hidden; background: #fff; }
.avatar-ini.com-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }

/* galeria e mini ranking */
.galeria-item { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background-color .12s; }
.galeria-item:last-child { border-bottom: 0; }
.galeria-item:hover { background: var(--gold-50); }
.galeria-mes { flex: 0 0 48px; display: flex; flex-direction: column; align-items: center; padding: .3rem 0; border-radius: 10px; background: var(--navy-900);
  color: rgba(255,255,255,.7); font-size: .68rem; line-height: 1.2; }
.galeria-mes strong { font-family: var(--fonte-titulo); font-size: .9rem; color: var(--gold-400); text-transform: uppercase; letter-spacing: .04em; }
.galeria-avatares { display: inline-flex; }
.galeria-avatares .avatar-ini + .avatar-ini { margin-left: -8px; }
.galeria-texto { flex: 1 1 auto; min-width: 0; font-size: .86rem; }
.galeria-texto strong { display: block; color: var(--navy-900); }
.galeria-texto small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.galeria-entregue { color: var(--ok); font-size: 1rem; }
a.ranking-mini { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.ranking-mini:hover { box-shadow: var(--sombra); transform: translateY(-1px); }
.ranking-mini .card-header .bi-trophy { color: var(--gold-600); }
.ranking-mini-link { color: var(--navy-700); font-family: var(--fonte); }
.ranking-mini-corpo { padding: .35rem 0; }
.ranking-mini-linha { display: flex; align-items: center; gap: .6rem; padding: .45rem 1rem; font-size: .88rem; font-weight: 600; color: var(--navy-900); }
.ranking-mini-linha strong { font-family: var(--fonte-titulo); }
.ranking-mini-premio { margin: .25rem 1rem .6rem; padding: .45rem .7rem; border-radius: 10px; background: var(--gold-50); border: 1px dashed var(--gold-400);
  color: var(--gold-700); font-size: .8rem; font-weight: 600; }
.tipo-premio .sino-icone { background: linear-gradient(160deg, #f3dc8a, #d4af37); color: var(--navy-950); }
.toast-aviso.tipo-premio { border-left-color: var(--gold-500); }
.tabela-ranking td strong, .tabela-ranking .btn { white-space: nowrap; }
.tabela-ranking th:nth-child(3) { width: 26% !important; }
.tarefas-topo > div:first-child { min-width: 0; }
.tarefas-topo .btn { white-space: nowrap; }
.rotulo-agenda-longo { display: none; }
@media (min-width: 1600px) { .rotulo-agenda-longo { display: inline; } }
.ranking-mini .card-header { white-space: nowrap; }
.tabela-ranking th:nth-child(3) { width: auto !important; }
.ranking-barra { width: 150px; }
.tabela-ranking > :not(caption) > * > * { padding-left: .75rem; padding-right: .75rem; }
.tabela-ranking td:nth-child(3) { white-space: nowrap; }
.tabela-ranking .ranking-barra { width: 120px; }
.tabela-ranking tr.lider td { background: #fffaea; }

/* ---------------------------------------------------------------- v15: calendário com cores destacadas (pedido do usuário) */
.calendario-tarefas { border-color: var(--navy-200); box-shadow: var(--sombra); }
.cal-barra { background: linear-gradient(180deg, #fff, var(--navy-50)); border-bottom-color: var(--navy-200); }
.cal-grade { background: #c9d2e0; gap: 1px; }
.cal-cab { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: rgba(255,255,255,.82); padding: .65rem 0; font-size: .72rem; }
.cal-cab:first-child, .cal-cab:nth-child(7) { color: var(--gold-400); }
.cal-dia { background: #fff; }
.cal-dia:hover { background: #fffbef; }
.cal-dia.fds { background: #eef2f8; }
.cal-dia.fds:hover { background: #e8edf6; }
.cal-dia.fora { background: #e4e8ef; }
.cal-dia.fora .cal-num { color: #98a2b3; }
.cal-num { font-size: .95rem; font-weight: 800; }
.cal-dia.hoje { background: linear-gradient(180deg, #fff1c2 0%, #fff8e1 55%, #fff 100%); box-shadow: inset 0 0 0 3px var(--gold-500); }
.cal-dia.hoje .cal-num { background: var(--navy-900); color: var(--gold-400); box-shadow: 0 2px 6px -2px rgba(7,23,47,.6); }
.cal-hoje { background: var(--gold-500); color: var(--navy-950); padding: .1rem .45rem; border-radius: 999px; font-size: .6rem; }
.cal-dia.selecionado { box-shadow: inset 0 0 0 3px var(--navy-700); }
.cal-dia.hoje.selecionado { box-shadow: inset 0 0 0 3px var(--gold-500), inset 0 0 0 5px var(--navy-700); }

/* tarefas com cor cheia por prioridade */
.cal-tarefa { border-left-width: 4px; font-weight: 600; box-shadow: 0 1px 2px rgba(7,23,47,.12); }
.cal-tarefa, .cal-tarefa.prioridade-normal { background: #dbe5f6; border-left-color: var(--navy-700); color: var(--navy-900); }
.cal-tarefa .hora { color: var(--navy-800); }
.cal-tarefa.prioridade-urgente { background: #fcd9d5; border-left-color: #c4221a; color: #7a140e; }
.cal-tarefa.prioridade-urgente .hora { color: #7a140e; }
.cal-tarefa.prioridade-alta { background: #ffe1bd; border-left-color: #d9700a; color: #6b3600; }
.cal-tarefa.prioridade-alta .hora { color: #6b3600; }
.cal-tarefa.prioridade-baixa { background: #e6e9ef; border-left-color: #8a94a6; color: #3d4757; }
.cal-tarefa.atrasada { background: linear-gradient(180deg, #e5483d, #cf2d22); border-left-color: #8f1d14; color: #fff; box-shadow: 0 2px 6px -2px rgba(207,45,34,.7); }
.cal-tarefa.atrasada .hora { color: #fff; }
.cal-tarefa.concluida { background: #d8f0e3; border-left-color: #12935a; color: #2f6b4c; box-shadow: none; }
.cal-tarefa.concluida .texto { color: #4f7a63; font-weight: 500; }
.cal-tarefa.concluida .bi { color: #12935a; font-weight: 700; }
.cal-tarefa:hover { filter: brightness(.97); box-shadow: 0 3px 10px -3px rgba(7,23,47,.4); }
.cal-sistema { border-style: solid; font-weight: 700; }
.cal-sistema.prazo { background: linear-gradient(180deg, #f7e3a1, #f0d47a); border-color: #c9a227; color: #5c4300; }
.cal-sistema.ferias { background: #cfe9f7; border-color: #5aaed6; color: #07506d; }
.cal-mais { color: var(--navy-800); background: rgba(14,36,70,.06); border-radius: 6px; padding: .05rem .45rem; align-self: flex-start; }

/* legenda acompanha as cores novas */
.ponto, .ponto.normal { background: var(--navy-700); }
.ponto.urgente { background: #c4221a; }
.ponto.alta { background: #d9700a; }
.ponto.baixa { background: #8a94a6; }
.ponto.atrasada { background: #cf2d22; box-shadow: none; }
.cal-legenda { background: var(--navy-50); border-top-color: var(--navy-200); color: var(--ink-2); font-weight: 500; }

/* ===================================================================== v16 – foto de perfil da equipe */
.avatar-foto { width: 30px; height: 30px; border-radius: 999px; object-fit: cover; vertical-align: -9px;
  border: 2px solid var(--gold-500, #d4af37); background: #fff; }
.avatar-ini.avatar-barra { width: 30px; height: 30px; flex-basis: 30px; vertical-align: -9px; border: 2px solid var(--gold-500, #d4af37);
  background: var(--gold-100, #faf3dc); color: var(--navy-900, #061730); font-size: .72rem; }
.avatar-ini.avatar-lista { width: 34px; height: 34px; flex-basis: 34px; font-size: .78rem; }
.foto-cadastro { display: flex; gap: 1.5rem; align-items: center; padding: 1rem; border: 1px solid var(--line, #e5e9f0);
  border-radius: 14px; background: linear-gradient(180deg, #fbfcfe, #f5f7fb); }
.foto-perfil-grande { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 999px; display: flex; align-items: center;
  justify-content: center; overflow: hidden; background: var(--navy-900, #061730); color: var(--gold-500, #d4af37);
  font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; font-size: 2.4rem; letter-spacing: .02em;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold-500, #d4af37), 0 10px 24px rgba(6, 23, 48, .18); }
.foto-perfil-grande .bi { font-size: 3rem; }
.foto-perfil-grande.com-foto { background: #fff; }
.foto-perfil-grande img { width: 100%; height: 100%; object-fit: cover; }
.foto-cadastro .mb-3:last-child { margin-bottom: 0 !important; }
.tarefa-item .avatar-ini.com-foto { border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--line, #e5e9f0); }

/* ===================================================================== v16 – convenções e sindicatos */
.min-w-0 { min-width: 0; }
.text-dourado-escuro { color: var(--gold-700); font-weight: 600; }
.kpi-link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.kpi-link:hover { transform: translateY(-2px); box-shadow: var(--sombra); color: inherit; }
.kpi-andamento.atencao { border-color: var(--gold-400); background: linear-gradient(180deg, #fff, #fffaea); }
.kpi-andamento.atencao .kpi-numero { color: var(--gold-700); }

.filtros-sindicatos { display: grid; grid-template-columns: minmax(0, 1fr) 210px 230px auto auto; gap: .6rem; align-items: center;
  padding: .85rem; margin-bottom: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--raio-lg); box-shadow: var(--sombra-sm); }
.filtros-sindicatos .input-group-text { background: var(--navy-50); color: var(--navy-700); }

.card-sindicato { overflow: hidden; }
.card-sindicato.situacao-vencendo { border-color: var(--gold-400); }
.card-sindicato.situacao-vencida { border-color: var(--erro-line); }
.sindicato-topo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sindicato-nome { display: flex; gap: .8rem; align-items: center; min-width: 0; }
.sindicato-nome .fw-bold { color: var(--navy-900); letter-spacing: .01em; }
.sindicato-icone { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; background: var(--navy-100); color: var(--navy-700); }
.sindicato-icone.patronal { background: var(--gold-100); color: var(--gold-700); }
.sindicato-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.pilula-tipo { display: inline-flex; align-items: center; padding: .05rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; background: var(--navy-100); color: var(--navy-700); }
.pilula-tipo.patronal { background: var(--gold-100); color: var(--gold-700); }
.pilula-empresa { display: inline-block; margin: 0 .3rem .2rem 0; padding: .1rem .55rem; border-radius: 999px; background: var(--navy-50);
  border: 1px solid var(--line); font-size: .78rem; color: var(--navy-800); }

.conv-linha { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; margin-bottom: .55rem;
  border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--raio); background: #fff; }
.conv-linha.vencida { border-left-color: #aab2c0; background: #f8f9fb; }
.conv-linha.futura { border-left-color: var(--info); }
.conv-linha.vence-logo { border-left-color: var(--gold-500); background: linear-gradient(90deg, #fffaea, #fff 45%); }
.conv-titulo { font-weight: 700; color: var(--navy-900); text-decoration: none; margin-right: .4rem; }
.conv-titulo:hover { color: var(--navy-600); text-decoration: underline; }
.conv-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .82rem; color: var(--ink-2); margin-top: .2rem; }
.conv-acoes { display: flex; gap: .35rem; align-items: center; flex-shrink: 0; }
.badge-situacao { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700;
  vertical-align: 1px; white-space: nowrap; }
.badge-situacao.vigente { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.badge-situacao.vencida { background: #eef0f4; color: #5b6576; border: 1px solid #dde1e8; }
.badge-situacao.futura { background: var(--info-bg); color: var(--info); border: 1px solid var(--info-line); }
.badge-situacao.vence-logo { background: var(--gold-100); color: var(--gold-700); border: 1px solid var(--gold-400); }

/* importar */
.passo-card { display: flex; gap: .9rem; height: 100%; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--raio-lg);
  box-shadow: var(--sombra-sm); }
.passo-card p { margin: .2rem 0 .5rem; font-size: .88rem; color: var(--ink-2); }
.passo-num { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--fonte-titulo); font-weight: 800; background: var(--navy-900); color: var(--gold-400); }
.zona-pdf { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: 2.2rem 1rem;
  border: 2px dashed var(--navy-200); border-radius: var(--raio-lg); background: linear-gradient(180deg, #fbfcfe, #f3f6fb); cursor: pointer;
  color: var(--ink-2); text-align: center; transition: border-color .15s ease, background .15s ease; }
.zona-pdf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.zona-pdf .bi { font-size: 2.4rem; color: var(--gold-600); }
.zona-pdf strong { font-size: 1.05rem; color: var(--navy-900); }
.zona-pdf.arrastando, .zona-pdf:hover { border-color: var(--gold-500); background: #fffaea; }
.zona-pdf.com-arquivos { border-style: solid; border-color: var(--ok-line); background: var(--ok-bg); }
.lista-pdfs { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .35rem .8rem;
  font-size: .86rem; }
.lista-pdfs .bi { color: #c0392b; }
.resultado-importar { display: flex; gap: .9rem; align-items: center; }
.resultado-icone { font-size: 1.35rem; }
.resultado-importar.nova .resultado-icone { color: var(--ok); }
.resultado-importar.atualizada .resultado-icone { color: var(--info); }
.resultado-importar.repetida .resultado-icone { color: #8a94a6; }
.resultado-importar.erro .resultado-icone { color: var(--erro); }

/* página da convenção */
.conv-hero { position: relative; overflow: hidden; padding: 1.4rem 1.6rem 1.1rem; border-radius: var(--raio-lg); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(212, 175, 55, .22), transparent 55%), linear-gradient(135deg, var(--navy-900), var(--navy-700));
  box-shadow: var(--sombra); }
.conv-hero.vencida { background: linear-gradient(135deg, #2c3646, #4a5568); }
.conv-hero-topo { display: flex; justify-content: space-between; gap: 1.2rem; align-items: flex-start; }
.selo-secao.claro { color: var(--gold-400); }
.conv-hero-titulo { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.65rem; margin: .25rem 0 .6rem; letter-spacing: -.01em; }
.conv-hero-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-claro { display: inline-flex; align-items: center; gap: .3rem; padding: .14rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #e9eef7; }
.chip-claro.dourado { background: rgba(212, 175, 55, .16); border-color: rgba(212, 175, 55, .45); color: var(--gold-400); }
.conv-hero-acoes { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end; flex-shrink: 0; max-width: 46%; }
.btn-claro { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.btn-claro:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.conv-vigencia { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .14); color: #dfe6f2; }
.conv-vigencia strong { color: #fff; }
.conv-vigencia-barra { height: 8px; margin: .45rem 0 .35rem; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.conv-vigencia-barra span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #1fbf75, #38d98a); }
.conv-hero.vence-logo .conv-vigencia-barra span { background: linear-gradient(90deg, var(--gold-500), #f1d377); }
.conv-hero.vencida .conv-vigencia-barra span { background: #8a94a6; }
.conv-vigencia-texto { color: #c9d3e3; }
.conv-conferir ul { padding-left: 1.2rem; }

.resumo-secao .card-header { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.resumo-secao-icone { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-900); color: var(--gold-400); font-size: .95rem; }
.resumo-item { padding: .8rem 1.1rem; }
.resumo-item strong { color: var(--navy-900); }
.resumo-texto { font-size: .9rem; color: var(--ink-2); margin-top: .2rem; line-height: 1.5; }
.resumo-valores { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.resumo-valores span { padding: .05rem .5rem; border-radius: 6px; background: var(--gold-50); border: 1px solid var(--gold-100); font-size: .78rem;
  font-weight: 700; color: var(--gold-700); }
.clausulas-busca { max-width: 340px; }
.clausula-grupo + .clausula-grupo { margin-top: .9rem; }
.clausula-grupo-nome { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); margin: .3rem 0 .35rem; }
.clausula { border: 1px solid var(--line); border-radius: var(--raio); margin-bottom: .35rem; background: #fff; transition: box-shadow .3s ease; }
.clausula summary { padding: .55rem .85rem; cursor: pointer; font-weight: 600; color: var(--navy-900); list-style-position: inside; }
.clausula[open] summary { border-bottom: 1px solid var(--line); background: var(--navy-50); }
.clausula-ordem { display: inline-block; min-width: 0; margin-right: .35rem; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); }
.clausula-texto { padding: .7rem .95rem; font-size: .9rem; line-height: 1.55; color: var(--ink); }
.clausula.destacada { box-shadow: 0 0 0 3px var(--gold-400); }
.parte-item { display: flex; gap: .7rem; align-items: flex-start; }
.parte-item .sindicato-icone { flex-basis: 34px; width: 34px; height: 34px; font-size: 1rem; }
.tabela-pisos td { padding: .45rem .9rem; font-size: .86rem; }
/* v16: com a foto na barra, o nome só aparece em telas largas (antes estourava a barra em 1440 px) */
@media (max-width: 1599.98px) { .navbar-sicof .nome-usuario { display: none; } }
.conv-hero .conv-hero-titulo { color: #fff; }
.clausula-sub { float: right; font-size: .76rem; font-weight: 500; color: var(--muted); }
/* v16: atalho do ranking na barra (só o troféu em telas menores, com a palavra a partir de 1800 px) */
.navbar-sicof .nav-ranking { border: 1px solid rgba(212,175,55,.45); border-radius: 999px; padding-left: .6rem !important; padding-right: .6rem !important; }
.navbar-sicof .nav-ranking .bi { color: var(--gold-400); opacity: 1; }
.navbar-sicof .rotulo-ranking { display: none; }
.navbar-sicof .rotulo-medio { display: none; }
@media (min-width: 1600px) { .navbar-sicof .rotulo-medio { display: inline; } }
@media (min-width: 1800px) { .navbar-sicof .rotulo-ranking { display: inline; } }

/* ===================================================================== v17 – alertas de férias no funcionário */
.selo-ferias { display: inline-flex; align-items: center; gap: .3rem; margin-left: .5rem; padding: .08rem .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; text-decoration: none; vertical-align: 1px; white-space: nowrap; }
.selo-ferias.vencida { background: var(--erro-bg); color: var(--erro); border: 1px solid var(--erro-line); }
.selo-ferias.a_vencer { background: var(--gold-100); color: var(--gold-700); border: 1px solid var(--gold-400); }
.selo-ferias:hover { filter: brightness(.96); }
tr.linha-ferias-vencida > td:first-child { box-shadow: inset 4px 0 0 var(--erro); }
tr.linha-ferias-a_vencer > td:first-child { box-shadow: inset 4px 0 0 var(--gold-500); }
.alerta-ferias { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem; border-radius: var(--raio-lg); border: 1px solid; }
.alerta-ferias.vencida { background: linear-gradient(90deg, #fff1f0, #fff 70%); border-color: var(--erro-line); }
.alerta-ferias.a_vencer { background: linear-gradient(90deg, #fffaea, #fff 70%); border-color: var(--gold-400); }
.alerta-ferias-icone { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.alerta-ferias.vencida .alerta-ferias-icone { background: var(--erro-bg); color: var(--erro); }
.alerta-ferias.a_vencer .alerta-ferias-icone { background: var(--gold-100); color: var(--gold-700); }
.alerta-ferias.vencida strong { color: var(--erro); }
.ferias-card.alerta-vencida { border-color: var(--erro-line); box-shadow: inset 4px 0 0 var(--erro), var(--sombra-sm); }
.ferias-card.alerta-a_vencer { border-color: var(--gold-400); box-shadow: inset 4px 0 0 var(--gold-500), var(--sombra-sm); }

/* ---------------------------------------------------------------- v17: Empresas, CNES e importação em lote */
.logo-vazio { display: inline-flex; align-items: center; justify-content: center; background: var(--gold-100, #fbf4dc);
  color: var(--gold-700, #8a6d12); }
.logo-mini.logo-vazio { width: 28px; height: 28px; font-size: .95rem; vertical-align: middle; }
.link-empresa { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.link-empresa:hover strong { text-decoration: underline; }
.tabela-empresas .logo-mini { width: 28px; height: 28px; object-fit: contain; background: #fff; }
.tabela-empresas tr.linha-aguardando > td { background: #fffaf0; }
.tabela-empresas tr.linha-aguardando > td:first-child { box-shadow: inset 4px 0 0 var(--gold-500, #d4af37); }
.logo-ficha { width: 72px; height: 72px; border-radius: 14px; object-fit: contain; background: #fff; box-shadow: var(--sombra-sm); }
span.logo-ficha { font-size: 2rem; }
.abas-ficha .nav-link { color: var(--navy-700, #0d2347); font-weight: 600; }
.abas-ficha .nav-link.active { color: var(--navy-900, #061730); border-bottom-color: transparent; box-shadow: inset 0 -3px 0 var(--gold-500, #d4af37); }
.abas-ficha .badge { font-weight: 600; }
.ficha-dl dt { font-weight: 500; color: var(--bs-secondary-color, #6c757d); }
.ficha-dl dd { margin-bottom: .55rem; }
.anotacoes-escritorio { background: #fffaf0; border: 1px solid var(--gold-400, #e2c35a); border-radius: 10px; padding: .6rem .8rem; }
.lista-ligar-sindicatos { max-height: 420px; overflow-y: auto; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: 10px; }
.item-ligar { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem .75rem; border-bottom: 1px solid var(--bs-border-color, #eee); cursor: pointer; }
.item-ligar:last-child { border-bottom: 0; }
.item-ligar:hover { background: #f7f9fc; }
.item-ligar.ligado { background: #fffaf0; }
.item-ligar .form-check-input { margin-top: .2rem; flex: 0 0 auto; }
.card-sindicato-mini .sindicato-icone { flex: 0 0 auto; }
.numero-cnes { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.lista-cnes { columns: 1; padding-left: 1rem; }
.lista-cnes li { margin-bottom: .25rem; }
.progresso-importar { height: 6px; }
.card-cnes-lista { border-color: var(--gold-400, #e2c35a); }

/* v17: calendário de tarefas – criar clicando no dia, mover (arrastar ou "Mover para…") e excluir */
.cal-dia[data-nova] { cursor: pointer; }
.cal-tarefa { cursor: grab; padding-right: .15rem; }
.cal-tarefa:active { cursor: grabbing; }
.cal-tarefa-link { display: flex; align-items: center; gap: .3rem; flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; }
.cal-tarefa-link:hover { color: inherit; }
.cal-tarefa-menu, .tarefa-menu { border: 0; background: transparent; color: inherit; line-height: 1; border-radius: 5px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .12s, background-color .12s; }
.cal-tarefa-menu { width: 18px; height: 18px; padding: 0; font-size: .8rem; }
.tarefa-menu { width: 26px; height: 26px; padding: 0; font-size: .95rem; color: var(--muted); align-self: center; }
.cal-tarefa:hover .cal-tarefa-menu, .cal-tarefa:focus-within .cal-tarefa-menu,
.tarefa-item:hover .tarefa-menu, .tarefa-item:focus-within .tarefa-menu { opacity: 1; }
.cal-tarefa-menu:hover, .cal-tarefa-menu:focus-visible, .tarefa-menu:hover, .tarefa-menu:focus-visible { background: rgba(7,23,47,.1); opacity: 1; }
@media (hover: none) { .cal-tarefa-menu, .tarefa-menu { opacity: .75; } }
.tarefa-item[draggable=true] { cursor: grab; }
.cal-tarefa.arrastando, .tarefa-item.arrastando { opacity: .45; }
body.arrastando-tarefa .cal-dia { transition: background-color .1s, box-shadow .1s; }
body.arrastando-tarefa .cal-dia.alvo { background: #fff3cc; box-shadow: inset 0 0 0 3px var(--gold-500); z-index: 3; }
body.arrastando-tarefa .cal-add { opacity: 0 !important; }
.cal-dia.movendo { opacity: .55; cursor: progress; pointer-events: none; }
.cal-dia.movendo::after { content: ""; position: absolute; top: .5rem; right: .5rem; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--gold-500); border-right-color: transparent; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.cal-dica { font-size: .72rem; color: var(--muted); }
.cal-aviso { margin: .75rem 1.1rem 0; }
.atalhos-mover { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 .5rem; }
.min-w-0 { min-width: 0; }

/* v18: cabeçalho com muitos botões (Convenções): os botões descem para a linha de baixo em vez de apertar o título */
.tarefas-topo.topo-quebra { flex-wrap: wrap; }
.tarefas-topo.topo-quebra > div:first-child { flex: 1 1 440px; }
.tarefas-topo.topo-quebra .topo-botoes { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }

/* v19: tela de confirmação para excluir sindicato */
.lista-excluir { padding-left: 1.1rem; margin-bottom: .75rem; }
.lista-excluir li { margin-bottom: .55rem; }

/* v19: mês da competência em verde e destacado (painel do escritório, painel da empresa e tela da competência) */
.selo-competencia { display: inline-flex; align-items: center; gap: .4rem; vertical-align: middle; white-space: nowrap;
  padding: .28rem .85rem .28rem .65rem; border-radius: 999px; font-size: .95rem; font-weight: 600; letter-spacing: 0;
  color: var(--ok); background: var(--ok-bg); border: 1.5px solid var(--ok-line); }
.selo-competencia strong { font-family: var(--fonte-titulo); font-weight: 800; color: #0f5c37; }
.selo-competencia .rotulo { font-weight: 600; }
.selo-competencia.grande { font-size: 1.3rem; padding: .42rem 1.15rem .42rem .85rem; gap: .5rem; }
.selo-competencia.atual { color: #fff; background: linear-gradient(180deg, #22a565, #13804b); border-color: #0f6e40;
  box-shadow: 0 0 0 4px rgba(34,165,101,.18), 0 6px 16px -6px rgba(19,128,75,.55); }
.selo-competencia.atual strong { color: #fff; }
.selo-mes-atual { margin-left: .2rem; padding: .14rem .55rem; border-radius: 999px; background: rgba(255,255,255,.22);
  font-size: .58em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.link-mes-atual { margin-left: .75rem; font-family: var(--fonte); font-size: .85rem; font-weight: 600; vertical-align: middle; }
.card-competencia-atual { border-color: var(--ok-line); background: linear-gradient(90deg, #eefaf3, #fff 65%);
  box-shadow: inset 5px 0 0 #1f9d5c, var(--sombra); }
tr.linha-mes-atual > td { background: #effaf3; }
tr.linha-mes-atual > td:first-child { box-shadow: inset 4px 0 0 #1f9d5c; }
.selo-mes-atual-mini { margin-left: .35rem; padding: .1rem .45rem; border-radius: 999px; background: var(--ok-bg); color: var(--ok);
  border: 1px solid var(--ok-line); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* v20: botão de formulário enquanto o envio não termina (evita o segundo clique) */
.enviando { pointer-events: none; opacity: .75; cursor: progress; }
.enviando::after { content: ""; display: inline-block; width: .85em; height: .85em; margin-left: .45em; vertical-align: -.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: girar .7s linear infinite; }
