* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    background: #f4f4f4;
    padding: 20px;
}

h1 {
    text-align: center;
}

.box {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.main-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.checkout-section { border-top: 5px solid #3498db; flex: 2; }
.return-section { border-top: 5px solid #2ecc71; flex: 1; background-color: #f9fff9; }

label {
    display: block;
    margin-bottom: 10px;
}

input {
    width: 100%;
    padding: 8px;
    font-size: 16px;
}

.status-msg {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-weight: bold;
    min-height: 1.2em;
}

.status-msg.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.status-msg.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

button {
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

button {
    margin-top: 12px;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
}

.deleteBtn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.deleteBtn:hover {
    opacity: 0.7;
}

.navigation-bar {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end; /* Schiebt den Button nach rechts */
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d; /* Ein neutrales Grau */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.toggleStatusBtn {
    margin-right: 6px;
    padding: 4px 8px;
    cursor: pointer;
}

/* Container für Button und Checkbox */
.table-controls {
    display: flex;
    flex-direction: column; /* Stapelt Button und Checkbox übereinander */
    align-items: flex-start; /* Richtet alles am linken Rand aus */
    gap: 15px;               /* Abstand zwischen Button und Checkbox */
    margin-bottom: 20px;
}

/* Das Label selbst */
.filter-label {
    display: flex;
    align-items: center;    /* Checkbox und Text vertikal mittig zueinander */
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

/* Kleiner Abstand zwischen Checkbox und Text */
.filter-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;            /* Etwas größer für bessere Bedienbarkeit */
    height: 18px;
    cursor: pointer;
}
/* ---------- Filter Toggle ---------- */

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 16px;
    padding: 10px;
}

/* Switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

/* Hide default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider */
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.2s;
    border-radius: 28px;
}

/* Knob */
.slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

/* Checked state */
.switch input:checked + .slider {
    background-color: #28a745;
}

.switch input:checked + .slider::before {
    transform: translateX(24px);
}
