body {
    background-color: #f4f6fb;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #1f2a37;
}

:root {
    --brand-primary: #1f4b99;
    --brand-accent: #4e73df;
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.app-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

.app-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #e6e9f0;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: calc(100vh - 56px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.app-sidebar .nav-link {
    color: #354052;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link:focus {
    background: #eef3ff;
    color: #2b59ff;
}

.app-sidebar .nav-link.active {
    background: #e7edff;
    color: var(--brand-primary);
    box-shadow: inset 0 0 0 1px rgba(46, 96, 255, 0.18);
}

.app-content {
    flex: 1;
    background: #f6f8fb;
}

.stat-card {
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.auth-wrapper {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #e8f0ff, #ffffff);
}

.card {
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
    border: 0;
}

@media (max-width: 991.98px) {
    .app-wrapper {
        flex-direction: column;
    }

    .app-content {
        padding-top: 8px;
    }

    .app-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
        border-right: 0;
    }
}

.report-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.report-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.report-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
}

.accounting-table {
    border-collapse: separate;
    border-spacing: 0 6px;
}

.accounting-table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.accounting-table tbody tr {
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.accounting-table tbody tr td {
    padding: 10px 14px;
}

.accounting-table .section-row td {
    background: #f1f5ff;
    font-weight: 600;
}

.accounting-table .total-row td {
    font-weight: 700;
}

.accounting-table .net-row td {
    font-size: 1rem;
    font-weight: 700;
}

.amount-col {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.navbar {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.navbar .navbar-brand {
    letter-spacing: 0.2px;
}

.table thead th {
    font-weight: 600;
    color: #4b5563;
}

.table tbody tr {
    background: #fff;
    border-radius: 12px;
}

.table tbody tr:hover {
    background: #f4f7ff;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: #e2e8f0;
}

.form-control:focus,
.form-select:focus {
    border-color: #94b2ff;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15);
}

.btn-primary {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    box-shadow: 0 8px 18px rgba(78, 115, 223, 0.25);
}

.btn-outline-light:hover {
    color: var(--brand-primary);
}

.card-header {
    background: transparent;
}
