/**
 * Tema visual alinhado ao sistema antigo (Notika / Voluntariado Lions):
 * azul #1f8ec8, fundo #f6f8fa, cartões brancos estilo breadcomb.
 * Carrega-se depois de app.css e sobrepõe tokens quando body.theme-lions está activo.
 */
.theme-lions {
    --lions-blue: #1f8ec8;
    --lions-blue-dark: #157ab0;
    --lions-blue-deep: #0f3555;
    --lions-bg-page: #f6f8fa;
    --lions-text: #333333;
    --lions-surface: #ffffff;
    --lions-chrome-border: rgba(15, 53, 85, 0.1);
    --lions-ring: rgba(31, 142, 200, 0.35);
}

.theme-lions body.app-body,
body.app-body.theme-lions {
    font-family: "Roboto", var(--font-family);
    background: linear-gradient(168deg, #f8fafc 0%, var(--lions-bg-page) 45%, #eef2f6 100%);
    background-attachment: fixed;
    color: var(--lions-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Barra lateral clara + ícones em linha (efeito tipo Instagram Web, cores VOLARO) */
.theme-lions .sidebar {
    background: var(--lions-surface);
    color: var(--lions-text);
    border-right: 1px solid var(--lions-chrome-border);
    box-shadow: 4px 0 28px rgba(15, 53, 85, 0.07);
}

.theme-lions .sidebar-brand {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--lions-chrome-border);
    margin-bottom: 0.35rem;
}

.theme-lions .sidebar-brand-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.85rem 0.75rem;
    text-decoration: none;
    border-radius: 12px;
    /* Sem transição de fundo: área da marca não usa realce ao hover */
    /* Anula .sidebar-brand a em app.css (background-clip: text) que cobre o logo em hover */
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: unset;
    color: inherit;
}

.theme-lions .sidebar-brand-inner:hover,
.theme-lions .sidebar-brand-inner:active {
    text-decoration: none;
    background: transparent;
    background-color: transparent;
}

.theme-lions .sidebar-brand-inner:focus-visible {
    outline: 2px solid var(--lions-ring);
    outline-offset: 2px;
}

.theme-lions .sidebar-brand img.sidebar-brand__mark,
.theme-lions .sidebar-brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 53, 85, 0.12);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Logo enviado pelo portal: usa a largura da barra e altura fixa para a arte preencher o quadro */
.theme-lions .sidebar-brand-inner--portal-logo {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0;
}

.theme-lions .sidebar-brand img.sidebar-brand__mark--portal {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 56px;
    padding: 2px;
    object-fit: contain;
    object-position: center;
    background: #fff;
    box-sizing: border-box;
    border: none;
    box-shadow: none;
}

.theme-lions .sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.theme-lions .sidebar-brand-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lions-blue-deep);
    letter-spacing: 0.02em;
}

.theme-lions .sidebar-brand-text span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 53, 85, 0.45);
}

.theme-lions .sidebar-brand .brand-gradient {
    font-size: 1rem;
    padding: 0 1rem 0.75rem;
}

.theme-lions .sidebar-nav .sidebar-nav-link {
    color: rgba(15, 53, 85, 0.88);
}

.theme-lions .sidebar-nav .sidebar-nav-link:hover {
    background: rgba(15, 53, 85, 0.06);
    color: var(--lions-blue-deep);
    transform: none;
    text-decoration: none;
}

.theme-lions .sidebar-nav .sidebar-nav-link:focus-visible {
    outline: 2px solid var(--lions-ring);
    outline-offset: 2px;
}

.theme-lions .sidebar-nav .sidebar-nav-link.active {
    background: rgba(31, 142, 200, 0.12);
    color: var(--lions-blue-deep);
    box-shadow: none;
}

.theme-lions .sidebar-nav .sidebar-nav-link.active .sidebar-nav-link__icon {
    color: var(--lions-blue);
}

.theme-lions .sidebar-nav .sidebar-nav-link--muted {
    color: rgba(15, 53, 85, 0.55);
}

.theme-lions .sidebar-nav .sidebar-nav-link--muted:hover {
    color: var(--lions-blue-deep);
}

.theme-lions .sidebar-nav .nav-group-label {
    color: rgba(15, 53, 85, 0.42);
}

.theme-lions .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(15, 53, 85, 0.22);
}

.theme-lions .sidebar-nav {
    scrollbar-color: rgba(15, 53, 85, 0.28) transparent;
}

/* Topbar: mesmo branco opaco que a sidebar (sem transparência nem blur sobre o fundo da página) */
.theme-lions .topbar,
body.theme-lions .topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--lions-surface);
    background-color: #ffffff;
    background-image: none;
    color: var(--lions-text);
    border-bottom: 1px solid var(--lions-chrome-border);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Nome da org = mesma hierarquia visual que .sidebar-brand-text strong */
