body {
    margin: 50px;
}

table {
    margin-top: 20px;
}

th,
td {
    text-align: center;
    vertical-align: middle;
}

.edit-btn,
.delete-btn,
.save-btn {
    cursor: pointer;
}

.save-btn {
    display: none;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}
.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
    text-align: center;
    margin-bottom: 20px;
}
label {
    display: block;
    margin: 10px 0 5px;
}
input[type="text"], input[type="number"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
button {
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}
button:hover {
    background-color: #218838;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}
th {
    background-color: #f2f2f2;
}
.btn-group {
    display: flex;
    justify-content: center;
}
.btn-group button {
    background-color: #007bff;
    margin: 0 2px;
}
.btn-group button:hover {
    background-color: #0056b3;
}
.delete-button {
    background-color: #dc3545;
}
.delete-button:hover {
    background-color: #c82333;
}
    .totals-container {
        position: sticky;
        top: 0;
        background: linear-gradient(to right, #4facfe, #0094fe); /* Hiệu ứng màu gradient */
        padding: 15px;
        z-index: 1000;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Đổ bóng */
        border-radius: 10px; /* Bo góc */
    }
    
    .totals {
        display: flex;
        justify-content: space-around;
        align-items: center;
        font-size: 18px;
        font-weight: bold;
        color: white; /* Chữ trắng để nổi bật */
        text-align: center;
    }

    .total-item {
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.2); /* Nền mờ cho từng mục */
        border-radius: 8px;
        box-shadow: inset 0px 2px 5px rgba(255, 255, 255, 0.2);
    }
    .hidden-column {
        display: none;
    }

.round-button {
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
}

.round-button-suggest {
    bottom: 120px;
    right: 20px;
    background-color: #19a514;
}

.round-button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.round-button-suggest:hover {
    background-color: #0d6e0b;
    transform: scale(1.1);
}
#toastContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}
.round-button, .round-button-suggest {
    position: fixed;    /* Add this to your index.css file */
    
    width: 90px;
    height: 90px;
    border-radius: 50%;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
}
@media (max-width: 768px) {
    /* Existing mobile styles */
    .round-button, .round-button-suggest {
        width: 60px;
        height: 60px;
        font-size: 11px;
    }
    #toastContainer {
        display: none;
    }
    select.form-select {
        width: 100%;
        min-width: 60px;
        padding: 5px;
        font-size: 14px;
        /* Ensure select is visible */
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Make table cells wider for touch targets */
    td {
        min-width: 70px;
    }
    
    /* Ensure the select container cells are visible */
    td:has(select) {
        display: table-cell !important;
        visibility: visible !important;
    }
}