/* Gestão CCT — Central de Convenções Coletivas · Gestão Contadores */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url('../fonts/inter-latin-800-normal.woff2') format('woff2'); }

:root {
  --navy: #0B1F3A; --navy-2: #12294A; --navy-3: #1B365E; --navy-claro: #E8EDF5;
  --laranja: #EC6A1F; --laranja-2: #D45A12; --laranja-claro: #FEF1E8;
  --fundo: #F4F6FA; --sup: #FFFFFF; --borda: #E3E8EF; --borda-2: #D0D7E2;
  --texto: #13213A; --texto-2: #4A5A72; --texto-3: #8592A6;
  --verde: #12A15E; --verde-claro: #E6F6EE; --vermelho: #D92D20; --vermelho-claro: #FDECEA; --azul: #2563EB; --azul-claro: #EAF1FE;
  --raio: 12px; --raio-p: 8px; --sombra: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06); --sombra-2: 0 12px 32px rgba(11, 31, 58, .14);
  --menu: 252px; --menu-rec: 76px; --topo: 64px; --trans: .22s cubic-bezier(.4, 0, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased; line-height: 1.45; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
a { color: var(--laranja-2); text-decoration: none; } a:hover { text-decoration: underline; }
button { font-family: inherit; }
.ic { flex-shrink: 0; display: inline-block; vertical-align: middle; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.menu { position: fixed; inset: 0 auto 0 0; width: var(--menu); background: var(--navy); color: #C9D3E3; display: flex; flex-direction: column; z-index: 40; transition: width var(--trans), transform var(--trans); }
.menu-logo { height: 84px; display: flex; align-items: center; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.menu-logo img.completa { height: 44px; width: auto; transition: opacity var(--trans); }
.menu-logo img.icone-g { height: 38px; width: auto; display: none; }
.menu nav { flex: 1; overflow-y: auto; padding: 14px 12px; scrollbar-width: thin; scrollbar-color: var(--navy-3) transparent; }
.menu .grupo { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6F82A3; padding: 14px 12px 6px; white-space: nowrap; }
.menu a.item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 10px; color: #C9D3E3; font-weight: 500; white-space: nowrap; position: relative; transition: background var(--trans), color var(--trans); text-decoration: none; }
.menu a.item:hover { background: var(--navy-2); color: #fff; }
.menu a.item.ativo { background: linear-gradient(90deg, rgba(236,106,31,.22), rgba(236,106,31,.06)); color: #fff; }
.menu a.item.ativo::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--laranja); }
.menu a.item.ativo .ic { color: var(--laranja); }
.menu a.item .cont { margin-left: auto; background: var(--laranja); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.menu a.item .cont.verm { background: var(--vermelho); }
.menu-rodape { padding: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.menu-rodape button { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: #93A3BE; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.menu-rodape button:hover { background: var(--navy-2); color: #fff; }
.recolhido .menu { width: var(--menu-rec); }
.recolhido .menu .rot, .recolhido .menu .grupo, .recolhido .menu .cont { display: none; }
.recolhido .menu-logo { justify-content: center; padding: 0; }
.recolhido .menu-logo img.completa { display: none; } .recolhido .menu-logo img.icone-g { display: block; }
.recolhido .menu a.item { justify-content: center; padding: 11px 0; }
.recolhido .menu-rodape button { justify-content: center; }
.recolhido .menu-rodape .ic { transform: rotate(180deg); }
.principal { flex: 1; margin-left: var(--menu); transition: margin var(--trans); min-width: 0; display: flex; flex-direction: column; }
.recolhido .principal { margin-left: var(--menu-rec); }
.topo { height: var(--topo); background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--borda); display: flex; align-items: center; gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 30; }
.topo h1 { font-size: 18px; }
.topo .sub { color: var(--texto-3); font-size: 13px; }
.topo .dir { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topo .btn-menu-mob { display: none; }
.nw { white-space: nowrap; }
.conteudo { padding: 24px 28px 48px; max-width: 1500px; width: 100%; animation: entrar .28s ease; }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Sino e usuário ---------- */
.sino { position: relative; }
.sino .contador { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--vermelho); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; animation: pop .3s ease; }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }
.sino.tocando .ic { animation: balanca 1s ease 2; transform-origin: top center; }
@keyframes balanca { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.painel-notif { position: absolute; top: calc(var(--topo) - 6px); right: 20px; width: 400px; max-width: calc(100vw - 24px); max-height: 70vh; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra-2); z-index: 60; animation: entrar .18s ease; }
.painel-notif .cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--borda); }
.painel-notif .lista { overflow-y: auto; }
.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #F0F2F6; cursor: pointer; transition: background var(--trans); }
.notif:hover { background: #F8FAFC; }
.notif.nao-lida { background: #FFF9F5; }
.notif .ponto { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--navy-3); }
.notif .ponto.critico { background: var(--vermelho); box-shadow: 0 0 0 4px var(--vermelho-claro); } .notif .ponto.pendente { background: var(--laranja); } .notif .ponto.sucesso { background: var(--verde); }
.notif b { display: block; font-size: 13px; font-weight: 600; }
.notif span { font-size: 12px; color: var(--texto-2); display: block; margin-top: 2px; }
.notif small { font-size: 11px; color: var(--texto-3); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; cursor: pointer; border: 2px solid var(--laranja-claro); }
.menu-usuario { position: absolute; top: calc(var(--topo) - 6px); right: 20px; width: 260px; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra-2); z-index: 60; padding: 8px; animation: entrar .18s ease; }
.menu-usuario .quem { padding: 10px 12px 12px; border-bottom: 1px solid var(--borda); margin-bottom: 6px; }
.menu-usuario .quem small { color: var(--texto-3); display: block; }
.menu-usuario button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 9px 12px; background: none; border: 0; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--texto); }
.menu-usuario button:hover { background: var(--fundo); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--raio-p); border: 1px solid transparent; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all var(--trans); white-space: nowrap; position: relative; user-select: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-pri { background: var(--laranja); color: #fff; box-shadow: 0 1px 2px rgba(236,106,31,.3); } .btn-pri:hover:not(:disabled) { background: var(--laranja-2); }
.btn-nav { background: var(--navy); color: #fff; } .btn-nav:hover:not(:disabled) { background: var(--navy-3); }
.btn-sec { background: #fff; color: var(--texto); border-color: var(--borda-2); } .btn-sec:hover:not(:disabled) { background: var(--fundo); border-color: var(--texto-3); }
.btn-perigo { background: var(--vermelho); color: #fff; } .btn-perigo:hover:not(:disabled) { background: #B42318; }
.btn-ok { background: var(--verde); color: #fff; } .btn-ok:hover:not(:disabled) { background: #0E8A50; }
.btn-link { background: none; color: var(--texto-2); border: 0; } .btn-link:hover { color: var(--laranja-2); }
.btn-p { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-icone { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 0; background: none; color: var(--texto-2); cursor: pointer; transition: all var(--trans); }
.btn-icone:hover { background: var(--fundo); color: var(--texto); }
.btn-icone.p { width: 30px; height: 30px; border-radius: 8px; }
.btn-icone.perigo:hover { background: var(--vermelho-claro); color: var(--vermelho); }
.btn.carregando { color: transparent !important; } .btn.carregando::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: gira .7s linear infinite; }
.btn-sec.carregando::after { border-color: var(--borda-2); border-top-color: var(--laranja); }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .55s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ---------- Cartões e indicadores ---------- */
.cab-pagina { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.cab-pagina p { margin: 4px 0 0; color: var(--texto-2); }
.card { background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); }
.card-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--borda); flex-wrap: wrap; }
.card-cab h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-corpo { padding: 18px 20px; }
.grade { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.mb { margin-bottom: 16px; } .mt { margin-top: 16px; }
.kpi { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans); position: relative; overflow: hidden; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); border-color: var(--borda-2); }
.kpi .topo-kpi { display: flex; justify-content: space-between; align-items: center; color: var(--texto-2); font-weight: 500; font-size: 13px; }
.kpi .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-claro); color: var(--navy); }
.kpi .num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1; }
.kpi .det { font-size: 12px; color: var(--texto-3); }
.kpi.laranja .ico { background: var(--laranja-claro); color: var(--laranja); } .kpi.laranja .num { color: var(--laranja-2); }
.kpi.verde .ico { background: var(--verde-claro); color: var(--verde); } .kpi.verde .num { color: var(--verde); }
.kpi.vermelho .ico { background: var(--vermelho-claro); color: var(--vermelho); } .kpi.vermelho .num { color: var(--vermelho); }
.kpi.vermelho.ativo { border-color: #F5B8B2; animation: alerta 2.4s ease-in-out infinite; }
@keyframes alerta { 0%,100% { box-shadow: var(--sombra); } 50% { box-shadow: 0 0 0 5px rgba(217,45,32,.12); } }
.barra { height: 8px; border-radius: 99px; background: #EDF0F5; overflow: hidden; }
.barra > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--verde), #3CC587); transition: width .8s ease; }
.barra.laranja > i { background: linear-gradient(90deg, var(--laranja), #F59A5E); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-verde { background: var(--verde-claro); color: #0B7A46; } .b-laranja { background: var(--laranja-claro); color: #B4500F; }
.b-vermelho { background: var(--vermelho-claro); color: #B42318; } .b-azul { background: var(--azul-claro); color: #1D4ED8; }
.b-cinza { background: #EEF1F5; color: #4A5A72; } .b-navy { background: var(--navy-claro); color: var(--navy); }
.pulsar { animation: pulsar 1.8s ease-in-out infinite; }
@keyframes pulsar { 0%,100% { box-shadow: 0 0 0 0 rgba(217,45,32,.35); } 50% { box-shadow: 0 0 0 5px rgba(217,45,32,0); } }

/* ---------- Tabela ---------- */
.tab-barra { display: flex; gap: 10px; align-items: center; padding: 14px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--borda); }
.busca { display: flex; align-items: center; gap: 8px; background: var(--fundo); border: 1px solid var(--borda); border-radius: 9px; padding: 0 12px; height: 38px; min-width: 240px; flex: 1; max-width: 360px; color: var(--texto-3); transition: border-color var(--trans), box-shadow var(--trans); }
.busca:focus-within { border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(236,106,31,.12); background: #fff; }
.busca input { border: 0; background: none; outline: 0; flex: 1; font: inherit; color: var(--texto); }
select.filtro { height: 38px; border: 1px solid var(--borda); border-radius: 9px; padding: 0 10px; font: inherit; font-size: 13px; color: var(--texto-2); background: #fff; max-width: 220px; cursor: pointer; }
.tab-total { margin-left: auto; color: var(--texto-3); font-size: 12.5px; }
.tab-lote { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--laranja-claro); border-bottom: 1px solid #F8D5BE; flex-wrap: wrap; animation: entrar .2s ease; }
.tab-lote b { font-size: 13px; margin-right: 6px; color: #9A430D; }
.tab-wrap { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: 12px; font-weight: 600; color: var(--texto-2); text-transform: uppercase; letter-spacing: .03em; padding: 11px 14px; background: #F9FAFC; border-bottom: 1px solid var(--borda); white-space: nowrap; }
.tabela th.ord { cursor: pointer; } .tabela th.ord:hover { color: var(--laranja-2); }
.tabela td { padding: 12px 14px; border-bottom: 1px solid #EEF1F5; vertical-align: middle; }
.tabela tbody tr { transition: background var(--trans); }
.tabela tbody tr:hover { background: #FAFBFD; }
.tabela tr.clicavel { cursor: pointer; }
.tabela tr.sel { background: #FFF8F3; }
.tabela .col-sel { width: 40px; }
.tabela .dir { text-align: right; } .tabela .cen { text-align: center; }
.tabela td.vazio { text-align: center; color: var(--texto-3); padding: 42px; }
.tabela td.vazio .ic { margin-bottom: 6px; opacity: .6; }
.tabela .principal-txt { font-weight: 600; color: var(--texto); }
.sec-txt { font-size: 12px; color: var(--texto-3); display: block; margin-top: 2px; font-weight: 400; }
.tab-pag { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px; color: var(--texto-2); font-size: 13px; }
.tab-pag:empty { display: none; }
.tabela-simples { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela-simples th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--texto-2); padding: 9px 10px; background: #F9FAFC; border-bottom: 1px solid var(--borda); }
.tabela-simples td { padding: 9px 10px; border-bottom: 1px solid #EEF1F5; vertical-align: top; }
.tabela-simples .dir { text-align: right; white-space: nowrap; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--laranja); cursor: pointer; vertical-align: middle; }

/* ---------- Formulários ---------- */
.form { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo.m { flex: 1 1 calc(50% - 16px); } .campo.p { flex: 1 1 calc(25% - 16px); min-width: 120px; } .campo.g { flex: 1 1 100%; } .campo.t { flex: 1 1 calc(33.33% - 16px); min-width: 160px; }
.campo label { font-size: 12.5px; font-weight: 600; color: var(--texto-2); }
.campo label i { color: var(--laranja); font-style: normal; }
.campo input, .campo select, .campo textarea, .inp { height: 40px; border: 1px solid var(--borda-2); border-radius: 9px; padding: 0 12px; font: inherit; color: var(--texto); background: #fff; transition: border-color var(--trans), box-shadow var(--trans); width: 100%; }
.campo textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 70px; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .inp:focus { outline: 0; border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(236,106,31,.14); }
.campo .invalido { border-color: var(--vermelho); }
.campo small { color: var(--texto-3); font-size: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.secao-form { width: 100%; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-3); padding-top: 8px; border-top: 1px dashed var(--borda); margin-top: 4px; }
.secao-form:first-child { border: 0; padding-top: 0; margin: 0; }

/* ---------- Modal ---------- */
.modal-fundo { position: fixed; inset: 0; background: rgba(11,31,58,.45); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 20px; z-index: 100; opacity: 0; transition: opacity var(--trans); }
.modal-fundo.aberto { opacity: 1; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--sombra-2); transform: translateY(14px) scale(.98); transition: transform var(--trans); }
.modal-fundo.aberto .modal { transform: none; }
.modal-cab { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--borda); }
.modal-cab h3 { font-size: 16.5px; }
.modal-corpo { padding: 20px 22px; overflow-y: auto; }
.modal-rod { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--borda); background: #FAFBFD; border-radius: 0 0 16px 16px; flex-wrap: wrap; }
.confirma { font-size: 14.5px; margin: 0; color: var(--texto-2); }

/* ---------- Toast ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: 440px; padding: 13px 16px; border-radius: 11px; background: var(--navy); color: #fff; box-shadow: var(--sombra-2); font-size: 13.5px; animation: toastIn .3s ease; }
.toast.t-ok .ic { color: #4ADE80; } .toast.t-erro { background: #7A1A12; } .toast.t-info .ic { color: #F5A46B; }
.toast.saindo { opacity: 0; transform: translateX(30px); transition: all .3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Diversos ---------- */
.spinner { width: 18px; height: 18px; border: 2px solid var(--borda-2); border-top-color: var(--laranja); border-radius: 50%; display: inline-block; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.carregando-bloco { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px; color: var(--texto-3); }
.estado-vazio { text-align: center; color: var(--texto-3); padding: 36px 20px; } .estado-vazio p { margin: 8px 0 14px; }
.lista-alertas { display: flex; flex-direction: column; }
.alerta { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #F0F2F6; align-items: flex-start; cursor: pointer; transition: background var(--trans); }
.alerta:last-child { border-bottom: 0; } .alerta:hover { background: #FAFBFD; }
.alerta .marca { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: var(--navy-claro); color: var(--navy); }
.alerta.critico .marca { background: var(--vermelho-claro); color: var(--vermelho); animation: alerta 2.4s infinite; }
.alerta.pendente .marca { background: var(--laranja-claro); color: var(--laranja); }
.alerta b { font-size: 13.5px; font-weight: 600; display: block; } .alerta span { font-size: 12.5px; color: var(--texto-2); }
.alerta .lado { margin-left: auto; text-align: right; font-size: 12px; color: var(--texto-3); white-space: nowrap; }
.linha-info { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--borda); font-size: 13.5px; }
.linha-info:last-child { border: 0; } .linha-info span:first-child { color: var(--texto-2); } .linha-info span:last-child { font-weight: 600; text-align: right; }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--borda); margin-bottom: 18px; overflow-x: auto; }
.aba { padding: 11px 16px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--texto-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--trans); display: flex; gap: 7px; align-items: center; }
.aba:hover { color: var(--texto); } .aba.ativa { color: var(--laranja-2); border-color: var(--laranja); }
.aba .n { font-size: 11px; background: var(--fundo); border-radius: 99px; padding: 1px 7px; color: var(--texto-2); }
.dica { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--navy-claro); color: var(--navy-3); font-size: 13px; align-items: flex-start; }
.dica.laranja { background: var(--laranja-claro); color: #9A430D; } .dica.vermelho { background: var(--vermelho-claro); color: #9B1C12; } .dica.verde { background: var(--verde-claro); color: #0B6B3D; }
.texto-2 { color: var(--texto-2); } .texto-3 { color: var(--texto-3); } .peq { font-size: 12px; } .negrito { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sep { height: 1px; background: var(--borda); margin: 16px 0; }
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--borda); }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item::before { content: ''; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--laranja); }
.tl-item b { font-size: 13px; font-weight: 600; } .tl-item small { display: block; color: var(--texto-3); font-size: 12px; }

/* ---------- Calendário ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--borda); border: 1px solid var(--borda); border-radius: 10px; overflow: hidden; }
.cal .dsem { background: #F9FAFC; font-size: 11.5px; font-weight: 600; color: var(--texto-2); text-align: center; padding: 8px 0; text-transform: uppercase; }
.cal .dia { background: #fff; min-height: 96px; padding: 6px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.cal .dia.fora { background: #FAFBFC; color: #C2CAD6; }
.cal .dia .n { font-weight: 700; color: var(--texto-2); font-size: 12px; }
.cal .dia.hoje .n { background: var(--laranja); color: #fff; border-radius: 99px; width: 22px; height: 22px; display: grid; place-items: center; }
.cal .ev { font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--navy-claro); color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: filter var(--trans); }
.cal .ev:hover { filter: brightness(.95); }
.cal .ev.pendente { background: var(--laranja-claro); color: #9A430D; } .cal .ev.critico { background: var(--vermelho-claro); color: #9B1C12; } .cal .ev.sucesso { background: var(--verde-claro); color: #0B6B3D; }
.cal .mais { font-size: 11px; color: var(--texto-3); cursor: pointer; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 12px; }
.mini-cal .ds { color: var(--texto-3); font-size: 11px; font-weight: 600; padding-bottom: 4px; }
.mini-cal .d { height: 32px; display: grid; place-items: center; border-radius: 8px; position: relative; color: var(--texto-2); }
.mini-cal .d.fora { color: #D0D6E0; }
.mini-cal .d.hoje { background: var(--navy); color: #fff; font-weight: 700; }
.mini-cal .d.tem::after { content: ''; position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--laranja); }
.mini-cal .d.tem.critico::after { background: var(--vermelho); }
.mini-cal .d.tem { cursor: pointer; font-weight: 600; color: var(--texto); }
.mini-cal .d.tem:hover { background: var(--fundo); }

/* ---------- Convenção: itens extraídos ---------- */
.item-ext { border: 1px solid var(--borda); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; transition: border-color var(--trans), box-shadow var(--trans); background: #fff; }
.item-ext:hover { border-color: var(--borda-2); }
.item-ext.duvida { border-color: #F5B8B2; background: #FFFBFA; }
.item-ext.conferido { border-left: 3px solid var(--verde); }
.item-ext.destaque { box-shadow: 0 0 0 3px rgba(236,106,31,.35); }
.item-ext .tit { font-weight: 600; font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item-ext .txt { font-size: 13px; color: var(--texto-2); grid-column: 1 / -1; }
.item-ext .fonte { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fonte-btn { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--navy-3); background: var(--navy-claro); border: 0; padding: 3px 9px; border-radius: 6px; cursor: pointer; font-family: inherit; transition: background var(--trans); }
.fonte-btn:hover { background: #D7E0EE; }
.trecho { font-family: Georgia, 'Times New Roman', serif; font-size: 14px; line-height: 1.6; background: #FFFCF6; border-left: 3px solid var(--laranja); padding: 12px 16px; border-radius: 0 8px 8px 0; color: #3A3427; white-space: pre-wrap; }
.grupo-cat { margin-bottom: 18px; } .grupo-cat > h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-3); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.grupo-cat .itens { display: flex; flex-direction: column; gap: 8px; }
.var-pos { color: var(--verde); font-weight: 700; } .var-neg { color: var(--vermelho); font-weight: 700; }

/* ---------- Prévia do comunicado ---------- */
.previa-wrap { background: #E9EDF3; border-radius: var(--raio); padding: 24px; overflow-x: auto; }
.folha { width: 794px; min-height: 1123px; margin: 0 auto; background: #fff; box-shadow: 0 8px 30px rgba(11,31,58,.15); display: flex; flex-direction: column; font-size: 11.5px; color: #1F2A3D; }
.folha .f-cab { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 22px 34px; border-bottom: 4px solid var(--laranja); }
.folha .f-cab img { height: 46px; }
.folha .f-cab .t { text-align: right; } .folha .f-cab .t b { display: block; font-size: 15px; } .folha .f-cab .t span { color: #F5A46B; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.folha .f-corpo { padding: 20px 34px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.folha .f-emp { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid #E3E8EF; padding-bottom: 10px; }
.folha .f-emp b { font-size: 15px; color: var(--navy); }
.folha .f-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.folha .f-info div { background: #F4F6FA; border-radius: 6px; padding: 7px 9px; } .folha .f-info small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: #6B7A90; } .folha .f-info span { font-weight: 600; font-size: 11px; }
.folha h5 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--laranja-2); }
.folha table { width: 100%; border-collapse: collapse; font-size: 11px; }
.folha table th { background: var(--navy); color: #fff; padding: 6px 8px; text-align: left; font-weight: 600; } .folha table th:not(:first-child), .folha table td:not(:first-child) { text-align: right; }
.folha table td { padding: 5px 8px; border-bottom: 1px solid #E8ECF2; } .folha table tr:nth-child(even) td { background: #F8FAFC; }
.folha ul { margin: 0; padding-left: 16px; } .folha li { margin: 1px 0; }
.folha .f-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.folha .f-box { border: 1px solid #E3E8EF; border-radius: 6px; padding: 8px 10px; } .folha .f-box.lar { border-color: #F4C7A7; background: #FFF8F3; } .folha .f-box.nav { border-color: #C9D5E7; background: #F5F8FC; }
.folha .f-rod { background: var(--navy); color: #C9D3E3; font-size: 9.5px; text-align: center; padding: 10px 34px; border-top: 3px solid var(--laranja); }
.folha [contenteditable] { outline: 0; border-radius: 3px; transition: background var(--trans); } .folha [contenteditable]:hover { background: #FFF6EE; } .folha [contenteditable]:focus { background: #FFF1E4; box-shadow: 0 0 0 1px var(--laranja); }
.editando .folha [contenteditable] { background: #FFFBF6; }
.passos { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.passo { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--borda); font-weight: 600; font-size: 13px; color: var(--texto-3); }
.passo .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--fundo); font-size: 12px; }
.passo.ok { color: var(--verde); } .passo.ok .n { background: var(--verde); color: #fff; } .passo.atual { color: var(--laranja-2); border-color: #F5C29F; } .passo.atual .n { background: var(--laranja); color: #fff; }

/* ---------- Assistente ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 420px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; padding: 12px 15px; border-radius: 14px; font-size: 13.5px; white-space: pre-wrap; line-height: 1.55; animation: entrar .25s ease; }
.msg.usuario { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistente { align-self: flex-start; background: #fff; border: 1px solid var(--borda); border-bottom-left-radius: 4px; }
.msg .fonte { display: block; margin-top: 6px; font-size: 11px; color: var(--texto-3); }
.chat-entrada { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--borda); }
.chat-entrada textarea { flex: 1; resize: none; height: 46px; border: 1px solid var(--borda-2); border-radius: 10px; padding: 12px; font: inherit; }
.chat-entrada textarea:focus { outline: 0; border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(236,106,31,.14); }
.sugestoes { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; }
.sugestao { border: 1px solid var(--borda-2); background: #fff; border-radius: 99px; padding: 7px 13px; font-size: 12.5px; cursor: pointer; color: var(--texto-2); font-family: inherit; transition: all var(--trans); }
.sugestao:hover { border-color: var(--laranja); color: var(--laranja-2); background: var(--laranja-claro); }
.digitando span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--texto-3); margin: 0 2px; animation: pulo 1s infinite; }
.digitando span:nth-child(2) { animation-delay: .15s; } .digitando span:nth-child(3) { animation-delay: .3s; }
@keyframes pulo { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-marca { background: radial-gradient(1200px 600px at -10% 110%, rgba(236,106,31,.25), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0E2747 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-marca img { height: 70px; width: auto; align-self: flex-start; }
.login-marca h2 { font-size: 32px; line-height: 1.2; max-width: 460px; margin-bottom: 14px; }
.login-marca p { color: #B9C6DB; max-width: 440px; font-size: 15px; }
.login-marca .rec { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.login-marca .rec div { display: flex; gap: 10px; align-items: center; color: #DCE4F0; } .login-marca .rec .ic { color: var(--laranja); }
.login-form { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-form .caixa { width: 100%; max-width: 380px; }
.login-form h1 { font-size: 24px; margin-bottom: 6px; } .login-form p { color: var(--texto-2); margin: 0 0 26px; }
.login-form .campo { margin-bottom: 14px; }
.login-form .btn { width: 100%; height: 44px; margin-top: 6px; }
.login-erro { color: var(--vermelho); font-size: 13px; min-height: 20px; margin-top: 10px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) { .g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1, .g-1-2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .menu { transform: translateX(-100%); width: var(--menu) !important; }
  .menu-aberto .menu { transform: none; box-shadow: var(--sombra-2); }
  .menu-aberto::after { content: ''; position: fixed; inset: 0; background: rgba(11,31,58,.4); z-index: 35; }
  .principal, .recolhido .principal { margin-left: 0; }
  .topo .btn-menu-mob { display: inline-grid; }
  .menu-rodape { display: none; }
  .recolhido .menu .rot, .recolhido .menu .grupo { display: initial; }
  .conteudo { padding: 16px; } .topo { padding: 0 14px; } .topo .sub, .topo .dir .badge { display: none; } .topo h1 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; } .login-marca { padding: 32px; min-height: auto; } .login-marca .rec, .login-marca p { display: none; } .login-marca h2 { font-size: 22px; margin: 18px 0 0; }
  .campo.m, .campo.t, .campo.p { flex-basis: 100%; }
  .folha { transform-origin: top left; }
}
@media (max-width: 560px) { .g-6 { grid-template-columns: 1fr 1fr; } .g-4 { grid-template-columns: 1fr 1fr; } .kpi .num { font-size: 24px; } .busca { min-width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
