#vouchers-table {
    width: 100%;
    border-collapse: collapse;
}

#vouchers-table tr.used {
    display: none;
}

#vouchers-table th, #vouchers-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#show-used-toggle {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 2rem;
}

#show-used-toggle .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

#show-used-toggle .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#show-used-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

#show-used-toggle .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

#show-used-toggle input:checked + .slider {
    background-color: #C89B46;
}

#show-used-toggle input:checked + .slider:before {
    transform: translateX(26px);
}


@media (max-width: 768px) {
    #vouchers-table,
    #vouchers-table thead,
    #vouchers-table tbody,
    #vouchers-table th,
    #vouchers-table td,
    #vouchers-table tr {
        display: block;
    }

    #vouchers-table thead {
        display: none;
    }

    #vouchers-table tr {
        margin-bottom: 15px;
    }

    #vouchers-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border: 1px solid #ddd;
    }

    #vouchers-table td:before {
        content: attr(data-label);
        font-weight: bold;
        width: 50%;
        text-align: left;
    }
}