:root {
    --navy: #0b1f3a;
    --navy2: #102a4c;
    --blue: #3468dc;
    --bg: #f5f7fb;
    --text: #13213a;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
}

.app {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    background: linear-gradient(180deg, var(--navy), var(--navy2));
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    overflow: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
    padding: 3px 9px 22px;
}

.brand i {
    font-size: 32px;
}

.brand span,
.brand small {
    display: block;
}

.brand small {
    font-size: 11px;
    font-weight: 400;
    opacity: .75;
}

.nav-title {
    color: #aebbd0;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    margin: 13px 8px 5px;
}

.sidebar .nav-link {
    color: #e3eaf5;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 13px;
    display: flex;
    gap: 12px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #2e5dc7;
    color: #fff;
}

.content {
    margin-left: 230px;
    min-height: 100vh;
}

.topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.search {
    background: #f5f7fb;
    padding: 10px 14px;
    border-radius: 8px;
    min-width: 320px;
}

.search input {
    border: 0;
    outline: 0;
    background: none;
    width: 88%;
    margin-left: 8px;
}

.page {
    padding: 24px;
}

.card {
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(24, 49, 83, .04);
}

.stat {
    padding: 18px;
    height: 100%;
    min-height: 96px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.dashboard-card {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.dashboard-card-text {
    min-width: 0;
}

.dashboard-card-text small {
    display: block;
    line-height: 1.2;
    margin-bottom: 7px;
    min-height: 30px;
}

.dashboard-card-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.table > thead th {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
}

.menu-toggle {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 12px;
    left: 12px;
}

.chart-box {
    height: 310px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .25s;
    }

    .sidebar.open {
        transform: none;
    }

    .content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .topbar {
        padding-left: 64px;
    }

    .search {
        min-width: 180px;
    }
}

@media (max-width: 576px) {
    .page {
        padding: 15px;
    }

    .search {
        display: none;
    }

    .topbar {
        justify-content: flex-end;
    }

    .dashboard-card-text small {
        min-height: 0;
    }

    .dashboard-card-value {
        font-size: 19px;
    }
}

@media print {
    .sidebar,
    .topbar,
    .menu-toggle,
    .no-print {
        display: none !important;
    }

    .content {
        margin: 0;
    }

    .page {
        padding: 0;
    }

    .card {
        box-shadow: none;
    }
}

@media print {
    .fluxo-print-area {
        border: 0;
        padding: 0 !important;
        overflow: visible !important;
    }

    .fluxo-table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed;
        font-size: 10px;
    }

    .fluxo-table th,
    .fluxo-table td {
        border: 1px solid #d7dee8 !important;
        padding: 5px !important;
        white-space: normal !important;
        word-break: normal;
        overflow-wrap: break-word;
        vertical-align: top;
    }

    .fluxo-table th {
        background: #eef2f7 !important;
        color: #1f2937 !important;
    }

    .fluxo-table th:nth-child(1),
    .fluxo-table td:nth-child(1) { width: 10%; }
    .fluxo-table th:nth-child(2),
    .fluxo-table td:nth-child(2) { width: 12%; }
    .fluxo-table th:nth-child(3),
    .fluxo-table td:nth-child(3) { width: 20%; }
    .fluxo-table th:nth-child(4),
    .fluxo-table td:nth-child(4) { width: 12%; }
    .fluxo-table th:nth-child(5),
    .fluxo-table td:nth-child(5) { width: 14%; }
    .fluxo-table th:nth-child(6),
    .fluxo-table td:nth-child(6) { width: 14%; }
    .fluxo-table th:nth-child(7),
    .fluxo-table td:nth-child(7) { width: 10%; }
    .fluxo-table th:nth-child(8),
    .fluxo-table td:nth-child(8) { width: 8%; }
}
.fluxo-print-area {
    padding: 12px !important;
}

.fluxo-table {
    width: 100%;
    table-layout: fixed;
    font-size: 12px;
    margin-bottom: 0;
}

.fluxo-table th,
.fluxo-table td {
    padding: 7px 8px !important;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.25;
}

.fluxo-table thead th {
    background: #f1f5f9;
    color: #334155;
    border-bottom: 1px solid #cbd5e1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.fluxo-table th:nth-child(1),
.fluxo-table td:nth-child(1) { width: 92px; }
.fluxo-table th:nth-child(2),
.fluxo-table td:nth-child(2) { width: 100px; }
.fluxo-table th:nth-child(3),
.fluxo-table td:nth-child(3) { width: 22%; }
.fluxo-table th:nth-child(4),
.fluxo-table td:nth-child(4) { width: 120px; }
.fluxo-table th:nth-child(5),
.fluxo-table td:nth-child(5) { width: 150px; }
.fluxo-table th:nth-child(6),
.fluxo-table td:nth-child(6) { width: 14%; }
.fluxo-table th:nth-child(7),
.fluxo-table td:nth-child(7) { width: 120px; }
.fluxo-table th:nth-child(8),
.fluxo-table td:nth-child(8) { width: 115px; }

.fluxo-valor {
    font-size: 12px;
    white-space: nowrap !important;
}

.valor-receita {
    color: #15803d !important;
}

.valor-despesa {
    color: #dc2626 !important;
}

@media (max-width: 991px) {
    .fluxo-table {
        table-layout: auto;
        min-width: 980px;
    }
}
.membros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.membro-card {
    padding: 14px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.membro-card-top {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.membro-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f0ff;
    color: #1d4f8f;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
}

.membro-main {
    min-width: 0;
}

.membro-name {
    font-weight: 800;
    color: #13213a;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.membro-code {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

.membro-info {
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}

.membro-info div {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.membro-info i {
    color: #3468dc;
    line-height: 1.2;
}

.membro-info span {
    min-width: 0;
    overflow-wrap: break-word;
}

.membro-actions {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e5eaf1;
}

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

    .membro-card-top {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .membro-card-top .badge {
        grid-column: 2;
        justify-self: start;
    }
}