/**
 * Portal ANCORD - Estilos Base
 * Baseado no design do Figma
 */

/* ===== Escala Tipográfica Global ===== */
:root {
    /* Títulos (uppercase, bold) */
    --font-size-h1: 1.4rem;
    --line-height-h1: 1.25;
    
    --font-size-h2: 1.2rem;
    --line-height-h2: 1.3;
    
    --font-size-h3: 1.1rem;
    --line-height-h3: 1.35;
    
    --font-size-h4: 18px;
    --line-height-h4: 1.4;
    
    /* Texto (light) */
    --font-size-body: 16px;
    --line-height-body: 1.6;
    
    --font-size-small: 14px;
    --line-height-small: 1.6;
    
    --font-size-caption: 12px;
    --line-height-caption: 1.5;
    
    /* Família tipográfica */
    --font-family-base: 'Nunito Sans', sans-serif;
}

/* ===== Reset e Base ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.portal-ancord {
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    font-weight: 300; /* Light para texto */
    color: #000;
    background-color: #fff;
}

/* Layout com footer fixo na base do viewport (login, esqueci senha, redefinir senha) */
body.portal-login-page,
body.portal-esqueci-senha-page,
body.portal-redefinir-senha-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.portal-login-page main,
body.portal-esqueci-senha-page main,
body.portal-redefinir-senha-page main {
    flex: 1;
}

body.portal-login-page .portal-footer,
body.portal-esqueci-senha-page .portal-footer,
body.portal-redefinir-senha-page .portal-footer {
    margin-top: auto;
}

/* ===== Hierarquia de Títulos ===== */
h1, .h1,
h1.portal-ancord, .portal-ancord h1 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    font-weight: 700; /* Bold */
    text-transform: uppercase;

    font-weight: 700;
}

h2, .h2,
h2.portal-ancord, .portal-ancord h2 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    font-weight: 700; /* Bold */
    text-transform: uppercase;

    font-weight: 700;
}

h3, .h3,
h3.portal-ancord, .portal-ancord h3 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    font-weight: 700; /* Bold */
    text-transform: uppercase;

    font-weight: 700;
}

h4, .h4,
h4.portal-ancord, .portal-ancord h4 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h4);
    line-height: var(--line-height-h4);
    font-weight: 700; /* Bold */
    text-transform: uppercase;

    font-weight: 700;
}

/* ===== Texto e Labels ===== */
p, .portal-text-body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    font-weight: 300; /* Light */
}

small, .portal-text-small {
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    font-weight: 300; /* Light */
}

.portal-text-caption {
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    line-height: var(--line-height-caption);
    font-weight: 300; /* Light */
}

/* ===== Header / Navegação ===== */
.portal-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 2rem;
}

.portal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.portal-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.portal-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.2s;
}

.portal-nav a:hover {
    color: #666;
}

.portal-logo {
    font-weight: 600;
    font-size: var(--font-size-h3);
}

/* ===== Container Principal ===== */
.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Primeiro Acesso ===== */
.portal-primeiro-acesso-page {
    min-height: 100vh;
    background-color: #fff;
}

.portal-login-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.portal-login-title {
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    text-transform: uppercase;
    color: #000;
    margin-bottom: 2rem;
    text-align: center;
}

/* ===== Formulários ===== */
.portal-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.portal-form-group {
    margin-bottom: 1.25rem;
}

.portal-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: #666;
}

.portal-form-input {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    font-weight: 300;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.2s, outline 0.2s;
}

.portal-form-input:focus {
    outline: 2px solid #00cdff;
    outline-offset: -2px;
    border-color: #00cdff;
}

.portal-form-button {
    width: 100%;
    max-width: 320px;
    height: 44px;
    padding: 0;
    background-color: #00cdff;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    font-weight: 700;
    font-family: var(--font-family-base);
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 1.5rem auto 0;
    display: block;
}

.portal-form-button:hover {
    background-color: #00a8d4;
}

.portal-form-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.portal-form-error {
    background-color: #fee;
    color: #c00;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.portal-form-success {
    background-color: #efe;
    color: #060;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ===== Footer ===== */
.portal-footer {
    background-color: #292929;
    padding: 1rem 0;
    margin-top: 0;
    text-align: center;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    font-weight: 300;
    color: #999;
    width: 100%;
}

.portal-footer-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.portal-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.portal-footer-column {
    display: flex;
    flex-direction: column;
}

.portal-footer-column-title {
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: var(--font-size-caption);
    line-height: var(--line-height-caption);
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.portal-footer-column-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-footer-column-links a {
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-caption);
    line-height: var(--line-height-caption);
    color: #999;
    text-decoration: none;
}

.portal-footer-column-links a:hover {
    color: #fff;
}

.portal-footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.portal-footer-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
}

.portal-footer-social svg,
.portal-footer-social img {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.portal-footer-cpf-field {
    max-width: 200px;
    margin: 0 auto;
}

.portal-footer-links {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.portal-footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 1rem;
}

.portal-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.portal-footer-logo {
    margin: 2rem auto 1rem;
    text-align: center;
}

.portal-footer-logo img {
    max-height: 77px;
    opacity: 1;
}

.portal-footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: var(--font-size-caption);
}

/* ===== Cards / Boxes ===== */
.portal-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.portal-card-title {
    font-family: var(--font-family-base);
    font-size: 1rem;
    line-height: var(--line-height-h4);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #000;
}

/* Tela de pré-cadastro (primeiro acesso): títulos, labels, dados e placeholders */
.portal-primeiro-acesso-page .portal-card-title {
    font-size: 1.1rem;
}
.portal-primeiro-acesso-page .portal-form-label {
    font-size: 0.9rem;
}
.portal-primeiro-acesso-page .portal-card-group-item {
    font-size: 0.9rem;
}
.portal-primeiro-acesso-page .portal-form-input::placeholder {
    font-size: 0.9rem;
}
.portal-primeiro-acesso-page .portal-card-dados-cadastro p {
    font-size: 1rem;
    font-weight: 400;
}
.portal-primeiro-acesso-page .portal-card-dados-cadastro p strong {
    font-weight: 700;
}

/* ===== Listas ===== */
.portal-list {
    list-style: none;
}

.portal-list-item {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.portal-list-item:last-child {
    border-bottom: none;
}

.portal-list-item a {
    color: #000;
    text-decoration: none;
}

.portal-list-item a:hover {
    text-decoration: underline;
}

/* ===== Responsivo (Mobile) ===== */
@media (max-width: 768px) {
    .portal-container {
        padding: 1rem;
    }

    .portal-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .portal-nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }

    .portal-form {
        padding: 1.5rem;
    }

    .portal-header {
        padding: 1rem;
    }

    .portal-footer {
        padding: 1.5rem 1rem;
    }
}

/* ===== Páginas Específicas ===== */

/* Dupla Autenticação */
.portal-2fa-container {
    max-width: 400px;
    margin: 4rem auto;
    text-align: center;
}

.portal-2fa-code-input {
    font-size: var(--font-size-h2);
    letter-spacing: 0.5rem;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.portal-2fa-info {
    margin-top: 1rem;
    color: #666;
    font-size: var(--font-size-small);
}

/* Login - Baseado no Figma */
.portal-login-page {
    min-height: 100vh;
    background-color: #fff;
}

.portal-login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: 100vh;
}

