/* ============================================================
   Eklesis — ajustes sobre o AdminLTE 4 (Bootstrap 5.3)
   Cor de marca: verde Eklesis (#58a35f)
   ============================================================ */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
    --ek-green: #58a35f;
    --ek-green-dark: #3f8a49;
    --ek-green-rgb: 88, 163, 95;
    --bs-primary: var(--ek-green-dark);
    --bs-primary-rgb: 63, 138, 73;
    --bs-link-color: var(--ek-green-dark);
    --bs-link-color-rgb: 63, 138, 73;
    --bs-link-hover-color: #2f6e39;
    --bs-link-hover-color-rgb: 47, 110, 57;
}
[data-bs-theme="dark"] {
    --bs-primary: var(--ek-green);
    --bs-primary-rgb: 88, 163, 95;
    --bs-link-color: #7fc287;
    --bs-link-color-rgb: 127, 194, 135;
    --bs-link-hover-color: #a3d6a9;
    --bs-link-hover-color-rgb: 163, 214, 169;
}
.btn-primary {
    --bs-btn-bg: var(--ek-green-dark);
    --bs-btn-border-color: var(--ek-green-dark);
    --bs-btn-hover-bg: #357a40;
    --bs-btn-hover-border-color: #306f3a;
    --bs-btn-active-bg: #306f3a;
    --bs-btn-active-border-color: #2b6434;
    --bs-btn-disabled-bg: var(--ek-green-dark);
    --bs-btn-disabled-border-color: var(--ek-green-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--ek-green-dark);
    --bs-btn-border-color: var(--ek-green-dark);
    --bs-btn-hover-bg: var(--ek-green-dark);
    --bs-btn-hover-border-color: var(--ek-green-dark);
    --bs-btn-active-bg: var(--ek-green-dark);
}
[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #7fc287; }
.bg-primary { background-color: var(--ek-green-dark) !important; }
.text-bg-primary { background-color: var(--ek-green-dark) !important; }
.form-check-input:checked { background-color: var(--ek-green-dark); border-color: var(--ek-green-dark); }
.form-control:focus, .form-select:focus {
    border-color: var(--ek-green);
    box-shadow: 0 0 0 .2rem rgba(var(--ek-green-rgb), .25);
}
/* "Info" sem ciano: verde claro da marca (#7fc287) com texto escuro, distinto do primario (verde escuro). */
:root, [data-bs-theme="light"] {
    --bs-info: #7fc287;
    --bs-info-rgb: 127, 194, 135;
    --bs-info-text-emphasis: #2b5f32;
    --bs-info-bg-subtle: #e8f4ea;
    --bs-info-border-subtle: #b9dcbe;
}
[data-bs-theme="dark"] {
    --bs-info: #7fc287;
    --bs-info-rgb: 127, 194, 135;
    --bs-info-text-emphasis: #a3d6a9;
    --bs-info-bg-subtle: #15261a;
    --bs-info-border-subtle: #2f5a36;
}
.bg-info, .card-info, .text-bg-info { --lte-card-variant-bg: #7fc287; --lte-card-variant-bg-rgb: 127, 194, 135; --lte-card-variant-color: #10231a; --lte-card-variant-color-rgb: 16, 35, 26; }
.text-bg-info { color: #10231a !important; }
.btn-info {
    --bs-btn-color: #10231a; --bs-btn-bg: #7fc287; --bs-btn-border-color: #7fc287;
    --bs-btn-hover-color: #10231a; --bs-btn-hover-bg: #6db576; --bs-btn-hover-border-color: #6db576;
    --bs-btn-active-color: #10231a; --bs-btn-active-bg: #5fa868; --bs-btn-active-border-color: #5fa868;
    --bs-btn-focus-shadow-rgb: 127, 194, 135; --bs-btn-disabled-bg: #7fc287; --bs-btn-disabled-border-color: #7fc287;
}
.btn-outline-info {
    --bs-btn-color: #3f8a49; --bs-btn-border-color: #7fc287; --bs-btn-hover-color: #10231a; --bs-btn-hover-bg: #7fc287;
    --bs-btn-hover-border-color: #7fc287; --bs-btn-active-color: #10231a; --bs-btn-active-bg: #7fc287; --bs-btn-focus-shadow-rgb: 127, 194, 135;
}
[data-bs-theme="dark"] .btn-outline-info { --bs-btn-color: #7fc287; }
.text-info { color: #3f8a49 !important; }
[data-bs-theme="dark"] .text-info { color: #7fc287 !important; }

/* AdminLTE/Bootstrap trazem o azul #0d6efd fixo nestes componentes; o DS nao tem azul: tudo no verde da marca. */
.card-primary, .text-bg-primary { --lte-card-variant-bg: var(--ek-green-dark); --lte-card-variant-bg-rgb: 63, 138, 73; }
.card-primary.card-outline { border-top-color: var(--ek-green-dark); }
[data-bs-theme="dark"] .card-primary, [data-bs-theme="dark"] .text-bg-primary { --lte-card-variant-bg: var(--ek-green); --lte-card-variant-bg-rgb: 88, 163, 95; }
[data-bs-theme="dark"] .card-primary.card-outline { border-top-color: var(--ek-green); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--ek-green-dark); }
.list-group { --bs-list-group-active-bg: var(--ek-green-dark); --bs-list-group-active-border-color: var(--ek-green-dark); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--ek-green-dark); }
.progress, .progress-stacked { --bs-progress-bar-bg: var(--ek-green-dark); }
.form-range::-webkit-slider-thumb { background-color: var(--ek-green-dark); }
.form-range::-moz-range-thumb { background-color: var(--ek-green-dark); }
.pagination { --bs-pagination-active-bg: var(--ek-green-dark); --bs-pagination-active-border-color: var(--ek-green-dark); --bs-pagination-color: var(--ek-green-dark); }

/* ---------- Sidebar ---------- */
.app-sidebar .sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.08); }
.app-sidebar .brand-link { display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; text-decoration: none; }
.app-sidebar .brand-image { max-height: 34px; width: auto; border-radius: 6px; background: #fff; padding: 3px; }
.app-sidebar .brand-text { color: #fff; font-weight: 600; line-height: 1.1; font-size: .95rem; }
.app-sidebar .brand-text small { display: block; font-weight: 400; font-size: .7rem; color: rgba(255,255,255,.6); letter-spacing: .03em; }
/* Simbolo Eklesis (x-marca): claro = logo original; escuro = logo negativo. O tema vem do <html> (a sidebar e sempre escura). */
.ek-marca { display: block; height: 100%; width: auto; }
.ek-marca .ek-m-bloco { fill: #434142; }
.ek-marca .ek-m-torre { fill: #c1c1c0; }
.ek-marca .ek-m-verde { fill: #58a35e; }
.ek-marca .ek-m-cruz { fill: #bc753d; }
:root[data-bs-theme="dark"] .ek-marca .ek-m-bloco { fill: #fdfdfd; }
:root[data-bs-theme="dark"] .ek-marca .ek-m-torre { fill: #d4d4d4; }
:root[data-bs-theme="dark"] .ek-marca .ek-m-verde { fill: #4db547; }
:root[data-bs-theme="dark"] .ek-marca .ek-m-cruz { fill: #fca81c; }
.app-sidebar .ek-brand-marca { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 3px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: background-color .2s, border-color .2s; }
:root[data-bs-theme="dark"] .app-sidebar .ek-brand-marca { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); box-shadow: none; }
.sidebar-menu .nav-header { letter-spacing: .08em; font-size: .7rem; font-weight: 700; color: #7fc287; padding-top: 1rem; }
.sidebar-menu .nav-link.active { background-color: var(--ek-green-dark) !important; color: #fff !important; }

/* ---------- Conteudo ---------- */
.app-content-header h3 { font-size: 1.35rem; font-weight: 600; }
.small-box .small-box-icon { font-size: 4.2rem; }
.table > :not(caption) > * > * { vertical-align: middle; }
.card-header .card-title { font-weight: 600; }
.ek-section-title { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); border-bottom: 1px solid var(--bs-border-color); padding-bottom: .4rem; margin: 1.25rem 0 1rem; }
.ek-section-title:first-child { margin-top: 0; }
.ek-lookup-results { position: absolute; z-index: 30; left: 0; right: 0; max-height: 260px; overflow: auto; }
.ek-pick-list { max-height: 260px; overflow: auto; }

/* ---------- Medidor de forca / comparativo de senha ---------- */
.ek-meter { display: flex; gap: 4px; margin: .5rem 0 .35rem; }
.ek-meter span { flex: 1; height: 6px; border-radius: 3px; background: var(--bs-secondary-bg); transition: background .2s; }
.ek-meter[data-level="1"] span:nth-child(-n+1) { background: #dc3545; }
.ek-meter[data-level="2"] span:nth-child(-n+2) { background: #fd7e14; }
.ek-meter[data-level="3"] span:nth-child(-n+3) { background: #ffc107; }
.ek-meter[data-level="4"] span:nth-child(-n+4) { background: #28a745; }
.ek-criteria { list-style: none; padding: 0; margin: .25rem 0 0; font-size: .8rem; }
.ek-criteria li { color: var(--bs-secondary-color); }
.ek-criteria li.ok { color: #28a745; }
.ek-criteria li.bad { color: #dc3545; }

/* ---------- OTP (6 blocos) ---------- */
.ek-otp { display: flex; gap: .5rem; justify-content: center; }
.ek-otp input { width: 3rem; height: 3.4rem; text-align: center; font-size: 1.5rem; font-weight: 600; font-family: ui-monospace, Consolas, monospace; padding: 0; }

/* ============================================================
   Login: cartao dividido (formulario + carrossel). Cores do logotipo Eklesis:
   verde #3f8f3f, grafite #333, laranja da cruz #b85a0c, cinza #bbb.
   ============================================================ */
body.ek-auth {
    --ka-green: #3f8f3f; --ka-green-dark: #2d6a31; --ka-green-deep: #1f4d25; --ka-orange: #b85a0c; --ka-graphite: #333334;
    --ka-bg: #e4ebe5; --ka-card: #ffffff; --ka-text: #1f2a21; --ka-muted: #5f6e63; --ka-line: #dbe3dc;
    --ka-input: #f4f7f4; --ka-input-line: #d5ddd6; --ka-err: #c0392b;
    margin: 0; min-height: 100vh; background: var(--ka-bg); color: var(--ka-text);
    font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[data-bs-theme="dark"] body.ek-auth {
    --ka-bg: #1b1c1c; --ka-card: #353536; --ka-text: #f1f2f1; --ka-muted: #b3b8b3; --ka-line: #4b4c4d;
    --ka-input: #2b2c2d; --ka-input-line: #505152; --ka-err: #ff8a98;
}
.ek-auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.ek-auth-grid {
    width: 100%; max-width: 1180px; min-height: min(680px, calc(100vh - 4rem)); display: grid; grid-template-columns: 1fr 1fr;
    background: var(--ka-card); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(31, 77, 37, .18), 0 2px 8px rgba(0, 0, 0, .06);
}
@media (max-width: 991.98px) { .ek-auth-grid { grid-template-columns: 1fr; max-width: 520px; } .ek-auth-hero { display: none; } }
@media (max-width: 575.98px) { .ek-auth-wrap { padding: 0; align-items: stretch; } .ek-auth-grid { border-radius: 0; max-width: none; box-shadow: none; } }

/* ----- Painel do formulario ----- */
.ek-auth-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 3rem clamp(1.5rem, 5vw, 4rem); }
.ek-auth-card { width: 100%; max-width: 25.5rem; margin: 0 auto; }
.ek-auth-logo { display: block; width: 236px; height: auto; aspect-ratio: 800 / 241; max-width: 100%; margin-bottom: 2.2rem; }
.ek-auth-card h2 { font-size: 1.85rem; font-weight: 700; margin: 0 0 .35rem; letter-spacing: -.01em; color: var(--ka-text); }
.ek-auth-card .ek-sub { color: var(--ka-muted); margin-bottom: 1.5rem; }
.ek-auth-card label.form-label { font-size: .8rem; font-weight: 600; color: var(--ka-muted); margin-bottom: .4rem; }
.ek-auth-card .form-control { background: var(--ka-input); border: 1px solid var(--ka-input-line); color: var(--ka-text); padding: .78rem 1rem; border-radius: 10px; }
.ek-auth-card .form-control::placeholder { color: #8a9a8e; }
.ek-auth-card .form-control:focus { border-color: var(--ka-green); box-shadow: 0 0 0 .2rem rgba(63, 143, 63, .18); background: var(--ka-input); color: var(--ka-text); }
.ek-field { position: relative; }
.ek-field > i.bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #8a9a8e; pointer-events: none; z-index: 4; }
.ek-field .form-control { padding-left: 2.8rem; }
.ek-field .input-group > .form-control { padding-left: 2.8rem; }
.ek-auth-card .input-group .form-control { border-right: 0; border-radius: 10px 0 0 10px; }
.ek-auth-card .input-group .btn-eye { background: var(--ka-input); border: 1px solid var(--ka-input-line); border-left: 0; color: #8a9a8e; border-radius: 0 10px 10px 0; }
.ek-auth-card .input-group:focus-within .btn-eye, .ek-auth-card .input-group:focus-within .form-control { border-color: var(--ka-green); }
.ek-auth-card .form-check-input { border-color: var(--ka-input-line); }
.ek-auth-card .form-check-input:checked { background-color: var(--ka-green); border-color: var(--ka-green); }
.ek-auth-card .form-check-label { color: var(--ka-muted); }
.ek-btn-main { width: 100%; background: var(--ka-green); border: 0; color: #fff; font-weight: 600; font-size: 1rem; padding: .8rem 1rem; border-radius: 10px; box-shadow: 0 6px 16px rgba(63, 143, 63, .28); transition: background .15s, transform .05s; }
.ek-btn-main:hover:not(:disabled) { background: var(--ka-green-dark); color: #fff; }
.ek-btn-main:active:not(:disabled) { transform: translateY(1px); }
.ek-btn-main:disabled { opacity: .6; }
.ek-btn-ghost { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--ka-card); border: 1px solid var(--ka-input-line); color: var(--ka-text); font-weight: 600; padding: .75rem 1rem; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.ek-btn-ghost i { color: var(--ka-green); font-size: 1.15rem; }
.ek-btn-ghost:hover { background: var(--ka-input); color: var(--ka-text); border-color: var(--ka-green); }
.ek-divider { display: flex; align-items: center; gap: 1rem; color: var(--ka-muted); font-size: .8rem; margin: 1.3rem 0; }
.ek-divider::before, .ek-divider::after { content: ""; flex: 1; height: 1px; background: var(--ka-line); }
.ek-auth-card .ek-link { color: var(--ka-green-dark); font-weight: 600; text-decoration: none; }
[data-bs-theme="dark"] .ek-auth-card .ek-link { color: #7fcf86; }
.ek-auth-card .ek-link:hover { text-decoration: underline; }
.ek-note { background: #eef6ef; border-left: 4px solid var(--ka-green); padding: .8rem 1rem; border-radius: 8px; color: #2c4a31; margin-bottom: 1.3rem; font-size: .92rem; }
[data-bs-theme="dark"] .ek-note { background: #1c2a20; color: #cfe5d2; }
.ek-note.ok { border-left-color: var(--ka-green); }
.ek-note.err { border-left-color: var(--ka-err); background: #fdeeee; color: #8a2a22; }
[data-bs-theme="dark"] .ek-note.err { background: #2c1b1d; color: #f4c7cc; }
.ek-env { margin-top: 1.6rem; font-size: .8rem; color: var(--ka-muted); text-align: center; }
.ek-env b { color: var(--ka-orange); }
.ek-powered-form { margin-top: .9rem; display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .72rem; color: var(--ka-muted); }
.ek-powered-form .ek-selo { height: 26px; width: auto; }
.ek-theme-toggle { position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--ka-line); background: transparent; color: var(--ka-muted); }
.ek-theme-toggle:hover { background: var(--ka-input); color: var(--ka-text); }
.ek-auth-card .invalid-feedback, .ek-auth-card .ek-err { color: var(--ka-err); font-size: .85rem; margin-top: .35rem; display: block; }
.ek-auth-card .ek-criteria li { color: var(--ka-muted); }
.ek-auth-card .ek-criteria li.ok { color: var(--ka-green); }
.ek-auth-card .ek-criteria li.bad { color: var(--ka-err); }
.ek-auth-card .ek-meter span { background: var(--ka-line); }

/* ----- Carrossel (lado direito) ----- */
.ek-auth-hero { position: relative; overflow: hidden; margin: 14px; border-radius: 14px; color: #fff; background: linear-gradient(155deg, var(--ka-green) 0%, var(--ka-green-dark) 55%, var(--ka-green-deep) 100%); }
.ek-slides { position: absolute; inset: 0; }
.ek-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.4rem 2.6rem 4.6rem; }
.ek-slide.is-active { opacity: 1; visibility: visible; }
.ek-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ek-slide-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 48, 24, .88) 0%, rgba(18, 48, 24, .35) 38%, rgba(18, 48, 24, 0) 65%); }
.ek-slide-copy { position: relative; z-index: 2; text-align: center; }
.ek-slide-copy h3 { font-size: 1.6rem; font-weight: 700; margin: 0 0 .55rem; letter-spacing: -.01em; }
.ek-slide-copy p { margin: 0 auto; max-width: 25rem; color: rgba(255, 255, 255, .82); line-height: 1.5; }

/* Slides padrao: ilustracao com aneis, logo central e icones satelite */
.ek-art { position: absolute; left: 50%; top: 42%; width: min(78%, 410px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.ek-art::before, .ek-art::after { content: ""; position: absolute; border-radius: 50%; }
.ek-art::before { inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); }
.ek-art::after { inset: 13%; border: 1px solid rgba(255, 255, 255, .28); }
.ek-art-core { position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); z-index: 2; }
.ek-art-core img { height: 62%; width: auto; }
.ek-art-sat { position: absolute; width: 19%; aspect-ratio: 1; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.55rem; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); z-index: 2; color: var(--ka-green-dark); }
.ek-art-sat.s1 { left: 6%; top: 17%; } .ek-art-sat.s2 { right: 3%; top: 41%; color: var(--ka-orange); } .ek-art-sat.s3 { left: 15%; bottom: 8%; color: var(--ka-graphite); }
.ek-art-line { position: absolute; z-index: 1; background: rgba(255, 255, 255, .3); height: 2px; transform-origin: left center; left: 50%; top: 50%; }
.ek-art-cross { position: absolute; left: 50%; top: -3%; transform: translateX(-50%); color: #f0a35b; font-size: 2.2rem; z-index: 2; text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

.ek-dots { position: absolute; left: 0; right: 0; bottom: 1.8rem; z-index: 5; display: flex; justify-content: center; gap: .55rem; }
.ek-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: all .25s; cursor: pointer; }
.ek-dots button.is-active { background: #fff; width: 22px; border-radius: 6px; }
.ek-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ek-slide { transition: none; } }

/* ---------- Alinhamento fino: navbar x brand da sidebar ---------- */
:root { --ek-bar-h: 3.5rem; }
.app-header { height: var(--ek-bar-h); min-height: var(--ek-bar-h); padding: 0; display: flex; align-items: center; }
/* Barra de titulo fixa no topo: o conteudo rola por baixo dela (abaixo de drawer/modais, z-index 1045+) */
.app-header { position: sticky; top: 0; z-index: 1030; }
/* O AdminLTE (layout-fixed) poe overflow:auto no <main>; como quem rola e a janela, isso so cria um "container de rolagem"
   que nunca rola e anula o position:sticky de dentro (barra de acoes dos formularios). clip mantem o corte lateral sem rolagem. */
body.layout-fixed .app-wrapper .app-main { overflow: visible; overflow-x: clip; }
.app-header > .container-fluid { height: 100%; display: flex; align-items: center; flex-wrap: nowrap; }
.app-header .navbar-nav { align-items: center; height: 100%; }
.app-header .navbar-nav .nav-item { display: flex; align-items: center; }
.app-sidebar .sidebar-brand { height: var(--ek-bar-h); min-height: var(--ek-bar-h); box-sizing: border-box; display: flex; align-items: center; padding: 0; }
.app-sidebar .brand-link { width: 100%; padding: 0 1rem; }
.app-sidebar .brand-image { height: 34px; max-height: 34px; width: 34px; object-fit: contain; flex: 0 0 34px; margin: 0; }
.app-sidebar .brand-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-header .navbar-nav .nav-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding-top: 0; padding-bottom: 0; line-height: 1; }
.app-header .navbar-nav .nav-link.btn { border: 0; width: 38px; padding: 0; border-radius: 50%; }
.app-header .navbar-nav .nav-link.btn:hover { background: var(--bs-tertiary-bg); }
.app-header .navbar-nav .nav-link i.bi { font-size: 1.15rem; line-height: 1; }
.app-header .navbar-nav + .navbar-nav { gap: .25rem; }
.app-header .user-menu > .nav-link { gap: .5rem; padding-left: .25rem; padding-right: .5rem; }
.app-header .user-menu > .nav-link span:first-child { margin: 0 !important; flex: 0 0 auto; }
.app-header .user-menu > .nav-link span + span { font-size: .95rem; font-weight: 500; line-height: 1; }

/* ---------- QAI: logo conforme tema ---------- */
[data-bs-theme="dark"] .sidebar-btn2 .qai-logo-dark { display: inline-block; }
[data-bs-theme="dark"] .sidebar-btn2 .qai-logo-light { display: none; }
[data-bs-theme="light"] .sidebar-btn2 .qai-logo-dark { display: none; }
[data-bs-theme="light"] .sidebar-btn2 .qai-logo-light { display: inline-block; }
.app-header .sidebar-btn2 { width: 38px; height: 38px; padding: 4px; }
.app-header .sidebar-btn2 img { width: 28px; height: 28px; }

[x-cloak] { display: none !important; }

/* ---------- Titulo da pagina na navbar + cabecalho do conteudo ---------- */
.app-header .app-page-title { font-size: 1.05rem; font-weight: 600; padding: 0 .5rem; white-space: nowrap; }
.app-content-header { padding: .9rem 0 .25rem; }
.app-content-header .breadcrumb { --bs-breadcrumb-divider-color: var(--bs-secondary-color); font-size: .95rem; }

/* ---------- Minha conta: avatar grande ---------- */
.ek-avatar-lg { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: 0 0 96px; display: flex; align-items: center; justify-content: center; background: var(--ek-green-dark); color: #fff; font-size: 2rem; font-weight: 600; }
.ek-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.app-header .user-menu .dropdown-menu { min-width: 18rem; }

/* ---------- Painel lateral de cadastro (Novo/Editar) ----------
   Abre da direita para a esquerda, ate a metade da tela. Estatico: o fundo nao fecha o painel. */
.ek-drawer-backdrop { position: fixed; inset: 0; z-index: 1045; background: rgba(0, 0, 0, .5); }
.ek-drawer {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 50vw; min-width: 460px; max-width: 100vw;
    background: var(--bs-body-bg); box-shadow: -12px 0 32px rgba(0, 0, 0, .35);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .3s ease;
}
.ek-drawer.is-open { transform: translateX(0); }
@media (max-width: 991.98px) { .ek-drawer { width: 100vw; min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .ek-drawer { transition: none; } }
.ek-form-drawer, .ek-form-drawer-form, .ek-drawer-card { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; height: 100%; }
.ek-drawer-card { border: 0; border-radius: 0; margin: 0; box-shadow: none; }
.ek-drawer-card > .card-body { flex: 1 1 auto; overflow-y: auto; }
.ek-drawer-card > .card-header, .ek-drawer-card > .card-footer { flex: 0 0 auto; }
.ek-drawer-card > .card-header { border-top: 3px solid var(--ek-green); }
/* O clearfix do AdminLTE vira item extra do flex e desloca os botoes; remove-o onde usamos d-flex. */
.card-header.d-flex::after, .card-footer.d-flex::after, .card-header.d-flex::before, .card-footer.d-flex::before { display: none !important; }
/* Barra de acoes (Voltar/Cancelar + Salvar) das paginas de formulario: fica fixa na base da tela enquanto o card rola,
   como o rodape do painel lateral. Fundo opaco (cor do card + tom do cabecalho) para o conteudo passar por baixo. */
.ek-form-actions {
    position: sticky; bottom: 0; z-index: 1020;
    background: linear-gradient(var(--bs-card-cap-bg), var(--bs-card-cap-bg)), var(--bs-card-bg, var(--bs-body-bg));
    box-shadow: 0 -8px 16px -12px rgba(0, 0, 0, .45);
}
/* Barra de filtros (Painel financeiro, Fluxo de caixa, Balancete): os campos crescem e preenchem a linha,
   os botoes ficam no tamanho natural e o Exportar fecha a linha; o resumo do escopo vai para a linha de baixo.
   No celular: campos em linha inteira e botoes dividindo a linha em partes iguais. */
.ek-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ek-filtros > .form-select { flex: 3 1 8rem; width: auto; min-width: 0; }
.ek-filtros > .input-group { flex: 4 1 15rem; width: auto; flex-wrap: nowrap; }
.ek-filtros > .input-group > .form-control { min-width: 0; }
/* Botoes tambem crescem (pouco): numa linha cheia ganham folga proporcional; se quebrar, a linha de baixo fica preenchida. */
.ek-filtros > .btn, .ek-filtros > .dropdown, .ek-filtros > .btn-group { flex: 1 0 auto; white-space: nowrap; }
.ek-filtros > .dropdown > .btn { width: 100%; }
.ek-filtros > .form-check { flex: 0 0 auto; white-space: nowrap; }
.ek-filtros > .form-check { margin: 0 .25rem; }
.ek-filtros-resumo { flex: 1 0 100%; order: 99; }
@media (max-width: 575.98px) {
    /* Grade de 2 colunas: campos, grupos e Exportar em linha inteira; botoes curtos 2 por linha (dense fecha os buracos). */
    .ek-filtros { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; }
    .ek-filtros > .form-select, .ek-filtros > .input-group, .ek-filtros > .btn-group, .ek-filtros > .form-check,
    .ek-filtros > .ek-filtros-exportar, .ek-filtros > .ek-filtros-cheio, .ek-filtros > .ek-filtros-resumo { grid-column: 1 / -1; }
    .ek-filtros > .btn, .ek-filtros > .dropdown > .btn { width: 100%; }
    .ek-filtros > .btn-group > .btn { flex: 1 1 0; }
    /* Grupo com muitas opcoes (ex.: situacao) nao cabe numa linha: vira "chips" que quebram, cada um com borda propria. */
    .ek-filtros > .ek-filtros-opcoes { flex-wrap: wrap; gap: .25rem; }
    .ek-filtros > .ek-filtros-opcoes > .btn { flex: 1 0 auto; margin-left: 0 !important; border-radius: var(--bs-border-radius-sm) !important; }
    .ek-filtros > .form-check { margin: .15rem 0; }
    /* Periodo (.ek-filtros-datas): mes/data nao encolhem abaixo do texto; rotulo, De e Ate empilhados, mantendo o visual de grupo. */
    .ek-filtros > .ek-filtros-datas { flex-wrap: wrap; }
    .ek-filtros > .ek-filtros-datas > * { flex: 1 1 100%; width: 100%; margin-left: 0 !important; border-radius: 0 !important; }
    .ek-filtros > .ek-filtros-datas > * + * { margin-top: -1px; }
    .ek-filtros > .ek-filtros-datas > :first-child { border-radius: var(--bs-border-radius-sm) var(--bs-border-radius-sm) 0 0 !important; }
    .ek-filtros > .ek-filtros-datas > :last-child { border-radius: 0 0 var(--bs-border-radius-sm) var(--bs-border-radius-sm) !important; }
    .ek-filtros > .ek-filtros-datas > .input-group-text { justify-content: center; }
}

/* Abas dos formularios (CrudForm 'aba'): rolam na horizontal em tela estreita; aba ativa com o verde da marca. */
.ek-form-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.ek-form-tabs .nav-link { white-space: nowrap; color: var(--bs-secondary-color); display: inline-flex; align-items: center; gap: .4rem; }
.ek-form-tabs .nav-link:hover { color: var(--bs-body-color); }
.ek-form-tabs .nav-link.active { color: var(--bs-body-color); font-weight: 600; box-shadow: inset 0 -3px 0 var(--bs-primary); }
/* Campo "lista" (varios telefones/e-mails): valor + descricao + acoes por linha; empilha em tela estreita. */
.ek-lista { display: flex; flex-direction: column; gap: .5rem; container-type: inline-size; }
.ek-lista-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 7.25rem; gap: .5rem; align-items: start; }
.ek-lista-acoes { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; min-height: 38px; }
.ek-lista-acoes .btn { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.ek-lista-principal { font-weight: 600; }
/* Coluna estreita (lado a lado na pagina, ou celular): descricao vai para baixo do valor, acoes ao lado. */
@container (max-width: 480px) {
    .ek-lista-item { grid-template-columns: minmax(0, 1fr) auto; row-gap: .35rem; }
    .ek-lista-valor { grid-column: 1; grid-row: 1; }
    .ek-lista-desc { grid-column: 1; grid-row: 2; }
    .ek-lista-acoes { grid-column: 2; grid-row: 1; }
    .ek-lista-principal { display: none; }
    .ek-lista-item + .ek-lista-item { border-top: 1px dashed var(--bs-border-color); padding-top: .5rem; }
}
.ek-tab-erro { width: 8px; height: 8px; border-radius: 50%; background: var(--bs-danger); display: inline-block; }
.ek-drawer-close { flex: 0 0 auto; width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* Login: icone do campo de senha (o componente tem rotulo proprio, oculto aqui) e sombra para os pontos do carrossel */
.ek-field-pw label.form-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ek-field-pw > i.bi { top: 1.45rem; }
.ek-slides::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to top, rgba(18, 48, 24, .55), transparent); pointer-events: none; z-index: 3; }

/* ============================================================
   Agenda: calendario mensal, lista e detalhe do evento
   ============================================================ */
.ek-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.ek-cal { --ek-cal-line: var(--bs-border-color); }
.ek-cal-head, .ek-cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ek-cal-head > div { padding: .55rem .5rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); text-align: center; border-bottom: 1px solid var(--ek-cal-line); background: var(--bs-tertiary-bg); }
.ek-cal-day { min-height: 118px; padding: .3rem .35rem .4rem; border-right: 1px solid var(--ek-cal-line); border-bottom: 1px solid var(--ek-cal-line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ek-cal-day:nth-child(7n) { border-right: 0; }
.ek-cal-day.is-out { background: var(--bs-tertiary-bg); }
.ek-cal-day.is-out .ek-cal-num { opacity: .45; }
.ek-cal-dayhead { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.ek-cal-num { font-size: .85rem; font-weight: 600; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.ek-cal-day.is-today .ek-cal-num { background: #3f8f3f; color: #fff; }
.ek-cal-add { opacity: 0; border: 0; background: transparent; color: var(--bs-secondary-color); width: 24px; height: 24px; border-radius: 50%; line-height: 1; padding: 0; transition: opacity .12s; }
.ek-cal-day:hover .ek-cal-add, .ek-cal-add:focus-visible { opacity: 1; }
.ek-cal-add:hover { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
.ek-chip-ev { display: flex; align-items: center; gap: .3rem; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c); border-radius: 4px; padding: 1px 6px; font-size: .78rem; line-height: 1.45; color: var(--bs-body-color); background: color-mix(in srgb, var(--c) 17%, transparent); overflow: hidden; white-space: nowrap; cursor: pointer; }
.ek-chip-ev b { font-weight: 700; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.ek-chip-ev span { overflow: hidden; text-overflow: ellipsis; }
.ek-chip-ev:hover { background: color-mix(in srgb, var(--c) 30%, transparent); }
.ek-cal-more { border: 0; background: transparent; color: var(--bs-secondary-color); font-size: .75rem; text-align: left; padding: 0 6px; }
.ek-cal-more:hover { color: var(--bs-body-color); text-decoration: underline; }
@media (max-width: 767.98px) {
    .ek-cal-day { min-height: 74px; padding: .2rem; }
    .ek-chip-ev { padding: 0; height: 8px; border: 0; border-radius: 4px; background: var(--c); }
    .ek-chip-ev > * { display: none; }
    .ek-cal-add { display: none; }
}

.ek-agenda-dia { display: flex; gap: 1rem; align-items: flex-start; }
.ek-agenda-data { flex: 0 0 64px; text-align: center; border-radius: 12px; padding: .5rem 0; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); line-height: 1.1; }
.ek-agenda-data .n { display: block; font-size: 1.6rem; font-weight: 700; }
.ek-agenda-data .m, .ek-agenda-data .w { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); }
.ek-agenda-data.is-today { background: #3f8f3f; border-color: #3f8f3f; color: #fff; }
.ek-agenda-data.is-today .m, .ek-agenda-data.is-today .w { color: rgba(255, 255, 255, .85); }
.ek-agenda-itens { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.ek-agenda-item { display: flex; gap: 1rem; align-items: flex-start; width: 100%; text-align: left; border: 1px solid var(--bs-border-color); border-left: 5px solid var(--c); border-radius: 10px; padding: .65rem .9rem; background: var(--bs-body-bg); color: var(--bs-body-color); transition: box-shadow .12s, transform .12s; }
.ek-agenda-item:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transform: translateY(-1px); }
.ek-agenda-hora { flex: 0 0 105px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--bs-secondary-color); font-size: .9rem; }
.ek-agenda-corpo { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.ek-agenda-corpo .t { font-weight: 600; }
.ek-agenda-corpo .s { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .82rem; color: var(--bs-secondary-color); align-items: center; }
.ek-agenda-corpo .badge { color: #fff; font-weight: 600; }
@media (max-width: 575.98px) { .ek-agenda-dia { flex-direction: column; gap: .4rem; } .ek-agenda-data { flex-basis: auto; width: 64px; } .ek-agenda-item { flex-direction: column; gap: .2rem; } .ek-agenda-hora { flex-basis: auto; } }

.ek-ev-modal { border-top: 5px solid var(--c); }
.ek-ev-info li { display: flex; gap: .75rem; padding: .35rem 0; }
.ek-ev-info li > i { color: var(--bs-secondary-color); font-size: 1.05rem; width: 1.2rem; flex: 0 0 auto; }

/* ============================================================
   Marca: versoes claro/escuro dos logotipos e selo (webp), formas do fundo e alinhamento fino
   ============================================================ */
.ek-logo-dark { display: none; }
[data-bs-theme="dark"] .ek-logo-light { display: none; }
[data-bs-theme="dark"] .ek-logo-dark { display: inline-block; }
img.ek-auth-logo.ek-logo-dark { display: none; }
[data-bs-theme="dark"] img.ek-auth-logo.ek-logo-dark { display: block; }
/* Rodape: marca a esquerda e instancia a direita, centralizados na mesma linha; logo e selo com a mesma altura */
.app-footer.ek-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-block: .6rem; line-height: 1; }
.ek-footer-brand { display: inline-flex; align-items: center; gap: .65rem; }
.ek-footer-brand > span { line-height: 1; }
/* Logo 800x241: a palavra ocupa ~60% inferior (a cruz fica acima). Com 30px a palavra tem ~18px,
   alinhada a altura do texto; o translate recentraliza a palavra (nao a cruz) no eixo da linha. */
.ek-footer-logo { height: 30px; width: auto; display: block; transform: translateY(-5px); }
.ek-selo { height: 26px; width: auto; }
.ek-footer-brand .ek-selo { height: 26px; display: block; }
/* Troca light/dark com especificidade maior que as regras de tamanho/display acima */
.ek-footer-brand img.ek-logo-dark { display: none; }
[data-bs-theme="dark"] .ek-footer-brand img.ek-logo-light { display: none; }
[data-bs-theme="dark"] .ek-footer-brand img.ek-logo-dark { display: block; }
.ek-footer-instancia { line-height: 1; white-space: nowrap; }

/* Formas geometricas decorativas atras do cartao do login */
body.ek-auth { position: relative; overflow-x: hidden; --ka-shape-gray: #8a948c; }
[data-bs-theme="dark"] body.ek-auth { --ka-shape-gray: #8d918d; }
.ek-geo { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ek-geo svg { width: 100%; height: 100%; display: block; }
.ek-geo .fd { fill: var(--ka-green); opacity: .5; }
.ek-geo .f1 { fill: var(--ka-green); opacity: .13; }
.ek-geo .f2 { fill: var(--ka-orange); opacity: .55; }
.ek-geo .f3 { fill: var(--ka-shape-gray); opacity: .16; }
.ek-geo .s1 { fill: none; stroke: var(--ka-green); stroke-width: 2; opacity: .35; }
.ek-geo .s2 { fill: none; stroke: var(--ka-orange); stroke-width: 2; opacity: .4; }
.ek-geo .s3 { fill: none; stroke: var(--ka-shape-gray); stroke-width: 2; opacity: .35; }
.ek-geo .x { stroke: var(--ka-orange); stroke-width: 3; stroke-linecap: round; opacity: .55; }
[data-bs-theme="dark"] .ek-geo .f1 { opacity: .2; }
[data-bs-theme="dark"] .ek-geo .f3 { opacity: .22; }
.ek-geo .fl { animation: ek-float 16s ease-in-out infinite; transform-box: fill-box; }
.ek-geo .fl.b { animation-duration: 20s; animation-delay: -6s; }
.ek-geo .fl.c { animation-duration: 24s; animation-delay: -12s; }
@keyframes ek-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .ek-geo .fl { animation: none; } }
.ek-auth-wrap { position: relative; z-index: 1; }

/* Cartao: no escuro, borda sutil para separar do fundo; sombra mais discreta */
[data-bs-theme="dark"] .ek-auth-grid { box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.ek-auth-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background:
    linear-gradient(135deg, rgba(255,255,255,.08) 0 25%, transparent 25%) -40px 0 / 120px 120px,
    radial-gradient(circle at 100% 0, rgba(255,255,255,.12), transparent 40%); opacity: .5; pointer-events: none; }
.ek-slides { z-index: 1; }
.ek-dots { z-index: 6; }

/* Alinhamento identico claro/escuro: campos com a mesma altura e borda unica (sem emendas) */
.ek-auth-card .form-control { height: 50px; padding-top: 0; padding-bottom: 0; line-height: 48px; }
.ek-auth-card .input-group { border: 1px solid var(--ka-input-line); border-radius: 10px; background: var(--ka-input); height: 50px; flex-wrap: nowrap; overflow: hidden; }
.ek-auth-card .input-group > .form-control, .ek-auth-card .input-group > .btn-eye { border: 0; border-radius: 0; background: transparent; box-shadow: none; height: 100%; }
.ek-auth-card .input-group > .btn-eye { width: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ek-auth-card .input-group:focus-within { border-color: var(--ka-green); box-shadow: 0 0 0 .2rem rgba(63, 143, 63, .18); }
.ek-field > i.bi { top: 25px; }
.ek-field-pw > i.bi { top: 25px; }
.ek-auth-card .ek-btn-main, .ek-auth-card .ek-btn-ghost { height: 50px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; justify-content: center; }
.ek-auth-card .ek-btn-ghost { gap: .5rem; }
.ek-auth-card .form-check-input { width: 1.15em; height: 1.15em; margin-top: 0; }

.ek-auth-card .form-check { display: flex; align-items: center; gap: .5rem; padding-left: 0; min-height: 0; }
.ek-auth-card .form-check .form-check-input { float: none; margin: 0; flex: 0 0 auto; }
.ek-auth-card .form-check .form-check-label { line-height: 1; }
.ek-auth-hero::before { opacity: .35; }

/* Slides padrao: icones giram em orbita ao redor do icone do Eklesis (sem fundo, na cor escura do logo) */
.ek-art .ek-art-core { position: absolute; left: 50%; top: 50%; width: 21%; height: auto; aspect-ratio: 240 / 406; transform: translate(-50%, -50%); background: none; border-radius: 0; box-shadow: none; z-index: 2; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .28)); }
.ek-orbit { position: absolute; inset: 13%; z-index: 2; animation: ek-orbitar 36s linear infinite; }
.ek-arm { position: absolute; inset: 0; transform: rotate(var(--a)); }
.ek-arm .ek-art-sat { position: absolute; left: 50%; top: 0; width: 25.7%; aspect-ratio: 1; animation: ek-contra 36s linear infinite; }
.ek-art-sat i { line-height: 1; }
.ek-arm:nth-child(2) .ek-art-sat { color: var(--ka-orange); }
.ek-arm:nth-child(3) .ek-art-sat { color: var(--ka-graphite); }
@keyframes ek-orbitar { to { transform: rotate(360deg); } }
@keyframes ek-contra { from { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)); } to { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1 - 360deg)); } }
@media (prefers-reduced-motion: reduce) { .ek-orbit, .ek-arm .ek-art-sat { animation: none; } .ek-arm .ek-art-sat { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)); } }

/* ===== Notificacoes: sino da barra de titulo (entre o tema e o perfil) e lista em "Minha conta" ===== */
.ek-notif > .nav-link { position: relative; }
.ek-notif-badge { position: absolute; top: .2rem; right: .05rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--bs-danger); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1.15rem; text-align: center; box-shadow: 0 0 0 2px var(--bs-body-bg); pointer-events: none; }
.ek-notif-menu { width: 22rem; max-width: calc(100vw - 1rem); overflow: hidden; }
.ek-notif-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .9rem; border-bottom: 1px solid var(--bs-border-color); }
.ek-notif-head .btn-link { font-size: .8rem; text-decoration: none; }
.ek-notif-off { padding: .5rem .9rem; background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); border-bottom: 1px solid var(--bs-border-color); }
.ek-notif-lista { max-height: min(24rem, 60vh); overflow-y: auto; }
.ek-notif-item { position: relative; display: flex; align-items: flex-start; gap: .65rem; }
.ek-notif-lista .ek-notif-item { border-bottom: 1px solid var(--bs-border-color-translucent); }
.ek-notif-item.is-nova { background: rgba(var(--ek-green-rgb), .09); }
.ek-notif-item.is-nova::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bs-primary); }
.ek-notif-corpo { flex: 1 1 auto; min-width: 0; display: flex; gap: .65rem; padding: .65rem 0 .65rem .9rem; border: 0; background: transparent; color: inherit; text-align: left; }
.ek-notif-corpo:hover .ek-notif-titulo { text-decoration: underline; }
.ek-notif-ico { flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bs-tertiary-bg); font-size: 1rem; }
.ek-notif-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ek-notif-titulo { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.ek-notif-item:not(.is-nova) .ek-notif-titulo { font-weight: 500; }
.ek-notif-msg { font-size: .82rem; color: var(--bs-secondary-color); overflow-wrap: anywhere; }
.ek-notif-lista .ek-notif-msg { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ek-notif-quando { font-size: .74rem; color: var(--bs-secondary-color); margin-top: .15rem; }
.ek-notif-ler { flex: 0 0 auto; align-self: center; margin-right: .4rem; border: 0; background: transparent; color: var(--bs-secondary-color); width: 2rem; height: 2rem; border-radius: 50%; }
.ek-notif-ler:hover { background: var(--bs-tertiary-bg); color: var(--bs-primary); }
.ek-notif-vazio { padding: 1.5rem .9rem; text-align: center; color: var(--bs-secondary-color); font-size: .9rem; }
.ek-notif-vazio .bi { font-size: 1.4rem; }
.ek-notif-todas { display: block; padding: .6rem .9rem; text-align: center; font-size: .85rem; font-weight: 500; text-decoration: none; border-top: 1px solid var(--bs-border-color); }
.ek-notif-todas:hover { background: var(--bs-tertiary-bg); }
.ek-notif-pagina .ek-notif-item { padding-left: 1rem; }
.ek-notif-pagina .ek-notif-titulo a { color: inherit; }
.ek-notif-acoes { flex: 0 0 auto; display: flex; align-items: center; }
.ek-notif-prefs.is-off { opacity: .55; }
#preferencias-notificacao { scroll-margin-top: 4.5rem; }
/* Minha conta: colunas empilhadas cujo ultimo card estica para fechar alinhado com a coluna vizinha */
.ek-col-stack { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 992px) {
    .ek-col-stack > .ek-card-fill, .ek-col-stack > .ek-col-fill { flex: 1 1 auto; }
    .ek-col-fill { display: flex; flex-direction: column; }
    .ek-col-fill > .card { flex: 1 1 auto; }
}
/* Celular: o menu ocupa a largura da tela, logo abaixo da barra de titulo */
@media (max-width: 575.98px) {
    .app-header .ek-notif { position: static; }
    .app-header .ek-notif .ek-notif-menu { position: fixed; top: 3.5rem; left: .5rem; right: .5rem; width: auto; max-width: none; }
    .ek-notif-acoes { flex-direction: column; }
}