.theme-lions .topbar-org {
    color: var(--lions-blue-deep);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* E-mail / unidade: mesmo plano branco da topbar (sem chip azul) */
body.theme-lions .topbar .topbar-user,
.theme-lions .topbar .topbar-user {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    font-weight: 500;
    opacity: 1;
}

body.theme-lions .topbar .topbar-user-email,
.theme-lions .topbar .topbar-user-email {
    background: transparent;
    background-color: transparent;
    color: var(--lions-blue-deep);
    border: none;
    box-shadow: none;
    padding: 0;
    font-weight: 500;
}

body.theme-lions .topbar .topbar-user-unit,
.theme-lions .topbar .topbar-user-unit {
    background: transparent;
    color: rgba(15, 53, 85, 0.52);
    opacity: 1;
    font-weight: 400;
}

.theme-lions .nav-menu-toggle {
    color: var(--lions-blue-deep);
    background: rgba(15, 53, 85, 0.06);
}

.theme-lions .nav-menu-toggle:hover {
    background: rgba(15, 53, 85, 0.1);
}

.theme-lions .nav-menu-toggle:focus-visible {
    outline: 2px solid var(--lions-ring);
    outline-offset: 2px;
}

.theme-lions .nav-menu-toggle:active {
    background: rgba(31, 142, 200, 0.14);
}

.theme-lions body.nav-open .nav-menu-toggle {
    background: rgba(31, 142, 200, 0.16);
    color: var(--lions-blue-dark);
}

.theme-lions .topbar .muted {
    color: rgba(15, 53, 85, 0.55);
}

/* Breadcomb / título de página (equivalente a .breadcomb-list do antigo) */
.theme-lions .lions-page-head {
    margin-bottom: 1.5rem;
}

.theme-lions .lions-page-head-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.45rem;
    background: var(--lions-surface);
    border-radius: 14px;
    border: 1px solid rgba(15, 53, 85, 0.08);
    box-shadow:
        0 1px 2px rgba(15, 53, 85, 0.04),
        0 8px 28px rgba(15, 53, 85, 0.07);
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-lions .lions-page-head-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(31, 142, 200, 0.22);
    background: linear-gradient(145deg, rgba(31, 142, 200, 0.1), rgba(15, 53, 85, 0.06));
    color: var(--lions-blue);
    font-size: 1.35rem;
    box-shadow: 0 2px 8px rgba(15, 53, 85, 0.08);
}

.theme-lions .lions-page-head-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.theme-lions .lions-page-head-text h1 {
    margin: 0 0 0.25rem;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e293b;
}

.theme-lions .lions-page-head-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.45;
}

.theme-lions .form-page-shell .lions-page-head-inner {
    border: 1px solid rgba(15, 53, 85, 0.12);
}

.theme-lions .form-panel-card {
    border-color: rgba(15, 53, 85, 0.12);
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(15, 53, 85, 0.04),
        0 10px 36px rgba(15, 53, 85, 0.08);
}

.theme-lions .form-panel-note {
    background: rgba(31, 142, 200, 0.06);
    border-color: rgba(31, 142, 200, 0.25);
    color: #3d4f5f;
}

.theme-lions .form-panel-card.units-section > h2 {
    color: #1e293b;
}

.theme-lions .units-tabs-bar {
    background: rgba(15, 53, 85, 0.08);
    border-color: rgba(15, 53, 85, 0.14);
}
.theme-lions .units-tabs-tab {
    color: #475569;
}
.theme-lions .units-tabs-tab:hover {
    color: var(--lions-blue-deep);
    background: rgba(255, 255, 255, 0.72);
}
.theme-lions .units-tabs-tab.is-active {
    color: var(--lions-blue-dark);
    background: #fff;
    border-color: rgba(15, 53, 85, 0.16);
    box-shadow: 0 1px 4px rgba(15, 53, 85, 0.1);
}