/* Logo Header */
.portal-login-logo-header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.portal-login-logo-container {
    width: 200px;
    height: auto;
    max-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-login-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Box de Login */
.portal-login-box {
    width: 100%;
    max-width: 40rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 2rem;
}

.portal-login-box-content {
    width: 100%;
}

.portal-login-welcome {
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.portal-login-welcome-bold {
    display: block;
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: var(--font-size-h3);
    color: #000;
    margin-bottom: 0.5rem;
}

.portal-login-welcome-text {
    display: block;
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-body);
    color: #000;
    line-height: 1.5;
    text-transform: none;
}

/* Form Login */
.portal-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portal-login-field {
    display: flex;
    flex-direction: column;
}

.portal-login-label {
    display: block;
    font-family: var(--font-family-base);
    font-weight: 600;
    font-size: var(--font-size-small);
    color: #666;
    margin-bottom: 0.5rem;
}

.portal-login-input {
    width: 100%;
    height: 48px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 1rem;
    font-size: var(--font-size-body);
    font-family: inherit;
    transition: border-color 0.2s, outline 0.2s;
}

.portal-login-input:focus {
    outline: 2px solid #00cdff;
    outline-offset: -2px;
}

/* Opções */
.portal-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.portal-login-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.portal-login-checkbox {
    width: 18px;
    height: 18px;
    background-color: #f6f6f6;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.portal-login-checkbox-text {
    font-family: var(--font-family-base);
    font-weight: 400;
    font-size: var(--font-size-small);
    color: #666;
}

.portal-login-forgot {
    font-family: var(--font-family-base);
    font-weight: 500;
    font-size: var(--font-size-small);
    color: #fd9733;
    text-decoration: none;
}

.portal-login-forgot:hover {
    text-decoration: underline;
}

/* Botão Entrar */
.portal-login-button {
    width: 100%;
    max-width: 280px;
    height: 44px;
    background-color: #00cdff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 1.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-login-button:hover {
    background-color: #00a8d4;
}

.portal-login-button-text {
    font-family: var(--font-family-base);
    font-weight: 600;
    font-size: var(--font-size-body);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsivo Login */
@media (max-width: 768px) {
    .portal-login-wrapper {
        padding: 1.5rem 1rem;
    }

    .portal-login-logo-container {
        width: 180px;
        max-width: 100%;
        height: auto;
        margin-bottom: 1.5rem;
    }

    .portal-login-box {
        padding: 1.5rem;
        max-width: 100%;
    }

    .portal-login-welcome-bold {
        font-size: var(--font-size-h4);
    }

    .portal-login-welcome-text {
        font-size: var(--font-size-small);
    }

    .portal-login-label {
        font-size: var(--font-size-small);
    }

    .portal-login-input {
        height: 44px;
        font-size: var(--font-size-body);
    }

    .portal-login-button {
        width: 100%;
        max-width: 100%;
    }

    .portal-login-button-text {
        font-size: 15px;
    }

    .portal-login-checkbox {
        width: 16px;
        height: 16px;
    }

    .portal-login-checkbox-text,
    .portal-login-forgot {
        font-size: var(--font-size-small);
    }
}

/* Home / Dashboard - Layout com Sidebar (Baseado no Figma) */
.portal-home-page {
    min-height: 100vh;
    background-color: #fff;
}

.portal-home-layout {
    display: flex;
    min-height: 100vh;
    overflow-x: visible; /* Permite que a inclinação do título seja visível */
}

/* Sidebar Esquerda (265px) */
.portal-sidebar {
    width: 265px;
    background-color: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
}

.portal-sidebar-logo {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.portal-sidebar-logo-img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.portal-user-card {
    background-color: #475569;
    margin: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.portal-user-name {
    font-family: var(--font-family-base);
    font-weight: 600;
    font-size: var(--font-size-small);
    color: #fff;
}

/* Menu Lateral */
.portal-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portal-sidebar-section {
    margin-bottom: 1.5rem;
}

.portal-sidebar-section-title {
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: var(--font-size-caption);
    line-height: var(--line-height-caption);
    color: #474747;
    text-transform: uppercase;
    padding: 0 1.5rem 0.5rem;
}

.portal-sidebar-menu {
    display: flex;
    flex-direction: column;
}

.portal-sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    color: #000;
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-small);
    transition: background-color 0.2s ease;
    margin: 0.2rem 0.75rem;
    border-radius: 8px;
}

/* Hover/active: mantém cor e indicador, mesmo padding para não ampliar (evita bug) */
.portal-sidebar-menu-item:hover,
.portal-sidebar-menu-item.active,
.admin-sidebar .portal-sidebar-menu-item.active {
    background-color: #ebebeb;
    color: #000000;
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    margin: 0.2rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transform: none;
}

.portal-sidebar-icon {
    font-size: var(--font-size-body);
    width: 16px;
    text-align: center;
}

.portal-sidebar-submenu {
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.portal-sidebar-submenu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    padding-left: 2.5rem;
    text-decoration: none;
    color: #666;
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-small);
    transition: background-color 0.2s, color 0.2s;
    border-radius: 4px;
}

.portal-sidebar-submenu-icon {
    font-size: var(--font-size-caption);
    width: 12px;
    text-align: center;
    color: #999;
}

.portal-sidebar-submenu-item:hover {
    background-color: rgba(71, 85, 105, 0.1);
    color: #000;
}

.portal-sidebar-submenu-item.active {
    background-color: rgba(71, 85, 105, 0.15);
    color: #000;
    font-weight: 400;
}

/* Menu item com submenu retrátil */
.portal-sidebar-menu-item.has-submenu {
    cursor: pointer;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-sidebar-menu-item.has-submenu .portal-sidebar-menu-item-arrow {
    margin-left: auto;
    font-size: var(--font-size-caption);
    color: #666;
    display: inline-block;
    flex-shrink: 0;
}

/* Rotação da seta é controlada pelo CSS em icons.css */

.portal-sidebar-submenu.collapsed {
    display: none;
}

/* Section Institucional */
.portal-sidebar-institutional {
    background-color: #ddd;
    padding: 1.5rem;
    margin-top: auto;
}

.portal-sidebar-institutional-title {
    font-family: var(--font-family-base);
    font-weight: 600;
    font-size: var(--font-size-caption);
    color: #000;
    margin-bottom: 0.5rem;
}

.portal-sidebar-institutional-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.portal-sidebar-institutional-links a {
    color: #000;
    text-decoration: none;
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-caption);
}

.portal-sidebar-institutional-links a:hover {
    text-decoration: underline;
}

/* Botão Sair */
.portal-sidebar-logout {
    background-color: #474747;
    padding: 0.75rem 1rem;
}

.portal-sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-small);
}

/* Conteúdo Principal */
.portal-home-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: visible; /* Permite que a inclinação do título seja visível */
}

.portal-home-header {
    padding: 1.5rem 2rem; /* Padding uniforme em todos os lados */
    display: flex;
    justify-content: space-between;
    align-items: center; /* Alinha elementos verticalmente ao centro */
    width: 100%;
    box-sizing: border-box;
    background-color: #475569; /* Fundo azul cobre todo o header */
    overflow: visible;
    position: relative;
    gap: 0; /* Sem gap entre elementos */
    color: #fff; /* Cor branca para texto e ícones no header */
}

/* Wrapper do título - apenas container de conteúdo, sem background próprio */
.portal-home-header-title-wrapper {
    /* No fluxo normal do flexbox - não usa position:absolute */
    display: flex;
    align-items: center; /* Centraliza o conteúdo verticalmente */
    background-color: transparent; /* Sem background próprio - herda do header */
    padding: 0; /* Sem padding próprio - header já tem padding */
    line-height: 1; /* Remove espaçamento extra de linha */
    flex: 1; /* Ocupa espaço disponível */
    min-width: 0; /* Permite que o título encolha se necessário */
    box-sizing: border-box;
    /* Sem margens negativas - layout normal do flexbox */
    margin: 0;
}

