/* Paginа: admin/transparencia.html — CSS extraido automaticamente */
/* =====================================================
   VARIÁVEIS (corrigido — antes faltava o :root)
===================================================== */

:root {
    --bg-main:#F5F2E9;
    --bg-secondary:#181818;
    --gold:#16804A;
    --gold-soft:rgba(22,128,74,.10);
    --green:#16804A;
    --text:#111111;
    --text-soft:#3b3b3b;
    --text-muted:#6f6a5f;
    --border:rgba(17,17,17,.10);
    --glass-bg:#FFFFFF;
    --glass-bg-hover:rgba(255,255,255,.95);
    --sidebar-width: 270px;
    --nav-height: 72px;
    --touch-min: 44px;
}

body {
    background: var(--bg-main);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

.topbar {
    height: 75px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #09090c;
    border-bottom: 1px solid var(--border);
}

.page { padding: 35px; }

.card-aya {
    background: rgba(255,255,255,.055);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 25px;
    height: 100%;
    transition: .3s;
}

.card-aya:hover { border-color: rgba(255,215,0,.3); transform: translateY(-3px); }

.number { font-size: 1.6rem; font-weight: 800; }
.number.positivo { color: #55d66d; }
.number.negativo { color: #ff6b6b; }
.number.neutro { color: var(--gold); }
.label { color: var(--text-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; }
.card-link { display: block; text-decoration: none; }

.linha-movimento {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #232329;
    font-size: .75rem;
}

.linha-movimento:last-child { border-bottom: none; }
.titulo-movimento { color: #ddd; font-weight: 600; }
.sub-movimento { color: #666; font-size: .65rem; }
.valor-receita { color: #55d66d; font-weight: 700; white-space: nowrap; }
.valor-despesa { color: #ff6b6b; font-weight: 700; white-space: nowrap; }
.secao-titulo { font-size: .95rem; font-weight: 700; margin-bottom: 14px; }

.form-control, .form-select { background: #101016; color: white; border-color: #292930; }
.form-control:focus, .form-select:focus { background: #101016; color: white; border-color: var(--gold); box-shadow: none; }
.form-label { color: #bbb; font-size: .75rem; font-weight: 600; }
.btn-aya { background: var(--gold); color: #000; font-weight: 700; border: none; }
.btn-aya:hover { background: #e6c200; color: #000; }

.page-loading {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 2000;
}

.page-loading img { width: 64px; object-fit: contain; }
.page-loading p { color: #666; font-size: .75rem; margin: 0; }

.alert-aya { position: fixed; top: 90px; right: 24px; z-index: 2100; min-width: 280px; max-width: 420px; display: none; }

.empty-state { text-align: center; padding: 34px 16px; color: #666; }
.empty-state i { font-size: 1.8rem; color: #444; margin-bottom: 10px; }
.empty-state p { font-size: .7rem; margin: 0; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #08080a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* =====================================================
   SIDEBAR (padrão admin — corrigida)
===================================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, rgba(0,0,0,.96), rgba(12,12,16,.98));
    border-right: 1px solid var(--border);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
    box-shadow: 10px 0 40px rgba(0,0,0,.4);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 20px 18px 18px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.sidebar-brand img { width: 38px; height: 38px; object-fit: contain; }
.sidebar-brand h5 { margin: 0; color: var(--gold); font-weight: 800; font-size: 15px; line-height: 1.1; }
.sidebar-brand small { display: block; color: var(--text-muted); font-size: 9px; letter-spacing: .8px; margin-top: 2px; }

.sidebar-menu {
    padding: 20px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

.sidebar-section {
    padding: 14px 10px 5px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin: 3px 0;
    border-radius: 10px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: .82rem;
    transition: .25s;
}

.sidebar-menu a i { width: 20px; min-width: 20px; text-align: center; font-size: 1rem; }
.sidebar-menu a:hover { background: var(--glass-bg-hover); color: white; transform: translateX(3px); }

.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(255,215,0,.15), rgba(34,139,34,.10));
    color: var(--gold);
    border-left: 3px solid var(--gold);
}

[data-exige] { display: none !important; }
[data-exige].liberado { display: block !important; }
.sidebar-menu a[data-exige].liberado { display: flex !important; }

.sidebar-footer { padding: 15px; border-top: 1px solid var(--border); flex-shrink: 0; }

/* =====================================================
   MAIN CONTENT (corrigido — antes não existia no CSS)
===================================================== */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 1040;
}

/* =====================================================
   ADMIN PROFILE (topbar)
===================================================== */

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #292930, #131318);
    color: var(--gold);
    font-weight: 700;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,215,0,.23);
}

.admin-info strong { display: block; font-size: .75rem; }
.admin-info small { display: block; color: var(--text-muted); font-size: .65rem; margin-top: 2px; }

/* =====================================================
   RESPONSIVO
===================================================== */

@media(max-width:991px){.sidebar{transform:translateX(-100%);}.sidebar.show{transform:translateX(0);}.main-content{margin-left:0;}#menuButton{display:flex;}}
@media(min-width:992px){#menuButton{display:none;}}

@media (max-width: 991px) {
    .topbar { padding: 0 15px; height: 62px; }
    .admin-info { display: none; }
}

@media (max-width: 576px) {
    .page { padding: 18px; }
    .number { font-size: 1.25rem; }
}
        /* ===== IEPLUS_LIGHT_OVERRIDES : IÃŠ+ tema claro (estrutura/navegaÃ§Ã£o preta com texto claro) ===== */
        .topbar,.sidebar,.sidebar-header,.bottom-navigation,.bottom-nav,.side-nav,.nav-drawer,.app-nav{background:#111111 !important;}
        .topbar,.topbar *,.sidebar *,.bottom-navigation *,.bottom-navigation a,.bottom-navigation i,.bottom-navigation span{color:rgba(255,255,255,.85) !important;}
        .sidebar a.active,.sidebar .active,.bottom-navigation .active{color:#8FE6B4 !important;}
        .sidebar a.active,.bottom-navigation .active{background:rgba(22,128,74,.30) !important;}