.theme-lions .lions-page-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Cartões de estatísticas (painel / indicadores) */
.theme-lions .stat-card {
    border-left: 4px solid var(--lions-blue);
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.theme-lions .stat-card .label {
    color: #666;
    font-weight: 600;
}

.theme-lions .stat-card .value {
    color: var(--lions-blue);
}

.theme-lions .stat-card.stat-card--accent-blue {
    border-left-color: var(--lions-blue);
}

.theme-lions .stat-card.stat-card--accent-teal {
    border-left-color: #0d9488;
}

.theme-lions .stat-card.stat-card--accent-amber {
    border-left-color: #d97706;
}

.theme-lions .stat-card.stat-card--accent-green {
    border-left-color: #047857;
}

.theme-lions .stat-card.stat-card--accent-slate {
    border-left-color: #64748b;
}

.theme-lions .stat-card.stat-card--accent-indigo {
    border-left-color: #4f46e5;
}

.theme-lions .stat-card.stat-card--accent-cyan {
    border-left-color: #0891b2;
}

.theme-lions .stat-card.stat-card--accent-teal .value {
    color: #0f766e;
}

.theme-lions .stat-card.stat-card--accent-amber .value {
    color: #b45309;
}

.theme-lions .stat-card.stat-card--accent-green .value {
    color: #047857;
}

.theme-lions .stat-card.stat-card--accent-slate .value {
    color: #475569;
}

.theme-lions .stat-card.stat-card--accent-indigo .value {
    color: #4338ca;
}

.theme-lions .stat-card.stat-card--accent-cyan .value {
    color: #0e7490;
}

.theme-lions .stat-card.stat-card--dash {
    border-radius: 12px;
    border-color: rgba(15, 53, 85, 0.08);
    box-shadow: 0 6px 20px rgba(15, 53, 85, 0.07);
}

.theme-lions .stat-card.stat-card--dash:hover {
    box-shadow: 0 14px 32px rgba(15, 53, 85, 0.11);
}

.theme-lions .stat-card.stat-card--impact {
    border-radius: 11px;
}

.theme-lions .dash-section-title {
    color: var(--lions-blue-deep);
    letter-spacing: -0.015em;
}

.theme-lions .dash-page .card {
    border-radius: 14px;
    border-color: rgba(15, 53, 85, 0.1);
    box-shadow:
        0 1px 2px rgba(15, 53, 85, 0.04),
        0 10px 32px rgba(15, 53, 85, 0.07);
}

.theme-lions .dash-page {
    overflow-x: hidden;
}

.theme-lions .dash-recent-link {
    color: var(--lions-blue);
}

.theme-lions .dash-month-bar {
    background: linear-gradient(180deg, var(--lions-blue), #93c5fd);
}

.theme-lions .dash-inline-bar-fill {
    background: linear-gradient(90deg, var(--lions-blue), #60a5fa);
}

.theme-lions .dash-inline-bar-fill--violet {
    background: linear-gradient(90deg, #6d28d9, #a78bfa);
}

.theme-lions .dash-chart-caption {
    color: var(--lions-blue-deep);
}

.theme-lions .dash-heat-gradient {
    background: linear-gradient(90deg, #e8eef2, var(--lions-blue), var(--lions-blue-deep));
}

.theme-lions .dash-heat-gradient--ods {
    background: linear-gradient(90deg, #ecfdf5, #059669, #064e3b);
}

.theme-lions .dash-heat-cell {
    background: linear-gradient(
        145deg,
        rgba(31, 142, 200, calc(0.07 + (var(--heat) / 100) * 0.78)),
        rgba(15, 53, 85, calc(0.1 + (var(--heat) / 100) * 0.74))
    );
}

/* Botões primários no tom Lions */
.theme-lions .btn-primary {
    background: var(--lions-blue);
    box-shadow: 0 3px 10px rgba(31, 142, 200, 0.4);
}

.theme-lions .btn-primary:hover {
    background: var(--lions-blue-dark);
    filter: brightness(1.02);
    box-shadow: 0 6px 22px rgba(31, 142, 200, 0.45);
}

.theme-lions .btn-primary:focus-visible {
    box-shadow: 0 0 0 3px var(--lions-ring);
}

.theme-lions .btn-outline:focus-visible,
.theme-lions .btn-secondary:focus-visible {
    box-shadow: 0 0 0 3px var(--lions-ring);
}

.theme-lions .btn-secondary {
    background: #e8eef2;
    color: #333;
}

.theme-lions .btn-outline {
    border-color: #ccc;
    color: #333;
}

.theme-lions .btn-outline:hover {
    border-color: var(--lions-blue);
    color: var(--lions-blue);
}

/* Tabelas */
.theme-lions table.data-table,
.theme-lions .data-table {
    border: 1px solid rgba(15, 53, 85, 0.08);
    box-shadow:
        0 1px 2px rgba(15, 53, 85, 0.04),
        0 8px 24px rgba(15, 53, 85, 0.06);
    border-radius: 12px;
}

.theme-lions .data-table th {
    background: linear-gradient(180deg, #f4f8fb 0%, #edf2f7 100%);
    color: #334155;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.theme-lions table.data-table tbody tr:hover td,
.theme-lions .data-table tbody tr:hover td {
    background: rgba(31, 142, 200, 0.06);
}

/* Formulários */
.theme-lions .form-row input:not([type="checkbox"]):not([type="radio"]):not(.select2-search__field):focus,
.theme-lions .form-row select:focus,
.theme-lions .form-row textarea:focus {
    outline: none;
    border-color: var(--lions-blue);
    box-shadow: 0 0 0 3px rgba(31, 142, 200, 0.2);
}

.theme-lions .form-row input[type="checkbox"],
.theme-lions .form-row input[type="radio"],
.theme-lions .form-check input[type="checkbox"],
.theme-lions .form-check input[type="radio"] {
    accent-color: var(--lions-blue);
}

.theme-lions .form-row input[type="checkbox"]:focus-visible,
.theme-lions .form-row input[type="radio"]:focus-visible {
    outline-color: var(--lions-blue);
}

.theme-lions .form-label-heading {
    color: var(--lions-blue-deep);
}

.theme-lions .form-section-title {
    color: var(--lions-blue-deep);
    border-bottom: 2px solid rgba(31, 142, 200, 0.35);
    padding-bottom: 0.35rem;
}

.toolbar-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.toolbar-row label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #444;
}

.toolbar-row select {
    padding: 0.45rem 0.65rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.toolbar-row--wrap {
    align-items: flex-start;
}

.reg-search-toolbar-wrap .reg-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 1rem;
    flex: 1 1 280px;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    margin: 0;
    background: rgba(31, 142, 200, 0.06);
    border: 1px solid rgba(31, 142, 200, 0.22);
    border-radius: 8px;
}

.reg-search-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.reg-search-form__field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #3d4f5f;
}

.reg-search-form__field--grow {
    flex: 1 1 220px;
}

.reg-search-form__field input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #c5ced6;
    font-family: inherit;
    font-size: 0.95rem;
}

.reg-search-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.reg-search-form .btn-outline.reg-search-clear {
    font-size: 0.875rem;
}

.toolbar-filters-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.25rem;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .reg-search-toolbar-wrap .reg-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .reg-search-form__actions {
        justify-content: flex-start;
    }
}

/* Topbar azul em formulários layout público (não confundir com auth layout app) */
.theme-lions .public-topbar-lg {
    background: var(--lions-blue);
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Marca VOLARO no fundo branco, imediatamente acima do <main> (login, recuperação, etc.) */
.theme-lions.auth-layout .auth-page-brand-wrap {
    background-color: #ffffff;
    background-image: linear-gradient(90deg, #14b88e 0%, var(--lions-blue) 100%);
    background-size: 100% 3px;
    background-position: top;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(226, 232, 240, 0.98);
    box-shadow: 0 6px 20px rgba(15, 53, 85, 0.06);
    padding: clamp(0.9rem, 2.8vw, 1.35rem) 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.theme-lions.auth-layout .auth-page-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    padding: 0.25rem 0.45rem;
    margin: -0.25rem -0.45rem;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-lions.auth-layout .auth-page-brand:hover {
    opacity: 0.9;
}

.theme-lions.auth-layout .auth-page-brand:active {
    transform: scale(0.98);
}

.theme-lions.auth-layout .auth-page-brand:focus-visible {
    outline: 2px solid var(--lions-ring);
    outline-offset: 3px;
}

.theme-lions.auth-layout .auth-page-brand__logo {
    height: clamp(46px, 12vw, 70px);
    width: auto;
    max-width: min(260px, 88vw);
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.06));
}

@media (max-width: 480px) {
    .theme-lions.auth-layout .auth-page-brand-wrap {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-top: max(0.85rem, env(safe-area-inset-top));
    }
}

/* Tela de login — fundo e cartão */
.theme-lions .auth-login-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: calc(100% + 3rem);
    max-width: none;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-top: -0.25rem;
    padding: clamp(1.25rem, 4vw, 2rem) 1.5rem 2.5rem;
    box-sizing: border-box;
    min-width: 0;
    min-height: calc(100vh - 9rem);
    min-height: calc(100dvh - 9rem);
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(31, 142, 200, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 0% 100%, rgba(16, 185, 129, 0.09) 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
}

.theme-lions .auth-login-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 1.6rem;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 20px 40px -12px rgba(31, 142, 200, 0.12);
}

.theme-lions .auth-login-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.theme-lions .auth-login-form .form-row:last-of-type {
    margin-bottom: 0.25rem;
}

.theme-lions .auth-login-submit {
    width: 100%;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(31, 142, 200, 0.35);
}

.theme-lions .auth-login-links {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.theme-lions .auth-login-links p {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.theme-lions .auth-login-links p:last-child {
    margin-bottom: 0;
}

.theme-lions .auth-login-links a {
    color: var(--lions-blue);
    font-weight: 500;
    text-decoration: none;
}

.theme-lions .auth-login-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .theme-lions .auth-login-page {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

.theme-lions .public-topbar-lg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    box-shadow: 0 2px 12px rgba(31, 142, 200, 0.35);
}

.theme-lions .public-brand {
    font-size: 0.95rem;
}

.theme-lions .public-nav-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
}

.theme-lions .public-nav-links a {
    color: #fff;
    text-decoration: none;
}

.theme-lions .public-nav-links a:hover {
    text-decoration: underline;
}

.theme-lions .public-nav-links .muted-sep {
    opacity: 0.6;
}

.theme-lions.auth-layout .main-wrap {
    margin-left: 0;
}

.theme-lions.auth-layout .main-content {
    max-width: 100%;
    padding-top: clamp(0.75rem, 2vw, 1.25rem);
}

/* Formulário de registo de voluntariado (paridade sistema antigo) */
.theme-lions .req-star {
    color: #c0392b;
    font-weight: 700;
}

.theme-lions .section-lead {
    margin: -0.25rem 0 1rem;
    font-size: 0.9rem;
    color: #555;
}

.theme-lions .small-hint {
    font-size: 0.8rem;
    margin-top: -0.5rem;
}

.theme-lions .reg-feed-toolbar {
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.theme-lions .reg-feed-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.theme-lions .reg-feed-switch input {
    width: 2.75rem;
    height: 1.4rem;
    accent-color: var(--lions-blue);
    cursor: pointer;
}

.theme-lions .readonly-field {
    background: #f0f4f8;
    color: #555;
    border-style: dashed;
}

/* Formulário novo/editar registo — largura do <main> (fluido ou 1100px) */
.theme-lions .reg-vol-form {
    max-width: 100%;
}

.theme-lions .reg-indicators-deadline-callout {
    margin: 0 0 1.1rem;
    max-width: none;
    line-height: 1.55;
}
.theme-lions .reg-indicators-deadline-callout__text {
    margin: 0;
    font-size: 0.9rem;
}
.theme-lions .reg-indicators-deadline-callout a {
    color: #92400E;
    font-weight: 600;
    text-decoration: underline;
}
.theme-lions .reg-kanban-followup-callout {
    margin: 0 0 1.1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid #b8d4f0;
    background: linear-gradient(180deg, #f0f7fd 0%, #e8f2fa 100%);
    box-shadow: 0 2px 8px rgba(15, 53, 85, 0.06);
}

.theme-lions .reg-kanban-followup-callout__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #243d56;
}

.theme-lions .reg-vol-form .form-row input:not([type="checkbox"]):not([type="radio"]):not(.select2-search__field),
.theme-lions .reg-vol-form .form-row select,
.theme-lions .reg-vol-form .form-row textarea {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

.theme-lions .reg-vol-form .select2-container {
    width: 100% !important;
    max-width: 100%;
}

/* KR — Responsáveis (Select2 múltiplo; caixa e dropdown alinhados ao ODS do registro) */
.theme-lions .form-row-grid-2 .reg-kr-assignee-wrap {
    min-width: 0;
}

/* Evita o <select multiple> nativo gigante se o Select2 ainda não inicializou */
.theme-lions .reg-kr-assignee-wrap select.reg-kr-assignee[multiple]:not(.select2-hidden-accessible) {
    max-height: 3.25rem;
    overflow: auto;
}

.theme-lions .reg-kr-assignee-wrap .select2-container {
    font-size: 0.9rem;
}

.theme-lions .select2-container.select2-reg-kr-assignee .select2-selection--multiple {
    min-height: 2.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    padding: 0.15rem 0.25rem;
}

/* Busca inline do Select2 múltiplo (não é campo .form-row) */
.theme-lions .select2-container.select2-reg-kr-assignee .select2-search--inline .select2-search__field {
    margin: 0;
    padding: 0 0.25rem;
    min-height: 0;
    line-height: 1.35;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none;
    box-sizing: border-box;
}

.theme-lions .select2-container.select2-reg-kr-assignee.select2-container--focus .select2-selection--multiple {
    border-color: #1f8ec8;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(31, 142, 200, 0.2);
}

.theme-lions .select2-container.select2-reg-kr-assignee .select2-selection--multiple .select2-selection__choice {
    background: #e8f4fb;
    border: 1px solid #b8d9ee;
    border-radius: 4px;
    padding: 0.1rem 0.35rem 0.1rem 0.2rem;
    margin-top: 0.2rem;
}

.theme-lions .select2-container.select2-reg-kr-assignee .select2-selection--multiple .select2-selection__choice__remove {
    color: #1f5f80;
    margin-right: 0.25rem;
}

.theme-lions .assignee-select-line {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
}

.theme-lions .assignee-select-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f3555;
    background: linear-gradient(145deg, #e8f4fb 0%, #d0e8f5 100%);
    border: 1px solid rgba(31, 142, 200, 0.35);
}

.theme-lions .assignee-select-text {
    font-size: 0.875rem;
    line-height: 1.3;
    white-space: normal;
}

.theme-lions .select2-container.select2-reg-kr-assignee .select2-selection__choice .assignee-select-text {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown alinhado ao Select2 ODS do mesmo formulário */
.theme-lions .select2-dropdown.select2-reg-kr-assignee-dropdown {
    margin-top: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-sizing: border-box;
}

.theme-lions .select2-dropdown.select2-reg-kr-assignee-dropdown .select2-search--dropdown {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.theme-lions .select2-dropdown.select2-reg-kr-assignee-dropdown .select2-search__field {
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.35;
    background: #fff;
    box-sizing: border-box;
    outline: none !important;
    box-shadow: none !important;
}

.theme-lions .select2-dropdown.select2-reg-kr-assignee-dropdown .select2-search__field:focus {
    border-color: #1f8ec8 !important;
    box-shadow: 0 0 0 2px rgba(31, 142, 200, 0.2) !important;
}

.theme-lions .select2-dropdown.select2-reg-kr-assignee-dropdown .select2-results > .select2-results__options {
    background: #fff;
}

.theme-lions .select2-dropdown.select2-reg-kr-assignee-dropdown .select2-results__option {
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.35;
}

.theme-lions .select2-dropdown.select2-reg-kr-assignee-dropdown .select2-results__option--highlighted {
    background-color: #1f8ec8 !important;
    color: #fff !important;
}

.theme-lions .select2-dropdown.select2-reg-kr-assignee-dropdown .select2-results__option[aria-selected='true'] {
    background-color: rgba(31, 142, 200, 0.08);
    color: #0f3555;
}

.theme-lions .select2-dropdown.select2-reg-kr-assignee-dropdown .select2-results__option[aria-selected='true'].select2-results__option--highlighted {
    background-color: #1f8ec8 !important;
    color: #fff !important;
}

.theme-lions .reg-kr-card .select2-container.select2-reg-kr-assignee {
    max-width: 100%;
}

.theme-lions .reg-kr-card .select2-container--open {
    z-index: 1055;
}

.theme-lions .select2-container--open .select2-dropdown.select2-reg-kr-assignee-dropdown {
    z-index: 1060 !important;
}

.theme-lions .reg-vol-form .note-editor.note-frame {
    width: 100%;
    max-width: 100%;
}

.theme-lions .reg-vol-form-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(15, 53, 85, 0.12);
}

.theme-lions .reg-vol-form-kicker {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lions-blue-deep);
}

.theme-lions .reg-vol-feed-switch {
    margin: 0;
}

.theme-lions .reg-mode-panel {
    margin-bottom: 1.35rem;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 53, 85, 0.14);
    background: linear-gradient(135deg, rgba(240, 247, 252, 0.9) 0%, #fff 55%);
}

.theme-lions .reg-mode-panel-lead {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lions-blue-deep);
}

.theme-lions .reg-mode-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.theme-lions .reg-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
    padding: 0.85rem 1rem;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid #dce4ec;
    background: #fff;
    color: #334155;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.theme-lions .reg-mode-btn:hover {
    border-color: rgba(15, 96, 140, 0.45);
    box-shadow: 0 2px 8px rgba(15, 53, 85, 0.08);
}

.theme-lions .reg-mode-btn.is-active {
    border-color: var(--lions-blue-mid, #2563ab);
    background: rgba(230, 242, 255, 0.65);
    box-shadow: 0 1px 0 rgba(15, 53, 85, 0.06);
}

.theme-lions .reg-mode-btn-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lions-blue-deep);
}

.theme-lions .reg-mode-btn-hint {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #64748b;
    font-weight: 500;
}

.theme-lions .reg-mode-hint {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
}

.theme-lions .reg-steps {
    position: sticky;
    top: 0;
    z-index: 6;
    margin: 0 0 1.25rem;
    padding: 0.65rem 0.85rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 53, 85, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(15, 53, 85, 0.06);
}

.theme-lions .reg-steps-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.theme-lions .reg-steps-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.35rem 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.theme-lions .reg-steps-list > li:not(.reg-steps-sep) {
    flex: 1 1 92px;
    min-width: 0;
}

.theme-lions .reg-steps-sep {
    flex: 0 0 auto;
    width: 1px;
    min-height: 2.25rem;
    align-self: center;
    background: linear-gradient(180deg, transparent, #cbd5e1, transparent);
    opacity: 0.75;
}

.theme-lions .reg-steps-link {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.45rem 0.4rem;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-lions .reg-steps-link:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--lions-blue-deep);
}

.theme-lions .reg-steps-link.is-active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--lions-blue-deep);
}

.theme-lions .reg-steps-link.is-done .reg-steps-num {
    background: rgba(16, 185, 129, 0.25);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.45);
}

.theme-lions .reg-steps-link.is-done.is-active .reg-steps-num {
    background: rgba(37, 99, 235, 0.25);
    color: var(--lions-blue-deep);
}

.theme-lions .reg-steps-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.theme-lions .reg-steps-text {
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
    min-width: 0;
}

.theme-lions .reg-steps-title {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.theme-lions .reg-steps-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.28;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    hyphens: auto;
}

.theme-lions .reg-steps-link.is-active .reg-steps-sub {
    color: #64748b;
}

/* Mobile: mais largura por célula (2 colunas) para o subtítulo não ficar espremido */
@media (max-width: 719px) {
    .theme-lions .reg-steps-list > li:not(.reg-steps-sep) {
        flex: 1 1 calc(50% - 0.35rem);
        min-width: calc(50% - 0.35rem);
        max-width: calc(50% - 0.35rem);
        box-sizing: border-box;
    }

    .theme-lions .reg-steps-sep {
        display: none;
    }

    .theme-lions .reg-steps-link {
        align-items: flex-start;
        min-height: 3rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .theme-lions .reg-steps-list > li:not(.reg-steps-sep):last-of-type {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .theme-lions .reg-steps-list > li:not(.reg-steps-sep) {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

.theme-lions .reg-step-anchor {
    scroll-margin-top: clamp(4.5rem, 14vh, 8rem);
}

.theme-lions .reg-event-end-nudge {
    margin: 1rem 0 0;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(217, 119, 6, 0.45);
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.65) 0%, rgba(255, 251, 235, 0.95) 100%);
    box-shadow: 0 1px 4px rgba(180, 83, 9, 0.08);
}

.theme-lions .reg-event-end-nudge-title {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #92400e;
}

.theme-lions .reg-event-end-nudge-text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #78350f;
}

.theme-lions .reg-step-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px dashed #cbd5e1;
}

.theme-lions .reg-step-nav--final {
    flex-direction: column;
    align-items: stretch;
}

.theme-lions .reg-step-nav-spacer {
    flex: 1;
    min-width: 0;
}

.theme-lions .reg-step-nav-hint {
    margin: 0;
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
}

.theme-lions .reg-step-nav .btn {
    flex: 1 1 auto;
    min-width: min(100%, 200px);
}

.theme-lions .reg-step-nav:not(.reg-step-nav--final) .btn:first-child:last-child {
    margin-left: auto;
}

@media (max-width: 560px) {
    .theme-lions .reg-step-nav:not(.reg-step-nav--final) {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-lions .reg-step-nav-spacer {
        display: none;
    }
}

.theme-lions .reg-report-gate {
    margin-bottom: 1rem;
}

.theme-lions .reg-report-gate-inner {
    padding: 1rem 1.1rem;
    border-radius: 8px;
    border: 1px dashed #94a3b8;
    background: #f8fafc;
}

.theme-lions .reg-report-gate-title {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--lions-blue-deep);
}

.theme-lions .reg-report-gate-text {
    margin: 0 0 0.75rem;
    font-size: 0.86rem;
    line-height: 1.45;
}

.theme-lions .reg-report-gate-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    color: #334155;
}