/* Título dentro da barra azul */
.portal-home-header-title {
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: var(--line-height-h1);
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
    /* Mantém o texto reto */
    transform: none;
    white-space: nowrap;
}

/* Triângulo na extremidade direita usando ::after - REMOVIDO */
.portal-home-header-title-wrapper::after {
    display: none;
}

/* Garante que o texto não seja afetado pela inclinação */
.portal-home-header-title-wrapper > * {
    position: relative;
    z-index: 1;
}

/* Container de ações - alinhado à direita no fluxo normal */
.portal-home-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1; /* Mesmo nível do title-wrapper - não sobrepõe */
    flex-shrink: 0; /* Não encolhe - mantém tamanho dos elementos internos */
    margin-left: auto; /* Empurra para a direita */
}

/* Ícone de Notificação - Layout Correto e Estável
 * Arquitetura: Sistema utiliza dois ícones SVG (notificacao-on/off) + bolinha vermelha
 * - notificacao-on: SVG ativo + bolinha vermelha no canto superior direito do ícone (apenas bolinha, sem número)
 * - notificacao-off: SVG inativo, sem bolinha
 * - Container com dimensões fixas controla tamanho visual
 * - SVG usa apenas viewBox (sem width/height fixos)
 * - Cor controlada via CSS (stroke="currentColor")
 */
.portal-home-notification {
    /* Container flex para alinhamento vertical perfeito com outros itens do header */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Dimensões fixas (30px) para consistência visual e altura estável do header */
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    
    /* Sem background - apenas o ícone */
    background-color: transparent;
    
    /* Sem padding interno - container controla dimensões */
    padding: 0;
    
    /* Não usa position:absolute - mantém fluxo normal do layout */
    position: relative;
    box-sizing: border-box;
    
    /* Remove qualquer estilo inline conflitante */
    text-decoration: none;
    cursor: pointer;
    
    /* Garante que não há overflow ou aumento de altura */
    flex-shrink: 0;
    overflow: hidden;
}

/* Container interno para o SVG - garante que SVG ocupa 100% */
.portal-home-notification-icon {
    /* Container flex para centralizar SVG */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Ocupa 100% do container pai (.portal-home-notification) */
    width: 100%;
    height: 100%;
    
    /* Remove espaço de linha do inline-block */
    font-size: 0;
    line-height: 0;
}

/* SVG dentro do ícone - ocupa 100% do container usando apenas viewBox */
.portal-home-notification-icon svg {
    /* SVG ocupa 100% do container interno */
    width: 100%;
    height: 100%;
    display: block;
    
    /* Garante que SVG não estoura o container */
    max-width: 100%;
    max-height: 100%;
    
    /* Cor controlada via CSS - SVG usa stroke="currentColor" */
    /* Herda color do header (.portal-home-header) que é #fff */
    color: inherit; /* Herda cor branca do header */
}

/* Estados notificacao-on e notificacao-off controlados apenas por classe CSS */
/* Se necessário ajustar cor por estado, usar: */
/* .portal-home-notification.notificacao-on .portal-home-notification-icon svg { color: #fff; } */
/* .portal-home-notification.notificacao-off .portal-home-notification-icon svg { color: #ccc; } */

/* Bolinha vermelha no canto superior direito do sino quando há notificações não lidas (apenas bolinha, sem número) */
.portal-home-notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e53935;
    display: block;
    pointer-events: none;
}

/* Badge antigo (com número) não utilizado - mantido oculto se existir no DOM */
.portal-home-notification-badge {
    display: none !important;
}

/* Breadcrumb */
.portal-home-breadcrumb {
    background-color: rgba(171, 171, 171, 0.2);
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portal-breadcrumb-icon {
    font-size: var(--font-size-body);
}

.portal-breadcrumb-text {
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-small);
    color: #000;
}

.portal-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: color 0.2s;
}

.portal-breadcrumb-link:hover {
    color: #000;
}

.portal-breadcrumb-link .portal-breadcrumb-text {
    color: inherit;
}

.portal-breadcrumb-separator {
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-small);
    color: #000;
    margin: 0 0.25rem;
}

/* Conteúdo */
.portal-home-content {
    flex: 1;
    padding: 1rem 2rem;
    overflow-y: auto;
}

.portal-home-content .ancord-wrap {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    max-width: calc(100% - 0px);
}

.portal-home-section-header {
    margin-bottom: 2rem;
}

.portal-home-section-title {
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: #000;
    margin-bottom: 0.5rem;
}

.portal-home-section-date {
    font-family: var(--font-family-base);
    font-weight: 400;
    font-size: var(--font-size-caption);
    color: #000;
}

/* Feed de Publicações */
.portal-home-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portal-home-post {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    padding-left: calc(80px + 20px); /* Largura da barra (80px) + distância do texto (20px) */
    background: transparent;
    position: relative;
}

.portal-home-post-clickable {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.portal-home-post-clickable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.portal-home-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.portal-home-post-title {
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: var(--font-size-caption);
    line-height: var(--line-height-caption);
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

/* Título do post dentro de article na página individual */
.portal-home-content > article .portal-home-post-title {
    font-size: 0.8rem;
}

.portal-home-post-group {
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-caption);
    color: #000;
}

.portal-home-post-badge {
    background-color: rgba(255, 246, 0, 0.2);
    border-radius: 30px;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-family-base);
    font-weight: 800;
    font-size: var(--font-size-caption);
    color: #ff9500;
}

.portal-home-post-description {
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: 0.9rem;
    line-height: var(--line-height-small);
    color: #000;
    margin-bottom: 1rem;
}

.portal-home-post-attachments {
    margin-top: 1rem;
    padding-top: 1rem;
}

.portal-home-post-attachments-title {
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: var(--line-height-caption);
    text-transform: uppercase;
    color: #000;
    margin-bottom: 0.5rem;
}

.portal-home-post-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.portal-home-post-attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000;
    text-decoration: underline;
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-caption);
}

.portal-attachment-icon {
    font-size: var(--font-size-caption);
}

.portal-home-post-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.portal-home-post-date {
    font-family: var(--font-family-base);
    font-weight: 400;
    font-size: var(--font-size-caption);
    color: #000;
}

.portal-home-post-date-header {
    font-family: var(--font-family-base);
    font-weight: 400;
    font-size: 0.9rem;
    color: #000;
}

/* Campo de busca #portal-search-input */
#portal-search-input {
    padding: 0.5rem 1rem 0.5rem 3rem !important;
    font-size: 0.9rem !important;
}

.portal-home-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

/* Grid de Grupos */
.portal-home-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portal-home-group-card {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    background: transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.portal-home-group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portal-home-group-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portal-home-group-header {
    margin-bottom: 1rem;
}

.portal-home-group-name {
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: var(--font-size-body);
    color: #000;
    margin: 0;
}

.portal-home-group-description {
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-small);
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portal-home-group-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.portal-home-group-tipo {
    font-family: var(--font-family-base);
    font-weight: 500;
    font-size: var(--font-size-caption);
    color: #666;
}

/* Card de Informações do Grupo */
.portal-home-group-info-card {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: transparent;
    margin-bottom: 2rem;
    overflow: hidden;
}

.portal-home-group-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: #f1f1f1;
}

