/* style.css - Visual Idêntico ao LDFP */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --sidebar-bg: #ffffff;
    --sidebar-border: #e5e7eb;
    --sidebar-text: #374151;
    --sidebar-text-muted: #6b7280;
    --sidebar-active-bg: #e0f2f7;
    --sidebar-active-text: #065f46;
    --sidebar-hover-bg: #f3f4f6;

    --main-bg: #f9fafb;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;

    --primary: #1d4ed8;
    --primary-soft: #3b82f6;
    --accent-1: #3b82f6;
    --accent-2: #ef4444;
    --accent-3: #22c55e;
    --accent-4: #f59e0b;

    --text-main: #111827;
    --text-muted: #6b7280;
    --shadow-soft: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);

    --primary-blue: #3b82f6;
    --primary-red: #ef4444;
    --primary-green: #22c55e;
    --primary-orange: #f59e0b;
    --bg-color: var(--main-bg);
    --sidebar-width: 250px;
    --text-color: #555;
    --surface-color: #ffffff;
    --title-color: #1f2937;
    --muted-color: #9ca3af;
}

/* Temas prontos: troque a classe no <body> para testar rapidamente */
body.theme-petroleo {
    --brand-primary: #0f766e;
    --brand-primary-dark: #115e59;
    --brand-primary-soft: #ccfbf1;

    --primary-blue: #0ea5e9;
    --primary-red: #ef4444;
    --primary-green: #10b981;
    --primary-orange: #f59e0b;

    --banner-start: #14b8a6;
    --banner-end: #2dd4bf;
    --banner-text: #0f172a;
    --banner-button-bg: #0f172a;
    --banner-button-text: #ffffff;
}

body.theme-esmeralda {
    --brand-primary: #15803d;
    --brand-primary-dark: #166534;
    --brand-primary-soft: #dcfce7;

    --primary-blue: #2563eb;
    --primary-red: #dc2626;
    --primary-green: #16a34a;
    --primary-orange: #d97706;

    --banner-start: #22c55e;
    --banner-end: #86efac;
    --banner-text: #052e16;
    --banner-button-bg: #14532d;
    --banner-button-text: #ffffff;
}

body.theme-vinho {
    --brand-primary: #9f1239;
    --brand-primary-dark: #881337;
    --brand-primary-soft: #ffe4e6;

    --primary-blue: #1d4ed8;
    --primary-red: #be123c;
    --primary-green: #059669;
    --primary-orange: #ea580c;

    --banner-start: #be123c;
    --banner-end: #fb7185;
    --banner-text: #fff1f2;
    --banner-button-bg: #4c0519;
    --banner-button-text: #ffffff;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--main-bg);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* --- SIDEBAR (MENU LATERAL) --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid var(--sidebar-border);
    overflow-y: auto;
    box-shadow: var(--shadow-soft);
}

/* Failsafe: evita layout duplicado quando algum script antigo injeta shell duas vezes */
body > aside.enterprise-sidebar ~ aside.enterprise-sidebar,
body > aside.legacy-shell-sidebar ~ aside.legacy-shell-sidebar,
body > main.main-content ~ main.main-content,
main.main-content > .enterprise-top-header ~ .enterprise-top-header {
    display: none !important;
}

/* Perfil no Topo do Menu */
.sidebar-profile {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--sidebar-border);
}
.profile-avatar {
    width: 34px; height: 34px;
    background-color: #0f766e;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px;
    flex-shrink: 0;
}
.profile-info h4 { margin: 0; font-size: 12px; color: var(--sidebar-text); text-transform: uppercase; line-height: 1.3; }
.profile-info span { font-size: 11px; color: #2ecc71; display: flex; align-items: center; gap: 4px; }
.profile-info span::before { content: ''; width: 6px; height: 6px; background: #2ecc71; border-radius: 50%; display: inline-block; }

/* Menu Itens */
.menu { padding-top: 6px; }

.menu-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sidebar-text-muted);
    padding: 6px 14px 3px;
    margin-top: 6px;
}

.dropdown-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--sidebar-text);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    transition: 0.15s;
    border-left: 3px solid transparent;
    border-radius: 6px;
    margin: 1px 6px;
    width: calc(100% - 12px);
}
.dropdown-btn:hover { background-color: var(--sidebar-hover-bg); }
.dropdown-btn.active {
    border-left-color: var(--sidebar-active-text);
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
}
.dropdown-btn i.icon-left { width: 16px; margin-right: 8px; font-size: 12px; color: var(--sidebar-text-muted); }
.dropdown-btn.active i.icon-left { color: var(--sidebar-active-text); }
.arrow { font-size: 10px; transition: 0.3s; opacity: 0.5; }
.dropdown-btn.active .arrow { transform: rotate(90deg); opacity: 1; }