.theme-lions .reg-report-gate-checkbox input {
    margin-top: 0.2rem;
}

.theme-lions .reg-report-fields--hidden {
    display: none;
}

.theme-lions .reg-vol-section--report-collapsed .form-section-title {
    opacity: 0.85;
}

.theme-lions .reg-vol-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem 1.35rem 1.35rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 53, 85, 0.06);
}

.theme-lions .reg-vol-section .form-section-title {
    margin-top: 0;
}

.theme-lions .reg-vol-section .section-lead {
    margin-top: 0.25rem;
}

.theme-lions .reg-vol-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #5a6b7a;
    margin: 1.35rem 0 0.65rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #dce4ec;
}

.theme-lions .reg-vol-section .section-lead + .reg-vol-subtitle {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}

.theme-lions .reg-vol-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.25rem 0 0.35rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(15, 53, 85, 0.12);
}

.theme-lions .reg-vol-capa-thumb {
    display: block;
    object-fit: contain;
    background: #f0f4f8;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    max-width: 100%;
    height: auto;
}

.theme-lions .reg-vol-capa-preview-wrap {
    flex-shrink: 0;
}

@media (min-width: 900px) {
    .theme-lions .reg-vol-campaign-pair {
        gap: 1rem 1.75rem;
    }

    .theme-lions .reg-vol-capa-row {
        align-items: center;
    }

    .theme-lions .capa-upload-block .reg-vol-capa-row .form-row {
        flex: 1;
        min-width: 260px;
        max-width: 440px;
    }
}