.portal-home-group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-home-group-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-home-group-info-content {
    padding: 2rem;
}

.portal-home-group-info-section {
    margin-bottom: 2rem;
}

.portal-home-group-info-section:last-child {
    margin-bottom: 0;
}

.portal-home-group-info-title {
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: 1rem;
    line-height: var(--line-height-caption);
    text-transform: uppercase;
    color: #000;
    margin-bottom: 0.1rem;
}

.portal-home-group-info-text {
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: 0.9rem;
    color: #000;
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.portal-home-group-info-meta {
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-caption);
    color: #000;
    margin-top: 0.5rem;
}

.portal-home-group-members {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.portal-home-group-member-avatar {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-home-group-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-home-group-member-avatar-more {
    background-color: #474747;
    color: #fff;
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: var(--font-size-caption);
}

.portal-home-group-link {
    color: #000;
    text-decoration: none;
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: var(--font-size-caption);
}

.portal-home-group-link:hover {
    text-decoration: underline;
}

/* Link dos termos do grupo: detalhe em bold, underline, 0.8rem */
.portal-home-group-link-termos {
    font-weight: bold !important;
    text-decoration: underline !important;
    font-size: 0.8rem !important;
}

/* Filtros */
.portal-home-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Garante que inputs e botões na mesma linha tenham a mesma altura */
.portal-home-filters > * {
    height: 36px;
    box-sizing: border-box;
}

.portal-home-filters input[type="text"] {
    height: 36px;
    box-sizing: border-box;
}

/* Regra global: garante altura consistente de botões e inputs em containers flex horizontais */
div[style*="display: flex"]:not([style*="flex-direction: column"]) button:not([style*="position: absolute"]):not([style*="position:absolute"]):not(.ancord-btn-circle),
div[style*="display: flex"]:not([style*="flex-direction: column"]) a.ancord-btn,
div[style*="display: flex"]:not([style*="flex-direction: column"]) .ancord-btn:not(.ancord-btn-circle),
div[style*="display: flex"]:not([style*="flex-direction: column"]) .ancord-button:not(.ancord-btn-circle),
div[style*="display: flex"]:not([style*="flex-direction: column"]) .portal-button,
.portal-home-header-actions button:not(.ancord-btn-circle),
.portal-home-header-actions .ancord-button:not(.ancord-btn-circle),
.portal-home-header-actions .portal-button,
.portal-home-header-actions a.ancord-btn {
    height: 36px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Botões circulares de remoção — dimensões fixas, não afetados pela regra global */
.ancord-btn-circle {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

/* Garante que inputs em containers flex também tenham altura consistente */
div[style*="display: flex"]:not([style*="flex-direction: column"]) input[type="text"]:not([style*="position: absolute"]):not([style*="position:absolute"]),
.portal-home-header-actions input[type="text"] {
    height: 36px !important;
    box-sizing: border-box !important;
}

.portal-home-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 0.5px solid #000;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-family-base);
    font-weight: 400;
    height: 36px;
    box-sizing: border-box;
    font-size: var(--font-size-caption);
    color: #000;
    transition: background-color 0.2s;
}

.portal-home-filter-btn:hover {
    background-color: #f9f9f9;
}

.portal-home-filter-search {
    background-color: #474747;
    color: #fff;
    border-color: #474747;
}

.portal-home-filter-search:hover {
    background-color: #333;
}

/* Mobile: ajusta altura dos filtros */
@media (max-width: 768px) {
    .portal-home-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .portal-home-filters > * {
        width: 100%;
        height: auto;
        min-height: 44px;
    }
    
    .portal-home-filters input[type="text"] {
        height: 44px;
        min-height: 44px;
    }
    
    .portal-home-filter-btn {
        height: 44px;
        min-height: 44px;
    }
    
    #portal-date-filter {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
    }
}

.portal-home-filter-icon {
    font-size: var(--font-size-small);
}

.portal-home-filter-text {
    font-size: var(--font-size-caption);
}

/* Barra lateral dos posts */
.portal-home-post-barra {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    border-radius: 10px 0 0 10px;
}

/* Mobile Header - oculto em desktop */
.portal-mobile-header {
    display: none;
}

/* Responsivo */
@media (max-width: 768px) {
    /* Mobile: Sidebar vira drawer oculto */
    .portal-home-layout {
        flex-direction: column;
    }

    .portal-sidebar {
        width: 265px;
        max-width: 265px;
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        background-color: #fff;
        border-right: 1px solid rgba(0, 0, 0, 0.2);
    }

    .portal-sidebar.mobile-open {
        left: 0;
    }

    .portal-sidebar-nav {
        max-height: none;
        overflow-y: auto;
        flex: 1;
    }

    /* Mobile Header - Branco com logo pequena */
    .portal-mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 41px;
        background-color: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 0.5rem;
        z-index: 999;
    }

    .portal-mobile-header-logo {
        height: 30px;
        width: auto;
        max-width: 87.5px;
    }

    .portal-mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .portal-mobile-menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .portal-mobile-menu-toggle-icon {
        font-size: var(--font-size-h2);
        color: #474747;
    }

    .portal-home-header {
        display: none;
    }

    .portal-home-header-title {
        font-size: var(--font-size-h2);
    }

    .portal-home-header-actions {
        width: auto;
    }

    .portal-home-notification-icon {
        font-size: 1.5rem; /* Aumentado para melhor visibilidade em mobile */
    }

    .portal-home-notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: var(--font-size-caption);
        top: -3px;
        right: -3px;
    }

    .portal-home-breadcrumb {
        flex-wrap: wrap;
        padding: 0.25rem 0.5rem;
        font-size: var(--font-size-caption);
        background-color: #eeeeee;
    }

    .portal-breadcrumb-icon {
        font-size: var(--font-size-caption);
    }

    .portal-breadcrumb-text {
        font-size: var(--font-size-caption);
    }

    .portal-home-groups-grid {
        grid-template-columns: 1fr;
    }

    .portal-home-feed {
        gap: 1rem;
    }

    .portal-home-post {
        padding: 1rem;
        margin-left: 0;
    }

    .portal-home-post-badge {
        font-size: var(--font-size-caption);
        padding: 0.15rem 0.5rem;
    }

    .portal-home-post-description {
        font-size: var(--font-size-caption);
    }

    .portal-home-post-title {
        font-size: var(--font-size-caption);
    }

    .portal-home-post-group {
        font-size: var(--font-size-caption);
    }

    .portal-home-post-attachments-title {
        font-size: var(--font-size-caption);
    }

    .portal-home-post-attachment-item {
        font-size: var(--font-size-caption);
    }

    .portal-home-post-date {
        font-size: var(--font-size-caption);
    }

    .portal-home-post-barra {
        display: none;
    }

    .portal-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .portal-home-content {
        padding: 1rem;
    }

    .portal-home-section-title {
        font-size: var(--font-size-small);
    }

    .portal-home-section-date {
        font-size: var(--font-size-caption);
    }

    /* Footer mobile */
    .portal-footer-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .portal-footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ===== Estilos Admin ===== */
.admin-page {
    background-color: #f9f9f9;
}

.admin-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.admin-nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Page Header */
.portal-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 0;
}

.portal-page-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.portal-page-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

/* Buttons */
.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: var(--font-size-body);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 36px;
    box-sizing: border-box;
    line-height: 1;
}

.portal-button:hover {
    background-color: #333;
}

.portal-button-primary {
    background-color: #000;
}