/* Sub-menu */
.dropdown-container { display: none; background-color: #fff; }
.dropdown-container.is-open { display: block; }
.dropdown-container a {
    display: block;
    padding: 6px 12px 6px 38px;
    text-decoration: none;
    color: var(--sidebar-text-muted);
    font-size: 12px;
    transition: 0.15s;
    border-radius: 5px;
    margin: 1px 6px;
}
.dropdown-container a:hover { color: var(--primary); background-color: #f9fafb; }
.dropdown-container a.active-link { color: var(--primary); font-weight: 600; background-color: #f0fdf4; }

/* Sub-dropdown (ex: Membros > Ficha Cadastral) */
.sub-dropdown-btn {
    width: calc(100% - 8px);
    background: none;
    border: none;
    text-align: left;
    padding: 6px 10px 6px 34px;
    font-size: 12px;
    color: var(--sidebar-text);
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    transition: 0.15s;
    border-radius: 5px;
    margin: 1px 4px;
}
.sub-dropdown-btn:hover { background-color: var(--sidebar-hover-bg); }
.sub-dropdown-btn.active { color: var(--sidebar-active-text); background-color: var(--sidebar-active-bg); }
.sub-dropdown-btn i.icon-left { width: 14px; margin-right: 6px; font-size: 11px; color: var(--sidebar-text-muted); }
.sub-dropdown-btn.active i.icon-left { color: var(--sidebar-active-text); }
.sub-dropdown-btn .arrow { font-size: 9px; opacity: 0.4; transition: 0.3s; }
.sub-dropdown-btn.active .arrow { transform: rotate(90deg); opacity: 1; }

.sub-dropdown-container { display: none; }
.sub-dropdown-container.is-open { display: block; }
.sub-dropdown-container a {
    display: block;
    padding: 5px 10px 5px 52px;
    text-decoration: none;
    color: var(--sidebar-text-muted);
    font-size: 11px;
    transition: 0.15s;
    border-radius: 4px;
    margin: 1px 4px;
}
.sub-dropdown-container a:hover { color: var(--primary); background-color: #f9fafb; }
.sub-dropdown-container a.active-link { color: var(--primary); font-weight: 600; }

/* Footer do Menu */
.sidebar-footer {
    margin-top: auto;
    padding: 12px 14px;
    font-size: 10px;
    color: var(--sidebar-text-muted);
    border-top: 1px solid var(--sidebar-border);
    text-align: center;
}

/* --- CONTEÚDO PRINCIPAL --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Cabeçalho */
header {
    background: #fff;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    height: 50px;
    box-shadow: var(--shadow-soft);
}
.header-left i { font-size: 18px; color: #555; cursor: pointer; }
.header-right { display: flex; gap: 20px; font-size: 14px; color: var(--text-muted); align-items: center; }

.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.card-resumo {
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.card-resumo:hover { transform: translateY(-3px); }

.card-resumo-top {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    gap: 10px;
}

.card-resumo-icone {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
}

.card-resumo-info { flex: 1; }

.card-resumo-titulo {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.card-resumo-valor {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.card-resumo-bottom {
    border-top: 1px solid var(--card-border);
    padding: 8px 14px;
    font-size: 12px;
    color: var(--primary-soft);
    text-align: left;
    background-color: #fcfcfc;
}

.bg-card-membros { background-color: var(--accent-1); }
.bg-card-visitantes { background-color: var(--accent-2); }
.bg-card-anivers { background-color: var(--accent-3); }
.bg-card-contas { background-color: var(--accent-4); }

.box-membros-recentes {
    margin-top: 8px;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.box-header-controles {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-header-controles i { cursor: pointer; }

/* Área Dashboard */
.dashboard-container { padding: 30px; }
.page-title { font-size: 24px; color: #333; margin-bottom: 20px; }

.brand-logo-container {
    text-align: left;
    margin-bottom: 20px;
}

.brand-logo {
    height: 50px;
}

.upgrade-banner {
    background: linear-gradient(90deg, var(--banner-start) 0%, var(--banner-end) 100%);
    color: var(--banner-text);
    padding: 24px 20px;
    border-radius: 12px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 24px rgba(17, 24, 39, 0.12);
}

.upgrade-banner-content {
    flex: 1;
}

.upgrade-banner-title {
    font-size: 20px;
    font-weight: 700;
}

.upgrade-banner-text {
    font-size: 15px;
    margin-top: 4px;
}

.upgrade-banner-btn {
    background: var(--banner-button-bg);
    color: var(--banner-button-text);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.2);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.upgrade-banner-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* GRID DE CARDS COLORIDOS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card-link {
    text-decoration: none;
}

.card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    height: 100px;
}

.card-icon {
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

/* Cores específicas dos cards */
.bg-blue { background-color: var(--primary-blue); }
.bg-red { background-color: var(--primary-red); }
.bg-green { background-color: var(--primary-green); }
.bg-orange { background-color: var(--primary-orange); }

.card-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-info h3 { margin: 0; font-size: 14px; color: #555; text-transform: uppercase; font-weight: 600; }
.card-info .subtitle { font-size: 13px; color: #888; margin-top: 5px; }

.dashboard-number {
    font-size: 18px;
    color: var(--title-color);
}

/* Seção Membros Recentes */
.content-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.box-header {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #555;
    display: flex;
    justify-content: space-between;
}

.box-header-icon {
    cursor: pointer;
}

.box-body { padding: 20px; text-align: center; color: #777; font-size: 14px; }
.empty-state-text { color: var(--muted-color); }
.btn-ver-todos { color: #333; text-decoration: none; font-weight: 600; font-size: 13px; }

/* --- Lista de membros --- */
.members-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.members-table th,
.members-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.members-table th {
    text-align: left;
    color: #555;
    background: #fafafa;
    font-weight: 600;
}

.form-status {
    margin-left: 12px;
    font-size: 13px;
    color: #15803d;
}

.form-status.error {
    color: #b91c1c;
}

/* --- Filtros de listagem --- */
.filters-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.filters-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* Secretaria abre pelo estado do botão e pode ser recolhida normalmente */
.dropdown-btn.secretaria-btn.active + .dropdown-container.secretaria-menu {
    display: block;
}

/* ===== Destaque especial para o grupo SECRETARIA ===== */
.dropdown-btn.secretaria-btn {
    background: linear-gradient(90deg, #1d4ed8 0%, #16a34a 100%);
    color: #ffffff;
    border-left: 3px solid #16a34a;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
}

.dropdown-btn.secretaria-btn .icon-left {
    color: #ffffff;
}

.dropdown-btn.secretaria-btn .arrow {
    color: #e0f2fe;
}

.secretaria-menu {
    background: #f1f5f9;
    border-left: 3px solid #93c5fd;
    padding: 6px 0 10px 0;
}

.secretaria-menu a {
    position: relative;
    padding: 7px 0 7px 42px;
    font-size: 13px;
    color: #4b5563;
    border-radius: 0;
}

.secretaria-menu a i {
    position: absolute;
    left: 18px;
    font-size: 14px;
    color: #0ea5e9;
}

.secretaria-menu a:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #111827;
}

.secretaria-menu a:hover i {
    color: #0ea5e9;
}

.secretaria-menu a.current-page {
    background: linear-gradient(90deg, #dbeafe 0%, #dcfce7 100%);
    color: #065f46;
    font-weight: 600;
}

.secretaria-menu a.current-page::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 999px;
    background: #16a34a;
}

.secretaria-menu a.current-page i {
    color: #16a34a;
}

/* ================================
   TESOURARIA - tema financeiro
================================ */
.dropdown-btn.tesouraria-btn {
    background: linear-gradient(90deg, #022c22 0%, #16a34a 100%);
    color: #ecfdf5;
    border-left: 3px solid #22c55e;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}

.dropdown-btn.tesouraria-btn .icon-left {
    color: #bbf7d0;
}

.dropdown-btn.tesouraria-btn .arrow {
    color: #a7f3d0;
}

.tesouraria-menu {
    background: #ecfdf5;
    border-left: 3px solid #6ee7b7;
    padding: 6px 0 10px 0;
}

.tesouraria-menu a {
    position: relative;
    padding: 7px 0 7px 42px;
    font-size: 13px;
    color: #065f46;
}

.tesouraria-menu a i {
    position: absolute;
    left: 18px;
    font-size: 14px;
    color: #16a34a;
}

.tesouraria-menu a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #022c22;
}

.tesouraria-menu a:hover i {
    color: #059669;
}

.tesouraria-menu a.current-page {
    background: linear-gradient(90deg, #bbf7d0 0%, #dcfce7 100%);
    color: #065f46;
    font-weight: 600;
}

.tesouraria-menu a.current-page::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 999px;
    background: #22c55e;
}

.tesouraria-menu a.current-page i {
    color: #16a34a;
}

/* ================================
   Módulo Caixa - layout e resumo lateral
   (adicionado para replicar visual do Zeke)
================================ */
.caixa-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding: 20px;
}

.caixa-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    padding: 25px;
}

.competencia-badge {
    background: #fff9e6;
    border: 1px solid #ffeeba;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
    font-weight: bold;
    margin-bottom: 20px;
}

.resumo-caixa {
    position: sticky;
    top: 20px;
}

.resumo-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
}

.valor-grande {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.btn-caixa {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-salvar-caixa { background: #ffc107; color: #000; }
.btn-voltar-caixa { background: #f8f9fa; color: #666; border: 1px solid #ddd; }

/* Bancos list and form helpers */
.activity-table { width: 100%; border-collapse: collapse; }
.activity-table thead th { padding: 12px 16px; text-align: left; }
.activity-table tbody td { padding: 12px 16px; border-top: 1px solid #f1f5f9; }
.activity-table { overflow: hidden; }

.input-grid { display: grid; gap: 15px; }
.input-grid .input-group { display: flex; flex-direction: column; }
.input-grid .input-group label { font-weight: 600; margin-bottom: 6px; }
.input-grid .input-group input, .input-grid .input-group select { padding: 10px; border: 1px solid #e5e7eb; border-radius: 6px; }



/* ================================
   CONTABILIDADE - tema serio
================================ */
.dropdown-btn.contabilidade-btn {
    background: linear-gradient(90deg, #0f172a 0%, #1d4ed8 100%);
    color: #e5e7eb;
    border-left: 3px solid #1d4ed8;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}

.dropdown-btn.contabilidade-btn .icon-left {
    color: #bfdbfe;
}

.dropdown-btn.contabilidade-btn .arrow {
    color: #bfdbfe;
}

.contabilidade-menu {
    background: #e5e7eb;
    border-left: 3px solid #93c5fd;
    padding: 6px 0 10px 0;
}

.contabilidade-menu a {
    position: relative;
    padding: 7px 0 7px 42px;
    font-size: 13px;
    color: #111827;
}

.contabilidade-menu a i {
    position: absolute;
    left: 18px;
    font-size: 14px;
    color: #1d4ed8;
}

.contabilidade-menu a:hover {
    background: rgba(37, 99, 235, 0.09);
    color: #020617;
}

.contabilidade-menu a:hover i {
    color: #1d4ed8;
}

.contabilidade-menu a.current-page {
    background: linear-gradient(90deg, #dbeafe 0%, #e5e7eb 100%);
    color: #1d4ed8;
    font-weight: 600;
}

.contabilidade-menu a.current-page::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 999px;
    background: #1d4ed8;
}

.contabilidade-menu a.current-page i {
    color: #1d4ed8;
}

/* ================================
   LAYOUT PAGINAS DE LISTAGEM
================================ */
.pagina-conteudo {
    padding: 24px 30px;
}

.pagina-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.breadcrumb {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 6px;
}

.breadcrumb span { margin: 0 6px; }

.pagina-topo h1 {
    margin: 0;
    color: #111827;
    font-size: 24px;
}

.pagina-topo h1 span {
    font-weight: 400;
    font-size: 17px;
    color: #6b7280;
}

.btn-primario,
.btn-secundario,
.btn-linha,
.btn-acao {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primario {
    background: linear-gradient(90deg, #1d4ed8 0%, #16a34a 100%);
    color: #fff;
    padding: 10px 16px;
}

.btn-primario:hover { filter: brightness(0.95); }

.btn-secundario {
    background: #e5e7eb;
    color: #1f2937;
    padding: 10px 16px;
}

.btn-secundario:hover { background: #d1d5db; }

.btn-linha {
    background: #f1f5f9;
    color: #1e293b;
    padding: 8px 12px;
}

.btn-linha:hover { background: #e2e8f0; }

.filtros-card,
.tabela-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.filtros-card {
    padding: 16px;
    margin-bottom: 16px;
}

.filtros-header h2,
.tabela-topo h2 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.campo label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.campo-icone {
    position: relative;
}

.campo-icone i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.campo-icone input,
.tabela-topo-acoes input,
.form-add-cargo input {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
}

.campo-icone input { padding-left: 36px; }

.filtros-acoes {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.tabela-card { padding: 0; overflow: hidden; }

.tabela-topo {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.tabela-topo-acoes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tabela-topo-acoes input { width: 220px; }

.form-add-cargo {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: none;
    align-items: center;
    gap: 8px;
}

.form-add-cargo.active { display: flex; }

.tabela-wrapper { position: relative; }

.tabela-lista {
    width: 100%;
    border-collapse: collapse;
}

.tabela-lista th,
.tabela-lista td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
}

.tabela-lista th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tabela-lista tr:hover { background: #f8fafc; }

.col-acoes {
    width: 120px;
    text-align: right !important;
    white-space: nowrap;
}

.btn-acao {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #eef2ff;
    color: #1d4ed8;
    margin-left: 6px;
}

.btn-acao.editar { background: #ecfdf5; color: #15803d; }
.btn-acao.excluir { background: #fef2f2; color: #b91c1c; }

.btn-acao:hover { transform: translateY(-1px); }

.tabela-vazia {
    display: none;
    padding: 18px 14px;
    text-align: center;
    color: #6b7280;
}

.tabela-rodape {
    padding: 10px 14px;
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

/* --- Cadastro de Membros --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.page-header h2 { margin: 0; font-size: 22px; color: #1f2937; }
.page-header p { margin: 6px 0 0; color: #6b7280; font-size: 14px; }

.member-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.tab-btn.active {
    background: #f59e0b;
    color: #111827;
    border-color: #f59e0b;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label { font-size: 13px; font-weight: 600; color: #374151; }
.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
}

.form-group-full { grid-column: 1 / -1; }

.form-hint {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: center;
}

.photo-preview {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    display: grid;
    place-items: center;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.photo-controls { display: flex; flex-direction: column; gap: 16px; }

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-controls input[type="range"] { flex: 1; }

.muted { color: #6b7280; font-size: 12px; }

@media (max-width: 900px) {
    .photo-grid { grid-template-columns: 1fr; }
    .photo-preview { width: 100%; height: 240px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .upgrade-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .upgrade-banner-btn {
        width: 100%;
        text-align: center;
    }
}

body.theme-azul-verde {
    --sidebar-bg: #ffffff;
    --sidebar-border: #e5e7eb;
    --sidebar-text: #374151;
    --sidebar-text-muted: #6b7280;
    --sidebar-active-bg: #e0f2f7;
    --sidebar-active-text: #065f46;
    --sidebar-hover-bg: #f3f4f6;
    --main-bg: #f9fafb;
    --primary: #1d4ed8;
    --primary-soft: #3b82f6;
    --accent-1: #3b82f6;
    --accent-2: #ef4444;
    --accent-3: #22c55e;
    --accent-4: #f59e0b;
}

body.enterprise-dashboard,
body.enterprise-shell-page {
    --enterprise-sidebar-width: 230px;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.16), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #1f2937;
    overflow: auto;
    flex-direction: column;
}

body.enterprise-dashboard .enterprise-top-header,
body.enterprise-shell-page .enterprise-top-header {
    margin-left: var(--enterprise-sidebar-width);
    transition: margin-left 0.25s ease;
}

body.enterprise-dashboard .sidebar.enterprise-sidebar,
body.enterprise-shell-page .sidebar.enterprise-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--enterprise-sidebar-width);
    padding: 20px 16px 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    z-index: 30;
}

.enterprise-brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 18px;
}

.enterprise-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f766e 0%, #d4af37 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.28);
}

.enterprise-brand-block strong,
.enterprise-user-meta strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
}

.enterprise-brand-block span,
.enterprise-user-meta span,
.enterprise-sidebar-footer span {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.enterprise-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.enterprise-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 20px;
}

.enterprise-user-meta span i {
    font-size: 8px;
    color: #22c55e;
    margin-right: 6px;
}

.enterprise-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.enterprise-nav-section {
    padding-bottom: 4px;
}

.enterprise-nav-title {
    padding: 0 10px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.enterprise-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.enterprise-nav-item i {
    width: 18px;
    text-align: center;
    color: #0f766e;
}

.enterprise-nav-item:hover,
.enterprise-nav-item.active {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.1) 0%, rgba(212, 175, 55, 0.16) 100%);
    color: #0f172a;
    transform: translateX(2px);
}

.enterprise-nav-item.active {
    box-shadow: inset 3px 0 0 #d4af37;
    font-weight: 700;
}

.enterprise-nav-item.enterprise-logout i,
.enterprise-nav-item.enterprise-logout:hover {
    color: #b91c1c;
}

.enterprise-sidebar-footer {
    margin-top: auto;
    padding: 18px 12px 8px;
}

.enterprise-sidebar-footer strong {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #0f172a;
}

body.enterprise-dashboard .main-content.enterprise-main,
body.enterprise-shell-page .main-content.enterprise-main {
    margin-left: var(--enterprise-sidebar-width);
    min-height: 100vh;
    width: calc(100% - var(--enterprise-sidebar-width));
    overflow: visible;
}

.enterprise-top-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    min-height: 78px;
    padding: 18px 28px;
    background: rgba(248, 250, 252, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: none;
}

.enterprise-top-left,
.enterprise-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.enterprise-menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    flex-shrink: 0;
}

/* Sidebar recolhido no desktop */
body.enterprise-shell-page .sidebar.enterprise-sidebar,
body.enterprise-dashboard .sidebar.enterprise-sidebar {
    transition: transform 0.25s ease;
}

body.sidebar-collapsed.enterprise-shell-page .sidebar.enterprise-sidebar,
body.sidebar-collapsed.enterprise-dashboard .sidebar.enterprise-sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed.enterprise-shell-page .main-content.enterprise-main,
body.sidebar-collapsed.enterprise-dashboard .main-content.enterprise-main {
    margin-left: 0;
    width: 100%;
    transition: margin-left 0.25s ease, width 0.25s ease;
}

body.sidebar-collapsed.enterprise-shell-page .enterprise-top-header,
body.sidebar-collapsed.enterprise-dashboard .enterprise-top-header {
    margin-left: 0;
    transition: margin-left 0.25s ease;
}

.enterprise-breadcrumb {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.enterprise-top-header h1 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
}

.enterprise-header-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #0f766e;
}

.enterprise-header-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.enterprise-header-user strong {
    font-size: 14px;
    color: #0f172a;
}

.enterprise-header-user span {
    font-size: 12px;
    color: #64748b;
}

.enterprise-dashboard-shell {
    padding: 26px 28px 34px;
}

.enterprise-page-shell {
    padding: 26px 28px 34px;
}

.enterprise-page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.enterprise-page-hero h2 {
    margin: 0;
    font-size: 28px;
    color: #0f172a;
}

.enterprise-page-hero p {
    margin: 8px 0 0;
    color: #64748b;
    max-width: 720px;
    line-height: 1.5;
}

.enterprise-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
}

.enterprise-surface {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.enterprise-surface-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px 0;
}

.enterprise-surface-header h3 {
    margin: 0;
    color: #0f172a;
}

.enterprise-surface-body {
    padding: 20px 22px 22px;
}

.btn-no-margin-top {
    margin-top: 0;
}

.filter-select-sm {
    max-width: 160px;
}

.filter-select-md {
    max-width: 170px;
}

.filter-select-lg {
    max-width: 200px;
}

.members-results-box {
    margin-top: 20px;
}

.members-box-body {
    text-align: left;
}

.members-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.members-page-info {
    font-size: 13px;
    color: #555;
}

.enterprise-intro-panel,
.enterprise-panel,
.enterprise-stat-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.enterprise-intro-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 26px;
    border-radius: 24px;
    margin-bottom: 24px;
}

.enterprise-eyebrow,
.enterprise-panel-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}

.enterprise-intro-panel h2,
.enterprise-panel h3,
.enterprise-mini-card h3 {
    margin: 0;
    color: #0f172a;
}

.enterprise-intro-panel h2 {
    font-size: 28px;
    max-width: 720px;
}

.enterprise-intro-panel p:last-child {
    margin: 10px 0 0;
    color: #475569;
    max-width: 760px;
    line-height: 1.6;
}

.enterprise-intro-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.enterprise-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
}

.enterprise-cta.primary {
    background: linear-gradient(135deg, #0f766e 0%, #1d4ed8 100%);
    color: #ffffff;
}

.enterprise-cta.secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #dbe2ea;
}

.enterprise-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.enterprise-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    text-decoration: none;
}

.enterprise-stat-card-muted {
    cursor: default;
}

.enterprise-stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 22px;
    flex-shrink: 0;
}

.enterprise-stat-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enterprise-stat-copy span,
.enterprise-stat-copy small {
    color: #64748b;
}

.enterprise-stat-copy span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.enterprise-stat-copy strong {
    font-size: 26px;
    color: #0f172a;
}

.enterprise-stat-copy small {
    font-size: 13px;
}

.enterprise-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 20px;
}

.enterprise-panel,
.enterprise-mini-card {
    border-radius: 22px;
}

.enterprise-panel {
    padding: 22px;
}

.enterprise-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

.enterprise-mini-card {
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.enterprise-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.enterprise-panel-header a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.enterprise-member-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.enterprise-member-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
}

.enterprise-member-item:last-child {
    border-bottom: none;
}

.enterprise-member-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dbeafe 0%, #dcfce7 100%);
    color: #0f766e;
    font-weight: 700;
}

.enterprise-member-copy {
    min-width: 0;
}

.enterprise-member-copy strong,
.enterprise-member-copy span,
.enterprise-member-item small {
    display: block;
}

.enterprise-member-copy strong {
    color: #0f172a;
    margin-bottom: 3px;
}

.enterprise-member-copy span,
.enterprise-member-item small,
.enterprise-empty-state,
.enterprise-health-list span {
    color: #64748b;
    font-size: 13px;
}

.enterprise-member-item small {
    white-space: nowrap;
}

.enterprise-empty-state {
    padding: 12px 0;
}

.enterprise-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.enterprise-quick-actions a {
    display: block;
    padding: 14px;
    border-radius: 16px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 600;
    text-align: center;
}

.enterprise-health-card {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.enterprise-health-card .enterprise-panel-kicker,
.enterprise-health-card h3,
.enterprise-health-card .enterprise-health-list strong {
    color: #ffffff;
}

.enterprise-health-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.enterprise-health-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.enterprise-health-card .enterprise-health-list span {
    color: #cbd5e1;
}

body.legacy-sidebar-mode {
    --enterprise-sidebar-width: 250px;
}

body.legacy-sidebar-mode .sidebar.enterprise-sidebar.legacy-shell-sidebar {
    padding: 0;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .sidebar-profile {
    padding: 16px 16px;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .profile-avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .profile-info h4 {
    font-size: 12px;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .profile-info span {
    font-size: 12px;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .menu {
    padding-top: 6px;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .dropdown-btn {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .dropdown-btn i.icon-left {
    width: 18px;
    margin-right: 9px;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .dropdown-container a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 36px;
    font-size: 11px;
    color: #6b7280;
    text-decoration: none;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .dropdown-container a i {
    width: 13px;
    font-size: 11px;
    color: #64748b;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .dropdown-container a span {
    line-height: 1.2;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .dropdown-container a:hover {
    color: #92400e;
    background: #fff8e1;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .dropdown-container a:hover i {
    color: #b45309;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .dropdown-container a.active-link {
    color: #78350f;
    font-weight: 600;
    background: linear-gradient(90deg, #fff8e1 0%, #fef3c7 100%);
}

body.legacy-sidebar-mode .legacy-shell-sidebar .dropdown-container a.active-link i {
    color: #a16207;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .sub-dropdown-btn {
    width: 100%;
    border: none;
    background: #f8fafc;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 16px 7px 36px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border-left: 2px solid transparent;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .sub-dropdown-btn .icon-left {
    width: 13px;
    margin-right: 8px;
    color: #a16207;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .sub-dropdown-btn .arrow {
    font-size: 10px;
    color: #a16207;
    transition: transform 0.2s ease;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .sub-dropdown-btn.active {
    background: linear-gradient(90deg, #fff8e1 0%, #fef3c7 100%);
    color: #78350f;
    border-left-color: #d97706;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .sub-dropdown-btn.active .icon-left,
body.legacy-sidebar-mode .legacy-shell-sidebar .sub-dropdown-btn.active .arrow {
    color: #b45309;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .sub-dropdown-btn.active .arrow {
    transform: rotate(90deg);
}

body.legacy-sidebar-mode .legacy-shell-sidebar .sub-dropdown-container {
    display: none;
    background: #ffffff;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .sub-dropdown-container a {
    padding-left: 52px;
}

body.legacy-sidebar-mode .legacy-shell-sidebar .sidebar-footer {
    font-size: 11px;
    padding: 14px;
}


.classic-dashboard-shell {
    max-width: 1120px;
}

.classic-dashboard-title-row {
    margin-bottom: 12px;
}

.classic-dashboard-title-row h2 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
}

.classic-dashboard-title-row p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.classic-module-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.classic-module-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    padding: 10px 12px;
    text-decoration: none;
    color: #111827;
    background: #ffffff;
    border: 1px solid #dbe5f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.classic-module-card.blue .classic-module-icon { background: #0ea5e9; }
.classic-module-card.red .classic-module-icon { background: #ef4444; }
.classic-module-card.green .classic-module-icon { background: #22c55e; }
.classic-module-card.orange .classic-module-icon { background: #f59e0b; }

.classic-module-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}

.classic-module-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.classic-module-copy span {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.06em;
}

.classic-module-copy strong {
    font-size: 20px;
    color: #0f172a;
    line-height: 1.1;
}

.classic-module-copy small {
    font-size: 11px;
    color: #334155;
}

.classic-recent-panel {
    background: #ffffff;
    border: 1px solid #dbe5f0;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.classic-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.classic-recent-header h3 {
    margin: 0;
    font-size: 14px;
    color: #334155;
}

.classic-recent-header a {
    font-size: 12px;
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
}

.classic-recent-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.classic-member-card {
    text-align: center;
}

.classic-member-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 2px solid #cbd5e1;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #64748b;
    font-weight: 700;
}

.classic-member-card strong {
    display: block;
    font-size: 10px;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 2px;
}

.classic-member-card small,
.classic-empty-member {
    font-size: 10px;
    color: #64748b;
}

.classic-empty-member {
    grid-column: 1 / -1;
    text-align: center;
    padding: 18px 0;
}

.classic-summary-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.classic-summary-card {
    background: #ffffff;
    border: 1px solid #dbe5f0;
    border-radius: 6px;
    padding: 10px 12px;
}

.classic-summary-card span {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 3px;
}

.classic-summary-card strong {
    font-size: 16px;
    color: #0f172a;
}

@media (max-width: 1280px) {
    .enterprise-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .enterprise-content-grid {
        grid-template-columns: 1fr;
    }

    .classic-module-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .classic-recent-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    body.enterprise-dashboard .sidebar.enterprise-sidebar,
    body.enterprise-shell-page .sidebar.enterprise-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    body.enterprise-dashboard .sidebar.enterprise-sidebar.is-open,
    body.enterprise-shell-page .sidebar.enterprise-sidebar.is-open {
        transform: translateX(0);
    }

    body.enterprise-dashboard .main-content.enterprise-main,
    body.enterprise-shell-page .main-content.enterprise-main {
        margin-left: 0;
        width: 100%;
    }

    body.enterprise-dashboard .enterprise-top-header,
    body.enterprise-shell-page .enterprise-top-header {
        margin-left: 0;
    }

    .enterprise-menu-toggle {
        display: inline-grid;
        place-items: center;
    }
}

@media (max-width: 720px) {
    .enterprise-top-header,
    .enterprise-dashboard-shell,
    .enterprise-page-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .enterprise-top-header,
    .enterprise-top-right,
    .enterprise-intro-panel,
    .enterprise-page-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .enterprise-stats-grid,
    .enterprise-quick-actions {
        grid-template-columns: 1fr;
    }

    .classic-module-strip,
    .classic-summary-row {
        grid-template-columns: 1fr;
    }

    .classic-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .enterprise-member-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .enterprise-member-item small {
        grid-column: 2;
        white-space: normal;
    }
}

/* ================================
   FORMULÁRIO DE CONFIGURAÇÃO/INFO
================================ */
.info-form-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.06);
}

.info-header {
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.info-header h2 {
    margin: 0;
    font-size: 15px;
    color: #111827;
}

.info-body {
    padding: 18px;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.info-box i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0; /* Evita que o ícone encolha */
}

.info-box p {
    margin: 0;
}

.info-box.info {
    background-color: #e0f2fe; /* Azul claro */
    color: #0c4a6e; /* Azul escuro */
    border: 1px solid #93c5fd;
}

.info-box.info i {
    color: #0ea5e9; /* Azul */
}

.info-box.warning {
    background-color: #fef3c7; /* Amarelo claro */
    color: #92400e; /* Laranja escuro */
    border: 1px solid #fcd34d;
}

.info-box.warning i {
    color: #f59e0b; /* Laranja */
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajusta para 2 colunas em telas maiores */
    gap: 20px;
    margin-top: 20px;
}

.info-footer {
    border-top: 1px solid #e5e7eb;
    padding: 14px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.status-msg {
    margin-top: 10px;
    font-size: 13px;
    color: #065f46;
    padding: 0 18px;
}

.status-msg.error {
    color: #b91c1c;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SKELETON LOADING
   ========================================= */
.skeleton-box {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 8px;
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.skeleton-title {
    height: 28px;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}