@media (max-width: 719px) {
    .theme-lions .reg-vol-form-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-lions .reg-vol-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 0.5rem;
    }

    .theme-lions .reg-vol-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.theme-lions .form-row-grid-2,
.theme-lions .form-row-grid-3 {
    display: grid;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 720px) {
    .theme-lions .form-row-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    .theme-lions .form-row-grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.theme-lions .ods-field-wrap .ods-rich-select {
    width: 100%;
    font-size: 0.9rem;
}

.theme-lions .ods-preview-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin: 0.35rem 0 0.6rem;
    min-height: 0.25rem;
}

.theme-lions .ods-preview-strip img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    background: var(--white, #fff);
}

.theme-lions .ods-select-line {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
}

.theme-lions .ods-select-thumb {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

.theme-lions .ods-select-text {
    font-size: 0.875rem;
    line-height: 1.3;
    white-space: normal;
}

/* ODS no registro (só dentro de .ods-field-wrap — KR não usa esta classe) */
.theme-lions .ods-field-wrap .select2-container {
    font-size: 0.9rem;
}

.theme-lions .ods-field-wrap .select2-container--default .select2-selection--multiple {
    min-height: 2.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    padding: 0.15rem 0.25rem;
}

.theme-lions .ods-field-wrap .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #1f8ec8;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(31, 142, 200, 0.2);
}