.portal-button-secondary {
    background-color: #666;
}

/* Form Inline */
.portal-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.portal-form-inline .portal-form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

/* Tables */
.portal-table-responsive {
    overflow-x: auto;
}

/* Container de tabela com scroll limitado a 10 linhas */
.ancord-conteudos-table-container {
    max-height: 500px; /* Altura para aproximadamente 10 linhas + cabeçalho */
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 1rem;
}

.ancord-conteudos-table-container .portal-table {
    margin: 0;
    border-radius: 0;
    border: none;
}

.ancord-conteudos-table-container .portal-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f5f5f5;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.ancord-conteudos-table-container .portal-table thead th {
    background-color: #f5f5f5;
    font-size: 0.9rem;
}

.ancord-conteudos-table-container .portal-table td {
    font-size: 0.8rem;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.portal-table thead {
    background-color: #f5f5f5;
}

.portal-table th {
    padding: 1rem;
    text-align: left;
    font-family: var(--font-family-base);
    font-size: 0.9rem;
    line-height: var(--line-height-caption);
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid #e0e0e0;
    color: #000;
}

.portal-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    font-family: var(--font-family-base);
    font-size: 0.8rem;
    line-height: var(--line-height-body);
    font-weight: 300;
    color: #000;
}

.portal-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Badges */
.portal-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: var(--font-size-small);
    font-weight: 500;
}

.portal-badge-ativo {
    background-color: #d4edda;
    color: #155724;
}

.portal-badge-pendente {
    background-color: #fff3cd;
    color: #856404;
}

.portal-badge-inativo {
    background-color: #f8d7da;
    color: #721c24;
}

/* Stats List */
.portal-stats-list {
    list-style: none;
}

.portal-stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.portal-stats-list li:last-child {
    border-bottom: none;
}

.portal-stat-label {
    color: #666;
}

.portal-stat-value {
    font-weight: 500;
}

/* Links */
.portal-link {
    color: #0066cc;
    text-decoration: none;
}

.portal-link:hover {
    text-decoration: underline;
}

.portal-meta {
    color: #666;
    font-size: var(--font-size-small);
    margin-left: 0.5rem;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .portal-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .portal-form-inline {
        flex-direction: column;
    }

    .portal-form-inline .portal-form-group {
        width: 100%;
        min-width: auto;
    }

    .portal-table-responsive {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== TABELAS ANCORD ===== */
.ancord-table-responsive {
    overflow-x: auto;
    width: 100%;
}

.ancord-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ancord-table thead {
    background-color: rgba(51, 65, 85, 0.1);
}

.ancord-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-caption);
    color: #1E1E1E;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: var(--font-size-caption);
    color: #1E1E1E;
}

.ancord-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.ancord-table tbody tr:last-child td {
    border-bottom: none;
}

.ancord-table-empty {
    text-align: center;
    padding: 2rem !important;
    color: #666;
    font-style: italic;
}

/* Filtro de busca estilo imagem */
.ancord-filter-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.ancord-form-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ancord-form-inline .ancord-form-group {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ancord-form-label {
    font-size: var(--font-size-caption);
    font-weight: 500;
    color: #1E1E1E;
    margin: 0;
}

.ancord-form-input {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: var(--font-size-caption);
    min-width: 300px;
}

.ancord-form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* ===== PADRÃO ANCORD-WRAP (NOVO) ===== */
.ancord-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Ajuste de espaçamento para páginas do portal */
.portal-main-content {
    padding: 0;
}

.portal-main-content .ancord-wrap {
    padding-top: 1rem;
}

/* Reduz espaçamento do breadcrumb nas páginas do portal */
.portal-main-content nav.portal-breadcrumb {
    margin-bottom: 1rem;
    margin-top: 0;
}

/* Desktop - visível apenas em telas maiores */
.ancord-desktop {
    display: block;
}

.ancord-mobile {
    display: none;
}

/* Mobile - visível apenas em telas menores */
@media (max-width: 768px) {
    .ancord-desktop {
        display: none;
    }

    .ancord-mobile {
        display: block;
    }
}

/* Footer padrão */
.portal-footer {
    background-color: #292929 !important; /* Cor especificada: #292929 */
    color: #999 !important;
    font-size: var(--font-size-small) !important;
    padding: 1rem 0 !important; /* Padding ajustado: 1rem top/bottom */
    margin-top: 0 !important;
    text-align: center !important; /* Centralizado conforme especificação */
    width: 100% !important;
}

.portal-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.portal-footer-text {
    text-align: center;
    flex: 1;
}

.portal-footer-social {
    display: flex;
    gap: 1rem;
}

.portal-footer-social a {
    color: #cfcfcf;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portal-footer-social a:hover {
    color: #ffffff;
}

.portal-footer-social a .ancord-icon {
    width: 24px;
    height: 24px;
}

.portal-footer-social a .ancord-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.portal-footer-social a .ancord-icon svg path {
    fill: currentColor;
}

@media (max-width: 768px) {
    .portal-footer-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .portal-footer-text {
        order: 2;
    }
    
    .portal-footer-social {
        order: 1;
        justify-content: center;
    }
}

/* ===== Notificações ===== */
.ancord-notificacoes-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ancord-notificacao-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: background-color 0.2s;
}

.ancord-notificacao-item:hover {
    background-color: #f9f9f9;
}

.ancord-notificacao-item:last-child {
    border-bottom: none;
}

.ancord-notificacao-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ancord-notificacao-titulo {
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    font-weight: 700;
    color: #000;
    margin: 0;
}

.ancord-notificacao-link {
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.ancord-notificacao-link:hover {
    color: #00cdff;
}

.ancord-notificacao-mensagem {
    font-size: var(--font-size-small);
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.ancord-notificacao-data {
    font-size: var(--font-size-caption);
    color: #999;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .ancord-notificacao-item {
        padding: 1rem;
    }

    .ancord-notificacao-titulo {
        font-size: 0.9375rem;
    }

    .ancord-notificacao-mensagem {
        font-size: 0.8125rem;
    }
}

/* Dashboard */
.ancord-dashboard-header {
    margin-bottom: 2rem;
}

.ancord-dashboard-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

.ancord-dashboard-content {
    margin-top: 2rem;
}

/* Mobile Header */
.ancord-mobile-header {
    margin-bottom: 1rem;
}

.ancord-mobile-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

/* Seção */
.ancord-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.ancord-section-title {
    font-family: var(--font-family-base);
    font-size: 1.2rem;
    line-height: var(--line-height-h3);
    font-weight: 400;
    text-transform: none;
    color: #000;
    margin: 0 0 0.5rem 0;
}

.ancord-section-date {
    font-size: var(--font-size-small);
    color: #666;
    margin: 0;
    text-align: left;
}

/* Feed */
.ancord-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Post */
.ancord-post {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    background: #fff;
}

.ancord-post-clickable {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ancord-post-clickable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ancord-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ancord-post-title {
    font-family: var(--font-family-base);
    font-size: 1rem;
    line-height: var(--line-height-body);
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

.ancord-post-group {
    font-size: var(--font-size-small);
    color: #666;
}

.ancord-post-badge {
    background-color: rgba(255, 246, 0, 0.2);
    color: #ff9500;
    font-size: var(--font-size-caption);
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    margin-left: auto;
}

.ancord-post-badge-expirado {
    background-color: #e8e8e8;
    color: #555;
}

.ancord-post-content {
    margin-bottom: 1rem;
}

.ancord-post-description {
    font-size: var(--font-size-small);
    color: #000;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.ancord-post-attachments {
    margin-top: 1rem;
}

.ancord-post-attachments-title {
    font-family: var(--font-family-base);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: var(--line-height-caption);
    text-transform: capitalize;
    color: #000;
    margin: 0 0 0.5rem 0;
}

.ancord-post-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ancord-post-attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-caption);
    color: #000;
    text-decoration: underline;
}

/* Anexos horizontais para posts individuais */
.ancord-post-attachments-outside {
    margin-top: 1.5rem;
}

.ancord-post-attachments-list-horizontal {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem;
    align-items: stretch;
}

.ancord-post-attachment-item-horizontal {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    padding-left: calc(80px + 20px); /* Largura da barra (80px) + distância do texto (20px) */
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: #000;
    width: 100% !important;
    position: relative;
    background: transparent;
    cursor: default;
}

.ancord-post-attachment-item-horizontal::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background-color: #F1F1F1;
    border-radius: 10px 0 0 10px;
}

