body {
    background-color: #f8f9fa;
}

/* Login-Seite: Karte vertikal und horizontal zentrieren */
body.login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 15px;
}

sum-cell { font-weight: bold; background-color: #f0f0f0; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background-color: #ffffff;
    color: #212529;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
    padding: 0.75rem 1.25rem 0.25rem;
}

.sidebar-item {
    display: block;
    padding: 0.45rem 1.25rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.15s, color 0.15s;
}

.sidebar-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.sidebar-footer {
    padding: 0.75rem 0;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
}

.sidebar-logout {
    color: #dc3545 !important;
}

.sidebar-logout:hover {
    color: #b02a37 !important;
}

/* Main content area */
.main-content {
    margin-left: 240px;
    padding: 2rem;
    min-height: 100vh;
}

/* Mobile topbar */
.sidebar-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

/* Backdrop (mobile) */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1039;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}