.theme-lions .ods-field-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #e8f4fb;
    border: 1px solid #b8d9ee;
    border-radius: 4px;
    padding: 0.1rem 0.35rem 0.1rem 0.2rem;
    margin-top: 0.2rem;
}

.theme-lions .ods-field-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #1f5f80;
    margin-right: 0.25rem;
}

.theme-lions .ods-field-wrap .select2-selection__choice .ods-select-text {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-lions .ods-field-wrap .select2-search--inline .select2-search__field {
    margin: 0;
    padding: 0 0.25rem;
    min-height: 0;
    line-height: 1.35;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none;
    box-sizing: border-box;
}

.theme-lions .ods-field-wrap .select2-dropdown {
    border-color: #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-lions .ods-field-wrap .select2-results__option {
    padding: 0.35rem 0.5rem;
}

.theme-lions .ods-field-wrap .select2-results__option--highlighted[aria-selected] {
    background-color: #1f8ec8;
}

.theme-lions .capa-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.theme-lions .capa-upload-block .form-row {
    flex: 1;
    min-width: 200px;
}

.theme-lions .note-editor.note-frame {
    border-radius: 4px;
    border-color: #ccc;
}

.theme-lions .feed-body--html {
    line-height: 1.55;
}

.theme-lions .feed-body--html p {
    margin: 0.5em 0;
}

.theme-lions .feed-body--html ul,
.theme-lions .feed-body--html ol {
    margin: 0.5em 0 0.5em 1.25rem;
    padding-left: 1rem;
}

/* Quadro Kanban de registos (estilo moderno) */
.theme-lions .kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 1rem;
    align-items: start;
}