.ancord-download-button {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    background: #424242;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s;
    display: inline-block;
    text-decoration: none;
    margin-left: auto;
    min-width: 120px;
    text-align: center;
    box-sizing: border-box;
}

.ancord-download-button:hover {
    background: #333;
}

.ancord-post-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-post-date {
    font-size: 0.8rem;
    color: #666;
}

.ancord-empty {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Mobile Content */
.ancord-mobile-content {
    margin-top: 1rem;
}

/* Groups */
.ancord-group-header {
    margin-bottom: 0;
    padding: 1.5rem 1.5rem 0.75rem 1.5rem;
}

.ancord-group-card:has(.ancord-group-image) .ancord-group-header {
    padding-top: 1rem;
}

.ancord-group-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

.ancord-group-content {
    margin-top: 2rem;
}

.ancord-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ancord-groups-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.ancord-group-card {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 0;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.ancord-group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ancord-group-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ancord-group-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 0;
}

.ancord-group-capa {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ancord-group-name {
    font-size: var(--font-size-h4);
    font-weight: 600;
    color: #000;
    margin: 0 0 0.75rem 0;
}

.ancord-group-description {
    font-size: var(--font-size-small);
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 0 1.5rem;
}

.ancord-group-footer {
    margin-top: 1rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-group-tipo {
    font-size: var(--font-size-caption);
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
}

/* Members List */
.ancord-members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ancord-members-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

.ancord-members-content {
    margin-top: 2rem;
}

.ancord-members-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.ancord-members-table thead {
    background: rgba(51,65,85,0.2);
}

.ancord-members-table tbody {
    background: rgba(249,249,249,0.5);
}

.ancord-members-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ancord-members-table th {
    padding: 0.5rem;
    text-align: left;
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: var(--line-height-caption);
    text-transform: uppercase;
    color: #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Input de busca padronizado */
.ancord-search-input {
    flex: 1;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 0.5px solid #474747;
    border-radius: 50px;
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    line-height: var(--line-height-caption);
    font-weight: 300;
    height: 36px;
    box-sizing: border-box;
}

.ancord-search-container {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.ancord-search-form {
    display: flex;
    gap: 0.25rem;
    position: relative;
}

.ancord-search-button {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.ancord-members-table td {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: 0.9rem;
    line-height: var(--line-height-body);
    color: #000;
}

.ancord-members-table td a {
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: 0.9rem;
    line-height: var(--line-height-body);
    color: #000;
    text-decoration: none;
}

.ancord-members-table tbody tr:last-child td {
    border-bottom: none;
}

.ancord-members-table tbody tr:hover {
    background: #f9f9f9;
}

.ancord-members-actions {
    display: flex;
    gap: 0.5rem;
}

.ancord-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    line-height: var(--line-height-caption);
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    height: 36px;
    box-sizing: border-box;
}

.ancord-btn-primary {
    background-color: #00cdff;
    color: #fff;
    border: none;
}

.ancord-btn-primary:hover {
    background-color: #0052a3;
}

.ancord-btn-secondary {
    background-color: #fff;
    color: #000;
    border: 0.5px solid #000;
}

.ancord-btn-secondary:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.ancord-btn-edit {
    background-color: transparent;
    color: #0066cc;
    border: 1px solid #0066cc;
}

.ancord-btn-edit:hover {
    background-color: #0066cc;
    color: #fff;
}

/* Botões dentro de tabelas */
table .ancord-btn {
    min-width: auto;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-small);
}

/* Modal */
.ancord-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.ancord-modal.active,
.ancord-modal[style*="flex"] {
    display: flex !important;
}

.ancord-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.ancord-modal-content {
    background-color: #fff;
    margin: auto;
    border-radius: 10px !important;
    max-width: 600px;
    width: 90%;
    position: relative;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    overflow: hidden;
}

.ancord-modal-scroll {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
}

.ancord-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ancord-modal-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

.ancord-modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-h2);
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ancord-modal-close:hover {
    color: #000;
}

.ancord-modal-body {
    margin-bottom: 1.5rem;
}

.ancord-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

@media (max-width: 768px) {
    .ancord-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ancord-post {
        padding: 1rem;
    }

    .ancord-groups-grid {
        grid-template-columns: 1fr;
    }

    .ancord-members-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ancord-members-table {
        font-size: var(--font-size-caption);
    }

    .ancord-members-table th,
    .ancord-members-table td {
        padding: 0.5rem;
    }

    .ancord-modal-content {
        padding: 1rem;
        width: 95%;
    }
}

/* ===== ASSOCIADAS - Componentes específicos ===== */

/* Cards de estatísticas */
.ancord-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.ancord-stat-card {
    background-color: #fff;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ancord-stat-label {
    font-size: var(--font-size-caption);
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.ancord-stat-value {
    font-size: var(--font-size-h1);
    font-weight: 800;
    color: #334155;
}

.ancord-stats-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.ancord-stat-card-mobile {
    background-color: #fff;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Card de detalhes */
.ancord-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.ancord-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ancord-detail-grid .ancord-detail-item {
    gap: 0.1rem;
}

.ancord-detail-grid .ancord-detail-value {
    margin-top: 0;
}

.ancord-detail-grid .ancord-detail-label {
    margin-bottom: 0;
}

.ancord-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ancord-detail-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 0;
}

.ancord-detail-value {
    font-size: 0.9rem;
    color: #000;
    font-weight: 400;
    margin-top: 0;
}

.ancord-card .ancord-detail-item {
    gap: 0.1rem;
}

.ancord-card .ancord-detail-value {
    margin-top: 0;
}

.ancord-card .ancord-detail-label {
    margin-bottom: 0;
}

.ancord-detail-item-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-detail-item-mobile:last-child {
    border-bottom: none;
}

/* Barra de ações */
.ancord-actions-bar {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.ancord-button-danger {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-caption);
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-family-base);
    text-transform: uppercase;
}

.ancord-button-danger:hover {
    background-color: #000;
    color: #fff;
}

.ancord-btn-danger {
    background-color: #d32f2f;
    color: #fff;
    border: 1px solid #d32f2f;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-caption);
    font-weight: 600;
    cursor: pointer;
    height: 36px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
}

.ancord-btn-danger:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
}

.ancord-btn-danger:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Container de gráfico */
.ancord-chart-container {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 1rem;
    text-align: center;
}

.ancord-chart-placeholder {
    max-width: 100%;
    height: auto;
}

.ancord-chart-container-mobile {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
}

/* Cards mobile para lista */
.ancord-card-mobile {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ancord-card-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #000;
}

.ancord-card-meta {
    font-size: var(--font-size-caption);
    color: #666;
    margin-bottom: 0.25rem;
}

.ancord-card-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Botões padrão */
.ancord-button {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    line-height: var(--line-height-caption);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    height: 36px;
    box-sizing: border-box;
    border: 1px solid transparent;
    transition: all 0.2s;
    height: 36px;
    box-sizing: border-box;
    line-height: 1;
}

.ancord-button-primary {
    background-color: #00cdff;
    color: #fff;
    border: none;
    font-family: var(--font-family-base);
    font-weight: 700;
    text-transform: uppercase;
}

.ancord-button-primary:hover {
    background-color: #00b8e6;
    border-color: #00b8e6;
}

.ancord-button-secondary {
    background-color: #fff;
    color: #000;
    border: 0.5px solid #000;
    border-radius: 50px;
    font-family: var(--font-family-base);
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.ancord-button-secondary:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.ancord-button-link {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.ancord-button-link:hover {
    color: #0056b3;
}

.ancord-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ancord-stats-grid {
        grid-template-columns: 1fr;
    }

    .ancord-detail-grid {
        grid-template-columns: 1fr;
    }

    .ancord-actions-bar {
        flex-direction: column;
    }

    .ancord-chart-container {
        padding: 1rem;
    }

    .ancord-form-actions {
        flex-direction: column-reverse;
    }

    .ancord-button {
        width: 100%;
    }
}

/* ===== FORMULÁRIOS PADRONIZADOS (FIGMA) ===== */

/* Modal melhorado - mais espaço e melhor layout */
.ancord-modal[style*="block"] {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.ancord-modal-content {
    max-width: 960px;
    width: 100%;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    overflow: hidden;
}

.ancord-modal-content .ancord-modal-scroll {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2.5rem;
}

/* Título do modal */
.ancord-modal-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Botão fechar do modal */
.ancord-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: var(--font-size-h1);
    line-height: 1;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.ancord-modal-close:hover {
    background-color: #f5f5f5;
    color: #000;
}

/* Seções de formulário */
.ancord-form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ancord-form-section-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Group - Padrão Figma */
.ancord-form-group {
    margin-bottom: 1rem;
}

.ancord-form-group label {
    display: block;
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    line-height: var(--line-height-caption);
    font-weight: 700;
    color: #9c9c9c;
    margin-bottom: 0.5rem;
    text-transform: none;
}

/* Alinhamento de labels em grid - garante que labels fiquem alinhados com os campos */
.ancord-form-grid .ancord-form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Garante que todos os grupos tenham mesma largura */
}

.ancord-form-grid .ancord-form-group label {
    margin-bottom: 0.5rem;
    min-height: 1.5rem; /* Garante altura mínima consistente para labels */
    display: flex;
    align-items: flex-start; /* Alinha texto do label no topo */
}

.ancord-form-group input[type="text"],
.ancord-form-group input[type="email"],
.ancord-form-group input[type="tel"],
.ancord-form-group input[type="number"],
.ancord-form-group input[type="password"],
.ancord-form-group textarea,
.ancord-form-group select {
    width: 100%;
    height: 39px;
    background-color: #f9f9f9;
    border: none;
    border-radius: 10px;
    padding: 0 1rem;
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    font-weight: 400;
    color: #000;
    transition: all 0.2s;
}

.ancord-form-group input:focus,
.ancord-form-group textarea:focus,
.ancord-form-group select:focus {
    outline: 2px solid #00cdff;
    outline-offset: -2px;
    background-color: #fff;
}

.ancord-form-group textarea {
    min-height: 80px;
    padding: 0.75rem 1rem;
    resize: vertical;
}

.ancord-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Campos em grid (lado a lado) */
.ancord-form-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: start; /* Alinha todos os itens no topo para que labels fiquem alinhados */
}

.ancord-form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ancord-form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ancord-form-grid-2-1-1 {
    grid-template-columns: 2fr 1fr 1fr;
}

/* Títulos de seção dentro do modal */
.ancord-modal-content h3 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    font-weight: 700;
    color: #000;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);

    font-weight: 700;
    text-transform: uppercase;
    line-height: var(--line-height-small);
}

.ancord-modal-content h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Ações do formulário (botões) */
.ancord-form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive - Formulários */
@media (max-width: 768px) {
    .ancord-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-height: 95vh;
    }

    .ancord-modal-close {
        top: 1rem;
        right: 1rem;
    }

    .ancord-form-grid-2,
    .ancord-form-grid-3,
    .ancord-form-grid-2-1-1 {
        grid-template-columns: 1fr;
    }

    .ancord-form-actions {
        flex-direction: column-reverse;
    }

    .ancord-form-actions .ancord-button {
        width: 100%;
    }
}

