/* Identidade do Sistema Perito: base.css, componentes.css, agenda.css, ajuda.css, gerenciar_usuarios.css,
   dashboards.html e lista_processos.css (cores, fonte, barra superior, botões, selos, tabelas e modal). */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; font-size: 12px; background-color: #f5f6f7; color: #2c3e50; }
a { color: #1a6da8; text-decoration: none; }
.ic { width: 14px; height: 14px; flex-shrink: 0; vertical-align: -2px; }

/* ── Faixa do protótipo ─────────────────────────────────── */
.faixa { background: #fef9e7; border-bottom: 1px solid #f9e79f; color: #7d6608; font-size: 11px; }
.faixa-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 24px; }
.faixa-in b { font-weight: 700; }
.ver-como { display: flex; align-items: center; gap: 6px; }
.op { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border: 1px solid #e4e6e8; border-radius: 12px; background: #f5f6f7; color: #2c3e50; font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: 'Segoe UI', Arial, sans-serif; }
.op:hover { background: #eaecee; }
.op.active { background: #1a6da8; border-color: #1a6da8; color: #fff; }

/* ── Navbar (base.css) ──────────────────────────────────── */
.navbar { background-color: #2c3e50; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 1000; }
.navbar-esq { display: flex; align-items: center; gap: 16px; min-width: 0; }
.marca { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 700; padding-right: 16px; border-right: 1px solid rgba(255,255,255,0.15); white-space: nowrap; }
.marca img { height: 24px; width: auto; display: block; }
.navbar-menu { display: flex; gap: 16px; align-items: center; }
.nav-item { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13px; position: relative; padding: 4px 0; cursor: pointer; transition: color 0.15s; white-space: nowrap; }
.nav-item:hover { color: rgba(255,255,255,0.95); }
.nav-item.active { color: #fff; border-bottom: 2px solid #1a6da8; }
.nav-badge { position: absolute; top: -5px; right: -10px; min-width: 15px; height: 15px; background: #e74c3c; color: #fff; font-size: 9px; font-weight: 700; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.navbar-usuario { display: flex; align-items: center; }
.nav-user-btn { display: flex; align-items: center; font-size: 12px; color: rgba(255,255,255,0.8); padding: 4px 0; white-space: nowrap; }
.nav-user-btn svg { margin-right: 6px; }
.btn-menu { display: none; background: none; border: none; color: rgba(255,255,255,0.8); cursor: pointer; padding: 4px; }
.btn-menu .ic { width: 18px; height: 18px; }

/* ── Página ─────────────────────────────────────────────── */
.main-wrapper { padding: 10px 20px 24px; }
.titulo-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.titulo-principal { font-size: 16px; font-weight: 700; color: #2c3e50; padding: 4px 0; }
.titulo-info { font-size: 11px; color: #95a5a6; }
.titulo-acoes { display: flex; align-items: center; gap: 8px; }
.header-linha { height: 1px; background: linear-gradient(to right, #1a6da8, #2c3e50); margin-bottom: 10px; }

/* ── Painel (agenda.css: .agenda-lista-painel) ──────────── */
.painel { background: #fff; border: 1px solid #e4e6e8; border-radius: 4px; min-width: 0; }
.painel-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: #f8f9fa; border-bottom: 1px solid #e4e6e8; border-radius: 4px 4px 0 0; }
.painel-titulo { font-size: 12px; font-weight: 700; color: #2c3e50; text-transform: uppercase; letter-spacing: 0.3px; }
.painel-info { font-size: 10px; font-weight: 700; color: #7f8c8d; }
.painel-corpo { padding: 10px 12px; }
.vazio { padding: 24px; text-align: center; color: #95a5a6; font-size: 12px; font-style: italic; margin: 0; }

/* ── Selos (gerenciar_usuarios.css / agenda.css) ────────── */
.selo { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.2px; white-space: nowrap; line-height: 1.3; }
.selo .ic { width: 10px; height: 10px; }
.s-azul { background: #e8f2fb; color: #155d96; border: 1px solid #8ec3e6; }
.s-amarelo { background: #fef9e7; color: #b7950b; border: 1px solid #f9e79f; }
.s-cinza { background: #f2f3f4; color: #7f8c8d; border: 1px solid #d5d8dc; }
.s-verde { background: #eafaf1; color: #1e8449; border: 1px solid #a9dfbf; }
.s-vermelho { background: #fdedec; color: #e74c3c; border: 1px solid #f5b7b1; }
.s-roxo { background: #f4ecf7; color: #6c3483; border: 1px solid #8e44ad; }

/* ── Botões (base.css) ──────────────────────────────────── */
.btn { padding: 5px 14px; border-radius: 3px; border: none; font-family: 'Segoe UI', Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; cursor: pointer; transition: opacity 0.15s; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; white-space: nowrap; }
.btn:hover { opacity: 0.88; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #1a6da8; color: #fff; }
.btn-secondary { background: #95a5a6; color: #fff; }
.btn-neutral { background: #ecf0f1; color: #7f8c8d; }
.btn-success { background: #27ae60; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-sm { padding: 3px 10px; font-size: 10px; }
.btn-icone { background: none; border: none; cursor: pointer; padding: 2px 5px; border-radius: 2px; display: inline-flex; }
.btn-icone.editar { color: #f39c12; } .btn-icone.editar:hover { background: #fef9e7; }
.btn-icone.excluir { color: #e74c3c; } .btn-icone.excluir:hover { background: #fdedec; }
.btn-icone:disabled { color: #c8ccd0; cursor: not-allowed; background: none; }
/* Pílula do link peritoarq:// (componentes.css: .btn-pdf-cab) */
.btn-pilula { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #fff; color: #1a6da8; border: 1px solid #1a6da8; border-radius: 14px; font-family: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; cursor: pointer; transition: 0.2s; text-decoration: none; white-space: nowrap; }
.btn-pilula:hover { background: #1a6da8; color: #fff; }
.link { color: #1a6da8; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }

/* ── Abas (dashboards: .db-tab) e pílulas de período ────── */
.abas { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid #e4e6e8; flex-wrap: wrap; }
.aba { background: none; border: none; padding: 7px 16px; font-size: 12px; font-weight: 700; color: #7f8c8d; cursor: pointer; text-transform: uppercase; letter-spacing: 0.3px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: 'Segoe UI', Arial, sans-serif; transition: all 0.12s; }
.aba:hover { color: #2c3e50; }
.aba.active { color: #1a6da8; border-bottom-color: #1a6da8; }
.aba .n { font-size: 10px; color: #95a5a6; margin-left: 4px; }
.periodo { padding: 4px 12px; border: 1px solid #e4e6e8; border-radius: 20px; font-size: 10px; font-weight: 700; background: #fff; color: #7f8c8d; cursor: pointer; font-family: 'Segoe UI', Arial, sans-serif; transition: all 0.12s; }
.periodo:hover { border-color: #1a6da8; color: #1a6da8; }
.periodo.active { background: #1a6da8; color: #fff; border-color: #1a6da8; }
.periodo.hoje:not(.active) { border-color: #1a6da8; }

/* ── Campos (agenda.css / formulario) ───────────────────── */
.campo-filtro { height: 30px; border: 1px solid #e4e6e8; border-radius: 3px; font-size: 11px; padding: 0 8px; background: #fff; color: #2c3e50; font-family: 'Segoe UI', Arial, sans-serif; }
.campo-filtro:focus { border-color: #1a6da8; outline: none; }
.rotulo { display: block; font-size: 10px; font-weight: 700; color: #7f8c8d; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
.campo-info { width: 100%; padding: 3px 7px; border: 1px solid #e4e6e8; border-radius: 3px; background: #f5f6f7; font-size: 12px; color: #2c3e50; min-height: 26px; font-family: 'Segoe UI', Arial, sans-serif; transition: border-color 0.15s, background 0.15s; }
.campo-info:focus { background: #fff; border-color: #1a6da8; outline: none; box-shadow: 0 0 0 2px rgba(52,152,219,0.12); }
textarea.campo-info { min-height: 130px; resize: vertical; line-height: 1.45; padding: 6px 7px; }
select.campo-filtro, select.campo-info { cursor: pointer; }
input[type="checkbox"] { accent-color: #1a6da8; width: 14px; height: 14px; cursor: pointer; margin: 0; vertical-align: middle; }
input[type="checkbox"]:disabled { cursor: not-allowed; }
.marcar { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #2c3e50; cursor: pointer; }

/* ── Tabela (padrão: cabeçalho 11px em #f4f6f7, linhas 13px, células 7px 10px) ── */
.tabela-wrap { overflow-x: auto; }
.tabela { width: 100%; border-collapse: separate; border-spacing: 0; }
.tabela th { background: #f4f6f7; color: #2c3e50; font-weight: 700; text-transform: uppercase; font-size: 11px; text-align: left; padding: 7px 10px; border-bottom: 1px solid #e4e6e8; white-space: nowrap; }
.tabela td { font-size: 13px; padding: 7px 10px; border-bottom: 1px solid #eaecee; color: #2c3e50; vertical-align: middle; }
.tabela tbody tr:last-child td { border-bottom: none; }
.tabela tr:hover td { background: #f5f6f7; }
.tabela .c { text-align: center; }
.tabela select.campo-filtro { height: 26px; font-size: 12px; padding: 0 4px; }
.tabela .sub { display: block; font-size: 11px; color: #95a5a6; }
.tabela .forte { font-weight: 700; }
.tabela tr.pend td { background: #fef9e7; }
.tabela tr.mod td { background: #f4f9fd; }
.tabela tr.mod td:first-child { box-shadow: inset 3px 0 0 #1a6da8; }
.tabela tr.rem td { color: #95a5a6; }
.tabela tr.rem .forte { text-decoration: line-through; }
.tabela tr.desab td:first-child { color: #95a5a6; }
.tabela tr.versao td { background: #fafbfc; font-size: 12px; color: #7f8c8d; }
.mono { font-family: Consolas, 'Courier New', monospace; font-size: 12px; color: #7f8c8d; }
.rodape-salvar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #eee; background-color: #f5f6f7; border-radius: 0 0 4px 4px; }
.rodape-salvar .nota { margin-right: auto; font-size: 11px; color: #7d6608; }

/* ── Chave liga/desliga (gerenciar_usuarios.css) ────────── */
.chave { display: inline-flex; align-items: center; cursor: pointer; }
.chave input { display: none; }
.chave-slider { width: 36px; height: 20px; background: #ddd; border-radius: 10px; position: relative; transition: background 0.15s; flex-shrink: 0; }
.chave-slider::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.chave input:checked + .chave-slider { background: #1a6da8; }
.chave input:checked + .chave-slider::after { transform: translateX(16px); }

/* ── Avisos (ajuda.css) ─────────────────────────────────── */
.dica { background: #eef5fc; border-left: 3px solid #1a6da8; padding: 8px 12px; margin: 0 0 10px; border-radius: 0 3px 3px 0; font-size: 11px; color: #2c3e50; }
.aviso { background: #fef9e7; border-left: 3px solid #e67e22; padding: 8px 12px; margin: 0 0 10px; border-radius: 0 3px 3px 0; font-size: 11px; color: #2c3e50; }

/* ── Início ─────────────────────────────────────────────── */
.inicio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 10px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.destaque { background: #fff; border: 1px solid #e4e6e8; border-radius: 4px; padding: 10px 12px; border-left: 3px solid var(--cor, #1a6da8); }
.destaque-cab { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.data { font-size: 10px; font-weight: 700; color: #7f8c8d; letter-spacing: 0.3px; }
.destaque-titulo { margin: 4px 0 2px; font-size: 14px; line-height: 19px; font-weight: 700; color: #2c3e50; }
.destaque-texto { margin: 0 0 10px; font-size: 13px; line-height: 18px; color: #2c3e50; }
.acoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.apps.catalogo { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.app { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid #e4e6e8; border-left: 3px solid var(--cor); border-radius: 4px; padding: 10px 12px; cursor: pointer; font-family: inherit; color: inherit; transition: background 0.12s; }
.app:hover { background: #f8f9fa; }
.app-ic { color: var(--cor); padding-top: 1px; }
.app-ic .ic { width: 18px; height: 18px; }
.app-txt { flex: 1; min-width: 0; }
.app-nome { display: block; font-size: 13px; font-weight: 700; color: #2c3e50; }
.app-desc { display: block; font-size: 11px; color: #7f8c8d; margin-top: 2px; line-height: 1.4; }
.app.bloq { cursor: default; } .app.bloq .app-ic, .app.bloq .app-txt { opacity: 0.5; }
.app.bloq:hover, .app.breve:hover { background: #fff; }
.app.breve { cursor: default; }
.pastas { display: flex; flex-wrap: wrap; gap: 8px; }
.evento-card { padding: 8px 0; border-bottom: 1px solid #f0f1f2; }
.evento-card:last-child { border-bottom: none; }
.evento-card-header { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 3px; }
.evento-titulo { font-size: 12px; font-weight: 700; color: #2c3e50; }
.dias { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.item-lista { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border: none; border-bottom: 1px solid #f0f1f2; background: none; color: #2c3e50; font-size: 12px; font-family: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background-color 0.15s; }
.item-lista:last-child { border-bottom: none; }
.item-lista:hover { background-color: #f4f6f7; color: #1a6da8; font-weight: 600; }
.item-lista .ic { color: #1a6da8; }
.item-lista .fim { margin-left: auto; color: #95a5a6; }
.novidade { padding: 8px 0 6px; }
.novidade + .novidade { border-top: 1px dashed #eaecee; }
.novidade p { margin: 2px 0 0; font-size: 12px; color: #2c3e50; }

/* ── Comunicados ────────────────────────────────────────── */
.duas { display: flex; gap: 10px; align-items: flex-start; }
.col-lista { width: 340px; flex-shrink: 0; }
.col-leitura { flex: 1; min-width: 0; }
.com-item { display: block; padding: 8px 12px; border-bottom: 1px solid #f0f1f2; border-left: 2px solid transparent; color: #2c3e50; text-decoration: none; transition: background 0.12s; }
.com-item:last-child { border-bottom: none; }
.com-item:hover { background: #f8f9fa; }
.com-item.active { border-left-color: #1a6da8; background: #eef5fc; }
.com-item-titulo { display: block; font-size: 12px; font-weight: 700; margin-top: 3px; }
.secao { background: #fff; border: 1px solid #e4e6e8; border-radius: 4px; padding: 16px 20px; margin-bottom: 10px; }
.secao-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.secao h2 { font-size: 14px; font-weight: 700; color: #1a6da8; margin: 0 0 4px; }
.secao h3 { font-size: 12px; font-weight: 700; color: #2c3e50; margin: 14px 0 6px; padding-top: 10px; border-top: 1px dashed #eaecee; }
.texto { font-size: 13px; color: #2c3e50; line-height: 1.6; margin-top: 8px; padding-top: 8px; border-top: 1px solid #eaecee; }
.texto p { margin: 4px 0; } .texto ul, .texto ol { margin: 4px 0 8px; padding-left: 20px; } .texto li { margin-bottom: 2px; }
.ciencia-linha { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.progresso { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 8px; }
.barra { width: 160px; height: 6px; border-radius: 3px; background: #eaecee; overflow: hidden; }
.barra i { display: block; height: 100%; background: #1a6da8; }
.voltar { display: none; margin-bottom: 8px; }

/* ── Suporte de TI ──────────────────────────────────────── */
.faq { background: #fff; border: 1px solid #e4e6e8; border-radius: 4px; margin-bottom: 6px; }
.faq-cab { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 700; color: #2c3e50; text-align: left; }
.faq-cab:hover { color: #1a6da8; }
.faq-cab .ic { color: #1a6da8; }
.faq-cab .seta { margin-left: auto; color: #95a5a6; transition: transform 0.15s; }
.faq.aberto .faq-cab .seta { transform: rotate(180deg); }
.faq-corpo { display: none; padding: 0 14px 12px 36px; font-size: 12px; color: #2c3e50; line-height: 1.6; }
.faq.aberto .faq-corpo { display: block; }
.faq-corpo p { margin: 4px 0; } .faq-corpo ol { margin: 4px 0 8px; padding-left: 20px; }
.faq-corpo strong { color: #1a6da8; }

/* ── Administração (ajuda.css: sumário lateral) ─────────── */
.adm { display: flex; gap: 16px; align-items: flex-start; }
.adm-nav { width: 220px; flex-shrink: 0; border: 1px solid #e4e6e8; border-radius: 4px; background: #fff; padding: 6px 0; position: sticky; top: 54px; }
.adm-nav a { display: flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 12px; color: #2c3e50; border-left: 2px solid transparent; transition: all 0.12s; white-space: nowrap; }
.adm-nav a:hover { background: #f4f6f7; color: #1a6da8; }
.adm-nav a.active { border-left-color: #1a6da8; color: #1a6da8; font-weight: 700; background: #eef5fc; }
.adm-nav .selo { margin-left: auto; }
.adm-conteudo { flex: 1; min-width: 0; }
.ferramentas { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #e4e6e8; flex-wrap: wrap; }
.ferramentas form { display: flex; gap: 6px; }
.app-linha { display: flex; align-items: center; gap: 8px; }
.app-linha .ic { width: 16px; height: 16px; }
.chave-linha { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #f0f1f2; }
.chave-linha:last-child { border-bottom: none; }
.chave-linha .txt { flex: 1; min-width: 0; }
.chave-linha strong { display: block; font-size: 13px; }
.chave-linha span.sub { display: block; font-size: 11px; color: #95a5a6; }

/* ── Modal (componentes.css) ────────────────────────────── */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.35); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); padding: 12px; }
.modal-caixa { background: #fff; padding: 20px; border-radius: 6px; width: 460px; max-width: calc(100vw - 32px); max-height: calc(100vh - 24px); overflow: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.15); text-align: left; }
.modal-caixa h3 { margin: 0 0 12px; font-size: 15px; color: #2c3e50; }
.modal-caixa p { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: #2c3e50; }
.modal-campos { display: flex; flex-direction: column; gap: 10px; }
.modal-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-botoes { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.icones-op { display: flex; gap: 6px; flex-wrap: wrap; }
.icones-op label { cursor: pointer; }
.icones-op input { position: absolute; opacity: 0; width: 0; height: 0; }
.icones-op span { width: 30px; height: 30px; border: 1px solid #e4e6e8; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: #7f8c8d; background: #f5f6f7; }
.icones-op input:checked + span { border-color: #1a6da8; background: #e8f2fb; color: #155d96; }

/* ── Aviso curto (lista_processos.css: .lista-toast) ────── */
.toast { position: fixed; right: 18px; bottom: 18px; background: #2c3e50; color: #fff; font-size: 12px; padding: 9px 13px; border-radius: 4px; box-shadow: 0 3px 10px rgba(0,0,0,0.2); z-index: 100000; max-width: 480px; line-height: 1.45; }

/* ── Celular ────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .inicio { grid-template-columns: 1fr; }
    .navbar-menu { gap: 12px; }
}
@media (max-width: 860px) {
    .faixa-in { padding: 4px 12px; }
    .ver-como > span { display: none; }
    .navbar { padding: 0 12px; }
    .btn-menu { display: inline-flex; }
    .marca { border-right: none; padding-right: 0; }
    .navbar-menu { display: none; position: absolute; top: 44px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #2c3e50; padding: 4px 0 8px; box-shadow: 0 6px 14px rgba(0,0,0,0.2); }
    body.menu-aberto .navbar-menu { display: flex; }
    .navbar-menu .nav-item { padding: 10px 16px; }
    .navbar-menu .nav-item.active { border-bottom: none; border-left: 2px solid #1a6da8; background: rgba(255,255,255,0.06); }
    .nav-badge { position: static; display: inline-flex; margin-left: 6px; vertical-align: 1px; }
    .nav-user-btn .nome { display: none; }
    .main-wrapper { padding: 10px 12px 24px; }
    .apps { grid-template-columns: 1fr; }
    .duas { flex-direction: column; }
    .col-lista { width: 100%; }
    .com.tem-sel .col-lista, .com.tem-sel .abas { display: none; }
    .com.sem-sel .col-leitura { display: none; }
    .voltar { display: inline-flex; }
    .secao { padding: 12px 14px; }
    .adm { flex-direction: column; }
    .adm-nav { width: 100%; position: static; display: flex; overflow-x: auto; padding: 0; }
    .adm-nav a { border-left: none; border-bottom: 2px solid transparent; }
    .adm-nav a.active { border-bottom-color: #1a6da8; }
    .modal-dupla { grid-template-columns: 1fr; }
}

/* ══ Peças da aplicação (além do protótipo aprovado) ══════════════════ */
.oculto { display: none !important; }
.navbar-usuario { gap: 14px; }
.navbar-usuario form { margin: 0; display: flex; }
.nav-sair { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px 0; color: rgba(255,255,255,0.75); font-family: inherit; font-size: 12px; }
.nav-sair:hover { color: #fff; }
.campo-faixa { height: 22px; font-size: 11px; padding: 0 6px; }
.ver-como { margin: 0; }
a.app { text-decoration: none; }
.app .selo { margin-left: auto; align-self: flex-start; }
.item-lista.bloq { cursor: default; color: #95a5a6; }
.item-lista.bloq:hover { background: none; color: #95a5a6; font-weight: 400; }
.acoes form { margin: 0; }
.titulo-acoes form { margin: 0; }
a.aba { text-decoration: none; display: inline-block; }
.agenda-quadro { display: block; width: 100%; height: 320px; border: 0; }

/* Canal de Denúncias: abre pela âncora (CSS :target), sem pedido ao servidor */
.canal { display: none; }
.canal:target { display: flex; }
.canal.fechado { display: none; }

/* Avisos curtos */
.mensagens { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; z-index: 100000; }
.mensagens .toast { position: static; }
.toast.erro { background: #e74c3c; }

/* Suporte de TI com <details> (abre sem JavaScript) */
details.faq > summary { list-style: none; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq[open] .faq-corpo { display: block; }
details.faq[open] .faq-cab .seta { transform: rotate(180deg); }

/* Versões anteriores dos documentos (só adm) */
details.versoes summary { cursor: pointer; list-style: none; }
details.versoes summary::-webkit-details-marker { display: none; }
.versao-linha { font-size: 12px; color: #7f8c8d; padding: 3px 0; white-space: nowrap; }

/* Administração */
.adm-nav-futuro { display: flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 12px; color: #95a5a6; white-space: nowrap; }
.adm-nav-futuro .selo { margin-left: auto; }
.campo-email { width: 260px; }
.btn-icone input { position: absolute; opacity: 0; width: 0; height: 0; }
.btn-icone.excluir:has(input:checked) { background: #fdedec; box-shadow: inset 0 0 0 1px #f5b7b1; }
.btn-icone.desligado { color: #c8ccd0; cursor: not-allowed; }
.form-largura { max-width: 760px; }
.form-linha { display: flex; gap: 6px; align-items: center; margin: 0; }
.campo-arquivo { font-size: 11px; max-width: 230px; }
.amostra { display: block; width: 16px; height: 16px; border-radius: 3px; }

/* Entrada (login) */
.pagina-entrar { background: #f5f6f7; }
.entrar { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.entrar-caixa { background: #fff; border: 1px solid #e4e6e8; border-radius: 6px; padding: 28px 32px; width: 380px; max-width: 100%; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.entrar-caixa img { height: 56px; width: auto; margin-bottom: 10px; }
.entrar-caixa h1 { font-size: 16px; margin: 0 0 2px; color: #2c3e50; }
.entrar-caixa > p { font-size: 12px; color: #7f8c8d; margin: 0 0 18px; }
.entrar-caixa .entrar-nota { margin: 10px 0 0; font-size: 11px; color: #95a5a6; }
.entrar [hidden] { display: none !important; }
.entrar-google { min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.entrar-estado { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; color: #2c3e50; }
.entrar-giro { width: 16px; height: 16px; border: 2px solid #e4e6e8; border-top-color: #2c3e50; border-radius: 50%; animation: entrar-giro 0.8s linear infinite; }
@keyframes entrar-giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .entrar-giro { animation: none; } }
.entrar-botao { display: flex; justify-content: center; min-height: 44px; }
.entrar-aviso a { color: inherit; font-weight: 600; }
.entrar-aviso { background: #fdedec; border-left: 3px solid #e74c3c; padding: 8px 12px; margin: 0 0 14px; border-radius: 0 3px 3px 0; font-size: 12px; color: #2c3e50; text-align: left; }
.aguardando { max-width: 560px; margin: 40px auto; }

@media (max-width: 860px) {
    .campo-email { width: 100%; }
    .ferramentas form { width: 100%; }
    .navbar-usuario { gap: 10px; }
    .form-linha { flex-wrap: wrap; }
}