.theme-lions .kanban-column {
    background: linear-gradient(180deg, #f7fafd 0%, #eef3f8 100%);
    border: 1px solid #dce5ee;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 10px 20px rgba(15, 53, 85, 0.08);
    min-height: 260px;
}

.theme-lions .kanban-column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.theme-lions .kanban-column-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c3550;
}

.theme-lions .kanban-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #d9e7f6;
    color: #1f4a72;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 0.45rem;
}

.theme-lions .kanban-dropzone {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: background 0.2s ease, border-color 0.2s ease;
    border-radius: 8px;
}

.theme-lions .kanban-dropzone.is-hover {
    background: rgba(31, 142, 200, 0.09);
}

.theme-lions .kanban-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e1e7ef;
    box-shadow: 0 6px 14px rgba(17, 48, 73, 0.08);
    padding: 0.75rem;
    cursor: grab;
}

.theme-lions .kanban-card.is-dragging {
    opacity: 0.6;
}

.theme-lions .kanban-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    max-width: 100%;
}

.theme-lions .kanban-badge--schedule {
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

.theme-lions .kanban-badge--ongoing {
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
}

.theme-lions .kanban-badge--done {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.theme-lions .kanban-badge--done.kanban-badge--has-metrics {
    background: rgba(16, 185, 129, 0.22);
    color: #0f766e;
}

.theme-lions .kanban-badge--cancelled {
    background: rgba(148, 163, 184, 0.35);
    color: #475569;
}

.theme-lions .kanban-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.theme-lions .kanban-id {
    font-size: 0.75rem;
    font-weight: 700;
    color: #5b6c7f;
}

.theme-lions .kanban-edit {
    font-size: 0.78rem;
    font-weight: 600;
}

.theme-lions .kanban-timeline-badge-wrap {
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.theme-lions .kanban-card h4 {
    margin: 0 0 0.35rem;
    font-size: 0.93rem;
    color: #203a55;
}

.theme-lions .kanban-meta,
.theme-lions .kanban-date {
    margin: 0;
    font-size: 0.8rem;
    color: #5b6b7d;
    line-height: 1.35;
}

.theme-lions .kanban-okr-wrap {
    margin: 0.4rem 0 0;
}

.theme-lions .kanban-okr-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.8125rem;
    line-height: 1.2;
}

.theme-lions .kanban-okr-label {
    font-weight: 600;
    color: var(--lions-primary, #1e5a8a);
}

.theme-lions .kanban-okr-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--lions-text, #1a1d24);
}

.theme-lions .kanban-okr-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(30, 90, 138, 0.12);
    overflow: hidden;
}

.theme-lions .kanban-okr-bar-fill {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2d8a5c, #1e6dad);
    transition: width 0.25s ease-out;
}

.theme-lions .kanban-kr-details {
    margin: 0.55rem 0 0;
    border-top: 1px solid rgba(30, 90, 138, 0.12);
    padding-top: 0.45rem;
}

.theme-lions .kanban-kr-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.78rem;
    color: #3d5266;
    font-weight: 600;
    line-height: 1.25;
}

.theme-lions .kanban-kr-summary::-webkit-details-marker {
    display: none;
}

.theme-lions .kanban-kr-summary::marker {
    content: '';
    font-size: 0;
}

.theme-lions .kanban-kr-summary-hint {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--lions-primary, #1e5a8a);
    flex-shrink: 0;
}

.theme-lions .kanban-kr-hint-close {
    display: none;
}

.theme-lions .kanban-kr-details[open] .kanban-kr-hint-open {
    display: none;
}

.theme-lions .kanban-kr-details[open] .kanban-kr-hint-close {
    display: inline;
}

.theme-lions .kanban-kr-list {
    margin-top: 0.45rem;
    max-height: 11.5rem;
    overflow-y: auto;
    padding-right: 0.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-lions .kanban-kr-row {
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    background: rgba(30, 90, 138, 0.05);
    border: 1px solid rgba(30, 90, 138, 0.08);
}

.theme-lions .kanban-kr-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}

.theme-lions .kanban-kr-title {
    font-size: 0.74rem;
    font-weight: 600;
    color: #203a55;
    line-height: 1.3;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme-lions .kanban-kr-pct {
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1a1d24;
    flex-shrink: 0;
}

.theme-lions .kanban-kr-state {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.theme-lions .kanban-kr-assignees {
    margin: 0 0 0.28rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: #4a5f73;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.theme-lions .kanban-kr-bar {
    height: 5px;
    border-radius: 999px;
    background: rgba(30, 90, 138, 0.12);
    overflow: hidden;
}

.theme-lions .kanban-kr-bar-fill {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2d8a5c, #1e6dad);
}

.theme-lions .kanban-byline {
    margin: 0;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #3d5266;
    line-height: 1.35;
}

.theme-lions .kanban-date {
    margin-top: 0.35rem;
}

.theme-lions .kanban-empty {
    margin: 0;
    padding: 0.8rem 0.6rem;
    border: 1px dashed #c7d5e4;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #6c7f92;
    background: rgba(255, 255, 255, 0.5);
}

.theme-lions .kanban-column.is-planned {
    border-top: 4px solid #3b82f6;
}

.theme-lions .kanban-column.is-ongoing {
    border-top: 4px solid #f59e0b;
}

.theme-lions .kanban-column.is-completed {
    border-top: 4px solid #22c55e;
}

.theme-lions .kanban-column.is-cancelled {
    border-top: 4px solid #ef4444;
}

/* Modal Kanban — concluir registro */
.theme-lions .reg-kanban-modal {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.theme-lions .reg-kanban-modal.is-open {
    display: flex;
}

.theme-lions .reg-kanban-modal:not([hidden]).is-open {
    display: flex;
}

.theme-lions .reg-kanban-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 48, 73, 0.45);
    backdrop-filter: blur(3px);
}

.theme-lions .reg-kanban-modal__dialog {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 1.35rem 1.35rem 1.15rem;
    box-shadow: 0 22px 44px rgba(17, 48, 73, 0.18), 0 0 0 1px rgba(220, 229, 238, 0.95);
}

.theme-lions .reg-kanban-modal__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #e8f4fc 0%, #d9ebf9 100%);
    color: #1f6fa8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.theme-lions .reg-kanban-modal__title {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1c3550;
}