/* Melhoria nos campos de visualização (detail view) */
.ancord-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ancord-detail-label {
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    font-weight: 700;
    color: #9c9c9c;
}

.ancord-detail-value {
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    font-weight: 400;
    color: #000;
}

/* Cards de detalhes */
.ancord-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Grid de detalhes */
.ancord-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .ancord-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===== Questionários ===== */
.ancord-questionarios-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ancord-questionario-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    background-color: #fff;
}

.ancord-questionario-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.ancord-questionario-header h3 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h4);
    font-weight: 800;
    color: #000;
    flex: 1;

    font-weight: 700;
    text-transform: uppercase;
    line-height: var(--line-height-h4);
}

.ancord-badge-respondido,
.ancord-badge-pendente {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--font-size-caption);
    font-weight: 600;
    white-space: nowrap;
}

.ancord-badge-respondido {
    background-color: #4caf50;
    color: #fff;
}

.ancord-badge-pendente {
    background-color: #ff9800;
    color: #fff;
}

.ancord-badge-expirado {
    background-color: #e8e8e8;
    color: #555;
}

.ancord-questionario-descricao {
    color: #666;
    font-size: var(--font-size-small);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.ancord-questionario-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-caption);
    color: #9c9c9c;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-questionario-grupo {
    font-weight: 600;
}

.ancord-questionario-actions {
    display: flex;
    gap: 1rem;
}

.ancord-questionario-view {
    padding: 0;
}

.ancord-questionario-view h2 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h2);
    font-weight: 800;
    color: #000;
    margin-bottom: 1rem;

    font-weight: 700;
    text-transform: uppercase;
    line-height: var(--line-height-h2);
}

/* Barra lateral para questões de questionários */
.ancord-questao-item {
    position: relative;
    padding-left: calc(80px + 20px);
}

.ancord-questao-item-barra {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    border-radius: 10px 0 0 10px;
    background-color: #FF6B01;
}

.ancord-questao-content {
    position: relative;
}

.ancord-respostas-view {
    margin-top: 2rem;
}

.ancord-respostas-view h3 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h4);
    font-weight: 800;
    color: #000;
    margin-bottom: 1.5rem;

    font-weight: 700;
    text-transform: uppercase;
    line-height: var(--line-height-h4);
}

.ancord-resposta-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-resposta-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ancord-resposta-pergunta {
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    font-weight: 600;
    color: #000;
    margin-bottom: 0.75rem;
}

.ancord-resposta-resposta {
    font-size: var(--font-size-small);
    color: #333;
    line-height: 1.6;
    padding: 0.75rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.ancord-resposta-vazia {
    color: #999;
    font-style: italic;
}

.ancord-radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.ancord-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: var(--font-size-small);
}

