/* Allgemeines Layout */
body {
    padding-top: 60px;
    padding-bottom: 40px;
}

.container-fluid {
    max-width: 1400px;
    margin: auto;
}

/* Linke Eintragsliste */
#eintragsliste {
    max-height: 80vh;
    overflow-y: auto;
    border-right: 1px solid #ddd;
    padding-right: 1rem;
}

.eintrag-link {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: background-color 0.2s;
}

.eintrag-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.eintrag-link.active {
    background-color: #0d6efd;
    color: white;
}

/* Formularbereich */
.form-section {
    padding: 1rem;
}

.form-check-label {
    user-select: none;
}

/* Erledigt-Einträge visuell absetzen */
.eintrag-erledigt {
    color: #999;
    text-decoration: line-through;
}

/* Pop-up Fenster (z. B. Kategorien) */
.popup-content {
    padding: 1.5rem;
}

.popup-header {
    margin-bottom: 1rem;
}

.popup-table th,
.popup-table td {
    vertical-align: middle;
}

/* Buttons */
.btn-space {
    margin-right: 0.5rem;
}

/* Such- & Filterfeld über der Liste */
.filter-container {
    margin-bottom: 1rem;
}

input[type="search"].form-control {
    max-width: 100%;
    font-size: 0.95rem;
}

/* Bootstrap Fix: Vertikale Mitte für Checkbox-Label */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Fix für kleine Popups */
.modal-dialog {
    max-width: 700px;
}

/* Responsive Verhalten */
@media (max-width: 768px) {
    #eintragsliste {
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 1rem;
    }
}