.theme-lions .reg-kanban-modal__lead {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #4a637a;
}

.theme-lions .reg-kanban-modal__fields {
    display: grid;
    gap: 0.85rem;
}

.theme-lions .reg-kanban-modal__field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #344c62;
    margin-bottom: 0.35rem;
}

.theme-lions .reg-kanban-modal__field input[type='date'],
.theme-lions .reg-kanban-modal__field input[type='time'] {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #cdd9e6;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fafcfe;
    color: #1c3550;
    box-sizing: border-box;
}

.theme-lions .reg-kanban-modal__field input:focus {
    outline: none;
    border-color: #3b9fd9;
    box-shadow: 0 0 0 3px rgba(59, 159, 217, 0.2);
}

.theme-lions .reg-kanban-modal__error {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b91c1c;
}

.theme-lions .reg-kanban-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.15rem;
    flex-wrap: wrap;
}

.theme-lions .reg-kanban-modal--layer-top {
    z-index: 1060;
}

.theme-lions .reg-kanban-modal__dialog--message {
    max-width: 460px;
}

.theme-lions .reg-kanban-modal__icon--restrict {
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c;
    border: 1px solid rgba(234, 88, 12, 0.18);
}

.theme-lions .reg-kanban-modal__lead--message {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #3d5266;
}

.theme-lions .reg-kanban-modal__actions--single {
    margin-top: 1.2rem;
    justify-content: stretch;
}

.theme-lions .reg-kanban-modal__actions--single .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1180px) {
    .theme-lions .kanban-board {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 760px) {
    .theme-lions .kanban-board {
        grid-template-columns: 1fr;
    }
}

/* Organograma — layout mais legível */
.theme-lions .orgchart-edit-panel {
    border-left: 4px solid var(--lions-blue);
    box-shadow: 0 2px 12px rgba(15, 53, 85, 0.08);
}

.theme-lions .orgchart-add-panel section h3 {
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
    font-weight: 600;
    color: var(--lions-text);
}

.theme-lions .orgchart-divider {
    border: 0;
    border-top: 1px solid rgba(15, 53, 85, 0.12);
    margin: 1.25rem 0;
}

.theme-lions .orgchart-add-section + .orgchart-divider {
    margin-top: 0;
}

.theme-lions .orgchart-add-child-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.theme-lions .orgchart-field-parent {
    flex: 1 1 260px;
    min-width: 200px;
}

.theme-lions .orgchart-field-parent select {
    width: 100%;
    max-width: 36rem;
}

.theme-lions .orgchart-field-submit {
    flex: 0 0 auto;
}

/* Hierarquia: destaque pai (topo) vs filhos */
.theme-lions .orgchart-table tbody tr:first-child.orgchart-row--root td {
    border-top: none;
}

.theme-lions .orgchart-table tbody tr.orgchart-row--root td {
    background: rgba(31, 142, 200, 0.09);
    border-top: 1px solid rgba(31, 142, 200, 0.28);
}

.theme-lions .orgchart-table tbody tr.orgchart-row--root td.orgchart-cell-name {
    border-left: 4px solid var(--lions-blue);
    padding-left: 0.7rem;
}

.theme-lions .orgchart-table tbody tr.orgchart-row--root .orgchart-tree-name {
    font-weight: 700;
    color: #0f3555;
    letter-spacing: 0.01em;
}

.theme-lions .orgchart-table tbody tr.orgchart-row--child td {
    background: #f8fafc;
}

.theme-lions .orgchart-table tbody tr.orgchart-row--child td.orgchart-cell-name {
    border-left: 3px solid rgba(31, 142, 200, 0.22);
    padding-left: 0.55rem;
}

.theme-lions .orgchart-table tbody tr.orgchart-row--child .orgchart-tree-name {
    font-weight: 400;
    color: var(--lions-text);
}

.theme-lions .orgchart-name-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.theme-lions .orgchart-child-marker {
    flex-shrink: 0;
    color: rgba(15, 53, 85, 0.45);
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 600;
}

/* Indentação extra para netos e níveis mais fundos */
.theme-lions .orgchart-name-wrap.orgchart-depth-1 {
    padding-left: 0.1rem;
}

.theme-lions .orgchart-name-wrap.orgchart-depth-2 {
    padding-left: 0.65rem;
}

.theme-lions .orgchart-name-wrap.orgchart-depth-3 {
    padding-left: 1.2rem;
}

.theme-lions .orgchart-name-wrap.orgchart-depth-4 {
    padding-left: 1.75rem;
}

.theme-lions .orgchart-name-wrap.orgchart-depth-5 {
    padding-left: 2.3rem;
}

.theme-lions .orgchart-name-wrap.orgchart-depth-6 {
    padding-left: 2.85rem;
}

.theme-lions .orgchart-name-wrap.orgchart-depth-7 {
    padding-left: 3.4rem;
}

.theme-lions .orgchart-name-wrap.orgchart-depth-8 {
    padding-left: 3.95rem;
}

.theme-lions tr.orgchart-row-highlight td {
    background: rgba(31, 142, 200, 0.14) !important;
}

.theme-lions .orgchart-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.theme-lions .orgchart-delete-form {
    display: inline;
    margin: 0;
}

.theme-lions .btn-text-danger {
    background: transparent;
    border: none;
    color: #b91c1c;
    padding: 0.4rem 0.5rem;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.theme-lions .btn-text-danger:hover {
    color: #991b1b;
}
