:root {
    --ft-sidebar-width: 250px;
    --ft-primary: #2563eb;
    --ft-dark: #0f172a;
    --ft-sidebar-bg: #0f172a;
    --ft-muted: #64748b;
}

body {
    background: #f1f5f9;
    color: #1e293b;
}

/* ---------- Auth ---------- */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    padding: 1rem;
}
.auth-card {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
}
.auth-logo {
    width: 56px; height: 56px;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--ft-primary);
    color: #fff;
    font-size: 1.6rem;
}

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
    width: var(--ft-sidebar-width);
    background: var(--ft-sidebar-bg);
    color: #cbd5e1;
}
.app-sidebar.offcanvas { color: #cbd5e1; }

.sidebar-brand {
    display: flex; align-items: center; gap: .6rem;
    padding: 1.1rem 1.25rem;
    font-weight: 600; font-size: 1.1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand i { color: var(--ft-primary); font-size: 1.4rem; }

.sidebar-nav { padding: .75rem; display: flex; flex-direction: column; gap: .25rem; }
.sidebar-nav .nav-link {
    display: flex; align-items: center; gap: .75rem;
    color: #cbd5e1; border-radius: .5rem;
    padding: .6rem .85rem; font-size: .95rem;
    transition: background .15s, color .15s;
}
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav .nav-link.active { background: var(--ft-primary); color: #fff; }
.sidebar-nav .nav-link i { font-size: 1.1rem; }

.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.app-topbar {
    display: flex; align-items: center; gap: .75rem;
    background: #fff; padding: .75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    position: sticky; top: 0; z-index: 10;
}
.app-content { padding: 1.5rem; flex: 1; }

/* ---------- Stat cards ---------- */
.stat-card { border: none; border-radius: .85rem; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.stat-card .stat-label { color: var(--ft-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-card .stat-icon { font-size: 1.6rem; opacity: .85; }
.value-negative { color: #dc2626 !important; }
.value-positive { color: #16a34a !important; }

/* ---------- Excel-like table ---------- */
.table-excel td, .table-excel th { vertical-align: middle; }
.table-excel .col-credit { color: #16a34a; }
.table-excel .col-debit { color: #dc2626; }
.table-excel tfoot td, .table-excel tfoot td { font-weight: 700; }

@media (max-width: 991.98px) {
    .app-content { padding: 1rem; }
}