.ancord-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .ancord-questionario-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ancord-questionario-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ancord-questionario-actions {
        flex-direction: column;
    }

    .ancord-questionario-actions .ancord-button {
        width: 100%;
    }

    .ancord-radio-group {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Botão de seleção de grupos */
.ancord-grupos-select-button {
    width: 100%;
    height: 39px;
    background-color: #f9f9f9;
    border: none;
    border-radius: 10px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    font-weight: 400;
    color: #666;
    text-align: left;
}

.ancord-grupos-select-button:hover {
    background-color: #f0f0f0;
}

.ancord-grupos-select-button:focus {
    outline: 2px solid #00cdff;
    outline-offset: -2px;
    background-color: #fff;
}

.ancord-grupos-select-button span:first-child {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Lista de grupos no modal */
.ancord-grupos-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ancord-grupo-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 5px;
    border: 1px solid transparent;
}

.ancord-grupo-checkbox-item:hover {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.ancord-grupo-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #00cdff;
    flex-shrink: 0;
}

.ancord-grupo-checkbox-item span {
    flex: 1;
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    color: #000;
    user-select: none;
}

/* Scrollbar customizada para a lista */
.ancord-grupos-list::-webkit-scrollbar {
    width: 8px;
}

.ancord-grupos-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.ancord-grupos-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.ancord-grupos-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ===== Dashboard Admin ===== */
.ancord-dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.ancord-dashboard-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
}

.ancord-dashboard-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ancord-dashboard-group-label {
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    font-weight: 400;
    color: #000;
    margin: 0;
}

.ancord-dashboard-group-select {
    flex: 1;
    max-width: 300px;
    height: 36px;
    padding: 0 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #fff;
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    color: #000;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.ancord-dashboard-group-name {
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    color: #000;
    font-weight: 400;
}

.ancord-dashboard-group-select:focus {
    outline: 2px solid #00cdff;
    outline-offset: -2px;
    border-color: #00cdff;
}

.ancord-dashboard-section-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    font-weight: 600;
    color: #000;
    margin: 0;
}

.ancord-dashboard-section-title-outside {
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    font-weight: 600;
    color: #000;
    margin: 0 0 1rem 0;
}

/* Grid de Posts */
.ancord-dashboard-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ancord-dashboard-post-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ancord-dashboard-post-card-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
}

.ancord-dashboard-post-type {
    font-family: var(--font-family-base);
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
}

.ancord-dashboard-post-date {
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    color: #666;
}

.ancord-dashboard-post-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.ancord-dashboard-post-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
}

.ancord-dashboard-post-metric-icon {
    font-size: var(--font-size-small);
}

.ancord-dashboard-post-metric-value {
    font-weight: 600;
    color: #000;
    font-size: 1rem;
}

.ancord-dashboard-post-metric-label {
    color: #666;
    font-size: 1rem;
}

/* Resumo de Posts */
.ancord-dashboard-posts-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.ancord-dashboard-posts-summary-icon {
    font-size: var(--font-size-h3);
}

.ancord-dashboard-posts-summary-text {
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    color: #666;
    flex: 1;
}

.ancord-dashboard-posts-summary-value {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: #000;
}

/* Link Ver todos os posts */
.ancord-dashboard-posts-link {
    text-align: left;
}

.ancord-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.ancord-dashboard-link:hover {
    color: #00cdff;
}

.ancord-dashboard-link-arrow {
    font-size: var(--font-size-small);
}

/* Lista de Questionários */
.ancord-dashboard-questionarios-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ancord-dashboard-questionario-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
}

.ancord-dashboard-questionario-card-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.ancord-dashboard-questionario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ancord-dashboard-questionario-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    font-weight: 400;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ancord-dashboard-questionario-separator {
    color: #666;
}

.ancord-dashboard-questionario-group {
    color: #666;
}

.ancord-dashboard-questionario-link {
    color: #000;
    text-decoration: none;
    font-size: var(--font-size-small);
    transition: color 0.2s;
}

.ancord-dashboard-questionario-link:hover {
    color: #00cdff;
}

.ancord-dashboard-questionario-arrow {
    display: inline-block;
}

.ancord-dashboard-questionario-description {
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.ancord-dashboard-questionario-date {
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    color: #666;
}

.ancord-dashboard-questionarios-link {
    text-align: right;
}

/* Estatísticas de Membros */
.ancord-dashboard-members-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ancord-dashboard-member-stat-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 0 0 auto;
    width: auto;
    min-width: 180px;
    max-width: 250px;
}

.ancord-dashboard-member-stat-icon {
    font-size: var(--font-size-body);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.ancord-dashboard-member-stat-label {
    font-family: var(--font-family-base);
    font-size: var(--font-size-caption);
    color: #666;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.ancord-dashboard-member-stat-value {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: #000;
    line-height: 1;
}

/* Gráfico de Membros */
.ancord-dashboard-members-chart {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    height: 300px;
    position: relative;
    width: 100%;
}

.ancord-dashboard-members-chart canvas {
    max-height: 100%;
}

/* Responsividade */
@media (max-width: 1024px) {
    .ancord-dashboard-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ancord-dashboard-container {
        padding: 1rem 0;
    }

    .ancord-dashboard-section {
        padding: 1rem;
    }

    .ancord-dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ancord-dashboard-group-select {
        max-width: 100%;
        width: 100%;
    }

    .ancord-dashboard-posts-grid {
        grid-template-columns: 1fr;
    }

    .ancord-dashboard-members-stats {
        grid-template-columns: 1fr;
    }

    .ancord-dashboard-members-chart {
        height: 250px;
    }

    .ancord-dashboard-questionarios-link {
        text-align: left;
    }
}

/* Página de Todos os Posts do Grupo */
.portal-grupo-posts-header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal-grupo-posts-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h1);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

.portal-grupo-posts-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.portal-grupo-posts-search-form {
    position: relative;
    flex: 0 0 auto;
    width: 250px;
}

.portal-grupo-posts-search-input {
    width: 100%;
    height: 36px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 0.5px solid #474747;
    border-radius: 50px;
    font-size: var(--font-size-caption);
    font-family: var(--font-family-base);
    box-sizing: border-box;
}

/* Placeholders padronizados */
input::placeholder,
textarea::placeholder,
.portal-grupo-posts-search-input::placeholder {
    font-family: var(--font-family-base);
    font-weight: 300;
    text-transform: uppercase;
    color: #999;
}

input[type="text"]::placeholder,
input[type="search"]::placeholder,
input[type="email"]::placeholder {
    font-size: var(--font-size-caption);
    line-height: var(--line-height-caption);
}

.portal-grupo-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.portal-grupo-posts-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.portal-grupo-posts-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portal-grupo-posts-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.portal-grupo-posts-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.portal-grupo-posts-card-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.portal-grupo-posts-card-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--font-size-small);
    color: #666;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.portal-grupo-posts-card-content {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.portal-grupo-posts-card-content p {
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.portal-grupo-posts-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
}

.portal-grupo-posts-card-downloads {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--font-size-small);
    color: #666;
}

.portal-grupo-posts-card-date {
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    color: #666;
}

.portal-grupo-posts-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: var(--font-size-body);
}

/* Responsividade */
@media (max-width: 768px) {
    .portal-grupo-posts-title {
        font-size: var(--font-size-h2);
    }

    .portal-grupo-posts-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-grupo-posts-search-form {
        width: 100%;
    }

    .portal-grupo-posts-search-input {
        flex: 1;
        min-width: 0;
    }

    .portal-grupo-posts-grid {
        grid-template-columns: 1fr;
    }
}

