/* Extensões do Click Diário — reutilizam os tokens de style.css/home.css (mesmas cores, raios, sombras). */
.aviso { border-radius: var(--radius-lg, 18px); padding: 14px 18px; margin: 0 0 20px; font-weight: 700; line-height: 1.5; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid transparent; }
.aviso--info { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.aviso--warning { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.aviso--danger { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.aviso--ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.aviso a, .aviso button { font-weight: 700; }
.msg-erro { color: #b91c1c; font-size: 13px; min-height: 16px; }
.msg-ok { color: #15803d; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 50; max-width: min(92vw, 380px); }
.toast { background: #0f172a; color: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow, 0 16px 40px rgba(15,23,42,.18)); font-size: 14px; line-height: 1.5; }
.toast--erro { background: #b91c1c; } .toast--ok { background: #15803d; }
.btn:disabled, .btn-secundario:disabled, .btn-perigo:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn--secundario { background: #e0e7ff; color: #1f2937; } .btn--secundario:hover { background: #c7d2fe; }
.btn--perigo { background: #fee2e2; color: #b91c1c; } .btn--perigo:hover { background: #fecaca; }
.btn--link { background: none; border: none; color: var(--primary, #2563eb); font-weight: 700; padding: 0; min-height: 0; text-decoration: underline; cursor: pointer; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.lista-item .acoes-inline { margin-top: 10px; }
.status-active, .status-paid, .status-approved, .status-success, .status-processed { background: #dcfce7; color: #166534; }
.status-past_due, .status-pending, .status-in_process, .status-skipped, .status-received { background: #fef9c3; color: #854d0e; }
.status-blocked, .status-rejected, .status-failed, .status-error { background: #fee2e2; color: #b91c1c; }
.status-cancelled, .status-expired, .status-none, .status-refunded, .status-ignored { background: #e5e7eb; color: #374151; }
.tabela-wrap { overflow-x: auto; }
.tabela-simples td small { color: var(--muted, #6b7280); }
.linha-flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.paginacao { display: flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--muted, #6b7280); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { width: auto; margin-top: 3px; }
.dica { color: var(--muted, #6b7280); font-size: 13px; line-height: 1.5; margin: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.copiar-linha { display: flex; gap: 10px; }
.copiar-linha input { flex: 1; }
.sidebar__rodape { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.sidebar__rodape .menu-btn { text-align: center; }
.menu-btn--sair { background: transparent; }
.oculto { display: none !important; }

/* ── Páginas de autenticação ── */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: 100%; max-width: 480px; background: var(--surface, #fff); border: 1px solid var(--border, #dbe4f0); border-radius: 22px; box-shadow: var(--shadow, 0 16px 40px rgba(15,23,42,.08)); padding: 34px; }
.auth-card h1 { margin: 12px 0 6px; font-size: 30px; line-height: 1.1; } .auth-card .sub { margin: 0 0 22px; color: var(--muted, #6b7280); line-height: 1.6; }
.auth-card .form-grid { grid-template-columns: 1fr; }
.auth-rodape { margin-top: 18px; text-align: center; color: var(--muted, #6b7280); font-size: 14px; line-height: 1.8; }
.auth-rodape a { color: var(--primary, #2563eb); font-weight: 700; }
.legal-box { max-height: 300px; overflow: auto; background: var(--surface-soft, #f8fafc); border: 1px solid var(--border, #dbe4f0); border-radius: 14px; padding: 14px; white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.doc-page { max-width: 820px; margin: 0 auto; padding: 32px 18px 60px; } .doc-page .card { padding: 30px; } .doc-content { white-space: pre-wrap; line-height: 1.75; }

/* ── Landing (mesmo estilo do home.css) ── */
.home-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 22px; flex-wrap: wrap; }
.home-nav strong { font-size: 22px; } .home-nav .links { display: flex; gap: 10px; flex-wrap: wrap; }
.secao-home { margin-top: 44px; } .secao-home > h2 { font-size: 32px; margin: 0 0 8px; line-height: 1.15; } .secao-home > p.lead { margin: 0 0 22px; color: var(--home-muted, #6b7280); font-size: 17px; line-height: 1.7; max-width: 760px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.item-card { background: var(--home-surface, #fff); border: 1px solid var(--home-border, #dbe4f0); border-radius: var(--home-radius, 22px); box-shadow: var(--home-shadow); padding: 24px; }
.item-card h3 { margin: 0 0 8px; font-size: 20px; } .item-card p { margin: 0; color: var(--home-muted, #6b7280); line-height: 1.7; } .item-card .ic { font-size: 28px; display: block; margin-bottom: 10px; }
.plano-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: var(--home-surface, #fff); border: 2px solid var(--home-primary, #2563eb); border-radius: 26px; box-shadow: var(--home-shadow); padding: 34px; align-items: center; }
.plano-box .preco { font-size: 52px; font-weight: 800; line-height: 1; } .plano-box .preco small { font-size: 18px; color: var(--home-muted, #6b7280); font-weight: 700; }
.plano-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .plano-box li { padding-left: 28px; position: relative; line-height: 1.5; } .plano-box li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
.btn-home--grande { min-height: 54px; font-size: 18px; padding: 0 30px; margin-top: 18px; width: 100%; border: none; cursor: pointer; }
.faq details { background: var(--home-surface, #fff); border: 1px solid var(--home-border, #dbe4f0); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; } .faq summary { font-weight: 700; cursor: pointer; } .faq p { margin: 10px 0 0; color: var(--home-muted, #6b7280); line-height: 1.7; }
.cta-final { margin-top: 44px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border-radius: 26px; padding: 40px; text-align: center; } .cta-final h2 { margin: 0 0 10px; font-size: 32px; } .cta-final p { margin: 0 0 20px; opacity: .92; line-height: 1.7; }
.cta-final .btn-home--primario { background: #fff; color: #1d4ed8; }
.rodape-home { margin-top: 36px; text-align: center; color: var(--home-muted, #6b7280); font-size: 14px; line-height: 1.9; } .rodape-home a { color: inherit; margin: 0 8px; }

/* ── Admin ── */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.grafico { width: 100%; height: 260px; } .grafico text { font-size: 11px; fill: #6b7280; } .grafico .barra { fill: #2563eb; } .grafico .barra:hover { fill: #1d4ed8; } .grafico .eixo { stroke: #dbe4f0; }
.abas-range { display: flex; gap: 8px; flex-wrap: wrap; } .abas-range button { border: 1px solid var(--border, #dbe4f0); background: #fff; border-radius: 12px; padding: 8px 14px; font-weight: 700; } .abas-range button.ativo { background: #2563eb; color: #fff; border-color: #2563eb; }
.subabas { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
textarea.grande { min-height: 340px; font-size: 14px; line-height: 1.6; }

@media (max-width: 980px) { .grid-3, .stat-grid { grid-template-columns: 1fr; } .grid-2, .plano-box { grid-template-columns: 1fr; } .secao-home > h2 { font-size: 26px; } }
@media (max-width: 560px) { .auth-card { padding: 22px; } .plano-box { padding: 22px; } .plano-box .preco { font-size: 40px; } .cta-final { padding: 26px; } }
.status-failure { background: #fee2e2; color: #b91c1c; }

/* ── Calendário / planejamento ── */
.etapas-grid { display: grid; gap: 8px; }
.etapa-linha { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; align-items: center; }
.etapa-linha label { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted, #6b7280); }
.etapa-linha input { flex: 1; min-width: 0; }
.grade-dias { display: grid; gap: 8px; }
.grade-dia { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border, #dbe4f0); border-radius: 12px; background: var(--surface-soft, #f8fafc); }
.grade-qtd { display: flex; gap: 6px; align-items: center; font-size: 13px; } .grade-qtd input { width: 64px; }
.grade-total { font-weight: 700; color: var(--primary, #2563eb); }
details.avancado { margin-top: 14px; border-top: 1px dashed var(--border, #dbe4f0); padding-top: 10px; } details.avancado summary { cursor: pointer; font-weight: 600; color: var(--slate-dark, #475569); margin-bottom: 10px; }
.form-inline-tool { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border, #dbe4f0); }
.lista-scroll { max-height: 420px; overflow-y: auto; }
.prev-periodo { margin: 10px 0 4px; color: var(--primary, #2563eb); }
.prev-linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--border, #dbe4f0); font-size: 14px; }
.prev-linha--aviso { color: #92400e; background: #fffbeb; border-radius: 8px; }
.btn-mini { padding: 4px 10px !important; font-size: 12px !important; border-radius: 8px !important; }
.selo { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #e2e8f0; color: #334155; }
.selo--manual { background: #ede9fe; color: #6d28d9; } .selo--positiva { background: #16a34a; color: #fff; } .selo--baixa { background: #ca8a04; color: #fff; } .selo--media { background: #ea580c; color: #fff; } .selo--alta { background: #dc2626; color: #fff; }
.plan-qtd { width: 78px; } .plan-qtd--manual { border-color: #7c3aed !important; background: #faf5ff; }
#listaDistribuicao table td { vertical-align: top; }

/* ── Mapa de sala ── */
.mapa-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; } .mapa-barra .campo { min-width: 180px; } .mapa-sep { flex: 1; }
.btn--chamada { background: #0d9488; color: #fff; } .btn-secundario.ativo { background: #dbeafe; border-color: #2563eb; }
.barra-chamada { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 12px; margin-bottom: 12px; border: 1px solid #99f6e4; background: #f0fdfa; border-radius: 14px; } .chamada-info { flex: 1; min-width: 220px; font-size: 14px; }
.mapa-sala--grade { display: flex; flex-direction: column; gap: 8px; overflow-x: auto; padding: 6px; }
.mapa-quadro { text-align: center; padding: 6px; border-radius: 8px; background: #1e293b; color: #fff; font-size: 12px; letter-spacing: .08em; }
.mapa-fileira { display: flex; gap: 8px; align-items: stretch; } .mapa-fileira__rotulo { width: 26px; align-self: center; font-size: 11px; color: var(--muted, #6b7280); font-weight: 700; }
.carteira { position: relative; width: 96px; min-height: 64px; flex: 0 0 auto; padding: 6px; border-radius: 10px; border: 2px solid var(--border, #dbe4f0); background: #fff; font-size: 12px; display: flex; flex-direction: column; justify-content: center; text-align: center; user-select: none; }
.carteira--vazia { border-style: dashed; color: #94a3b8; background: #f8fafc; } .carteira--ocupada { cursor: pointer; border-color: #93c5fd; background: #eff6ff; } .carteira--ocupada[draggable=true] { cursor: grab; }
.carteira__num { font-weight: 800; color: #2563eb; } .carteira__nome { overflow-wrap: anywhere; line-height: 1.2; }
.carteira__x { position: absolute; top: 1px; right: 3px; border: 0; background: none; color: #94a3b8; cursor: pointer; font-size: 14px; }
.carteira--ausente { background: #fee2e2 !important; border-color: #dc2626 !important; } .carteira--presente { background: #dcfce7 !important; border-color: #16a34a !important; }
.carteira--sel { outline: 3px solid #7c3aed; } .carteira.alvo { outline: 3px dashed #2563eb; background: #dbeafe; } .arrastando { opacity: .45; }
.sem-carteira { margin-top: 12px; } .sem-carteira__lista { display: flex; flex-wrap: wrap; gap: 8px; } .sem-carteira h4 { margin: 0 0 6px; font-size: 14px; }
.chip-aluno { padding: 6px 12px; border-radius: 999px; border: 2px solid #93c5fd; background: #eff6ff; font-size: 13px; cursor: grab; }

/* ── Ficha do aluno (janela) ── */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(15, 23, 42, .55); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; }
.modal__caixa { position: relative; width: min(720px, 100%); background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); }
.modal__caixa h3 { margin: 0 0 4px; } .modal__caixa h4 { margin: 18px 0 8px; color: var(--primary, #2563eb); }
.modal__fechar { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; cursor: pointer; color: #64748b; }
.ficha-topo { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.ocorr-tipo { display: flex; gap: 18px; } .ocorr-tipo label { display: flex; gap: 6px; align-items: center; }
.mencao-wrap { position: relative; } .mencao-lista { position: absolute; z-index: 5; left: 0; right: 0; background: #fff; border: 1px solid var(--border, #dbe4f0); border-radius: 12px; box-shadow: var(--shadow, 0 12px 30px rgba(15,23,42,.15)); overflow: hidden; }
.mencao-lista button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: #fff; cursor: pointer; } .mencao-lista button:hover { background: #eff6ff; }
.ocorr { border-left: 6px solid #94a3b8; } .ocorr--positiva { border-left-color: #16a34a; } .ocorr--baixa { border-left-color: #ca8a04; } .ocorr--media { border-left-color: #ea580c; } .ocorr--alta { border-left-color: #dc2626; }
.ocorr__topo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
@media (max-width: 640px) { .etapa-linha { grid-template-columns: 1fr; } .carteira { width: 78px; } }

/* ── Alternador de tema (sol / lua) ── */
.topbar__acoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tema-toggle { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 72px; height: 36px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border, #dbe4f0); background: var(--surface-soft, #f8fafc); cursor: pointer; font-size: 16px; line-height: 1; }
.tema-toggle__icone { position: relative; z-index: 2; pointer-events: none; }
.tema-toggle__bola { position: absolute; z-index: 1; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary, #2563eb); opacity: .22; transition: transform .25s ease; }
html[data-theme="dark"] .tema-toggle__bola { transform: translateX(36px); }
.tema-toggle:focus-visible { outline: 3px solid var(--primary, #2563eb); outline-offset: 2px; }

/* ── Tema escuro ── */
html[data-theme="dark"] { color-scheme: dark; --bg: #0b1220; --surface: #111a2e; --surface-soft: #16213a; --text: #e5e7eb; --muted: #9aa8bd; --border: #26334f; --shadow: 0 16px 40px rgba(0, 0, 0, .45); }
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: var(--surface-soft); color: var(--text); border-color: var(--border); }
html[data-theme="dark"] .card, html[data-theme="dark"] .modal__caixa, html[data-theme="dark"] .mencao-lista, html[data-theme="dark"] .mencao-lista button, html[data-theme="dark"] .carteira, html[data-theme="dark"] .abas-range button { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .carteira--vazia { background: var(--surface-soft); color: var(--muted); }
html[data-theme="dark"] .carteira--ocupada, html[data-theme="dark"] .chip-aluno { background: #172554; border-color: #3b82f6; color: #dbeafe; }
html[data-theme="dark"] .carteira--ausente { background: #450a0a !important; border-color: #ef4444 !important; color: #fecaca; }
html[data-theme="dark"] .carteira--presente { background: #052e16 !important; border-color: #22c55e !important; color: #bbf7d0; }
html[data-theme="dark"] .carteira__num { color: #93c5fd; }
html[data-theme="dark"] .barra-chamada { background: #042f2e; border-color: #115e59; }
html[data-theme="dark"] .grade-dia, html[data-theme="dark"] .lista-item { background: var(--surface-soft); border-color: var(--border); color: var(--text); }
html[data-theme="dark"] .mencao-lista button:hover, html[data-theme="dark"] .btn-secundario.ativo { background: #1e3a8a; }
html[data-theme="dark"] .plan-qtd--manual { background: #2e1065; }
html[data-theme="dark"] .prev-linha--aviso { background: #422006; color: #fde68a; }
html[data-theme="dark"] .selo { background: #334155; color: #e2e8f0; } html[data-theme="dark"] .selo--manual { background: #4c1d95; color: #ede9fe; }
html[data-theme="dark"] .selo--positiva { background: #16a34a; color: #fff; } html[data-theme="dark"] .selo--baixa { background: #ca8a04; color: #fff; } html[data-theme="dark"] .selo--media { background: #ea580c; color: #fff; } html[data-theme="dark"] .selo--alta { background: #dc2626; color: #fff; }
html[data-theme="dark"] .aviso--warning { background: #422006; color: #fde68a; border-color: #854d0e; } html[data-theme="dark"] .aviso--danger { background: #450a0a; color: #fecaca; border-color: #991b1b; }
html[data-theme="dark"] .modal__caixa h4 { color: #93c5fd; } html[data-theme="dark"] .modal { background: rgba(0, 0, 0, .7); }
html[data-theme="dark"] .tabela-simples th, html[data-theme="dark"] .tabela-simples td { border-color: var(--border); }

/* ── Tema escuro: botões, rótulos e textos com cor fixa no tema claro (corrige texto invisível) ── */
html[data-theme="dark"] .btn-secundario, html[data-theme="dark"] .btn--secundario, html[data-theme="dark"] .btn-voltar-home { background: #1e293b; color: #e2e8f0; border: 1px solid var(--border); }
html[data-theme="dark"] .btn-secundario:hover, html[data-theme="dark"] .btn--secundario:hover, html[data-theme="dark"] .btn-voltar-home:hover { background: #334155; color: #fff; }
html[data-theme="dark"] .btn-perigo, html[data-theme="dark"] .btn--perigo { background: #450a0a; color: #fecaca; border: 1px solid #7f1d1d; }
html[data-theme="dark"] .btn-perigo:hover, html[data-theme="dark"] .btn--perigo:hover { background: #7f1d1d; color: #fff; }
html[data-theme="dark"] .btn--primario, html[data-theme="dark"] .btn--chamada { color: #fff; }
html[data-theme="dark"] button:disabled, html[data-theme="dark"] .btn:disabled { opacity: .55; }
html[data-theme="dark"] .badge { background: #1e3a8a; color: #dbeafe; } html[data-theme="dark"] .topbar__tag { background: #1e3a8a; color: #bfdbfe; }
html[data-theme="dark"] .aviso--info { background: #172554; color: #bfdbfe; border-color: #1e40af; }
html[data-theme="dark"] .campo label, html[data-theme="dark"] .tabela-simples th, html[data-theme="dark"] .abas-range button { color: var(--text); }
html[data-theme="dark"] .abas-range button { background: var(--surface); } html[data-theme="dark"] .abas-range button.ativo { background: #2563eb; color: #fff; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] .lista-item h4, html[data-theme="dark"] .card__header h3 { color: var(--text); }
html[data-theme="dark"] .resumo-card, html[data-theme="dark"] .resumo-card * { color: #fff; } html[data-theme="dark"] .resumo-card.amarelo, html[data-theme="dark"] .resumo-card.amarelo * { color: #1f2937; }
html[data-theme="dark"] .modal__caixa h4, html[data-theme="dark"] .prev-periodo, html[data-theme="dark"] .grade-total { color: #93c5fd; }
html[data-theme="dark"] .toast { border: 1px solid var(--border); } html[data-theme="dark"] .estado-vazio { color: var(--muted); }
html[data-theme="dark"] a:not([class]) { color: #93c5fd; } html[data-theme="dark"] summary { color: var(--text); }
html[data-theme="dark"] .carteira__x { color: var(--muted); } html[data-theme="dark"] .mapa-fileira__rotulo { color: var(--muted); }
.etapas-titulo { margin: 10px 0 4px; font-size: 14px; color: var(--primary, #2563eb); }
html[data-theme="dark"] .etapas-titulo { color: #93c5fd; }
.prev-num { display: inline-block; min-width: 84px; padding: 1px 8px; margin-right: 6px; border-radius: 999px; background: #dbeafe; color: #1e40af; font-size: 12px; font-weight: 700; text-align: center; }
html[data-theme="dark"] .prev-num { background: #1e3a8a; color: #dbeafe; }
.grade-dia { flex-wrap: wrap; } .grade-dia__nome { min-width: 130px; font-weight: 600; } .grade-dia__campos { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grade-qtd input[type=time] { width: 110px; } .grade-qtd input[data-dur] { width: 76px; }
.check-linha { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.lista-scroll--alta { max-height: 640px; }
.aula-linha { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: start; }
.aula-linha .aula-hora { font-weight: 700; color: var(--primary, #2563eb); } .aula-prev { color: var(--muted, #6b7280); font-size: 13px; }
html[data-theme="dark"] .aula-linha .aula-hora { color: #93c5fd; }
@media (max-width: 640px) { .aula-linha { grid-template-columns: 1fr; } }

/* Aba Relatórios */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rel-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.rel-card__topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rel-card__topo h4 { margin: 0; font-size: 18px; }
.rel-tag { background: #dbeafe; color: #1e40af; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.rel-tag:empty { display: none; }
.rel-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rel-kpi { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; }
.rel-kpi strong { font-size: 18px; color: var(--primary); } .rel-kpi span { font-size: 11px; color: var(--muted); }
.rel-acoes { display: flex; flex-wrap: wrap; gap: 8px; } .rel-acoes .btn-secundario { flex: 1 1 140px; }
.rel-card .dica { margin: 0; font-size: 12px; }
html[data-theme="dark"] .rel-tag { background: #1e3a8a; color: #dbeafe; } html[data-theme="dark"] .rel-kpi strong { color: #93c5fd; }
