.form-section {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}
.section-title {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 8px;
    margin-bottom: 15px;
    color: #0d6efd;
    font-size: 1.25rem;
}
.required:after {
    content: " *";
    color: red;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table th, .table td {
    padding: 8px;
    font-size: 0.875rem;
}
.form-control, .form-select {
    font-size: 0.875rem;
}
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}
.remove-btn {
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 2px 8px;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    font-size: 0.75rem;
}
.remove-btn:hover {
    background: #dc3545;
    color: white;
}
@media (max-width: 768px) {
    .form-section {
        padding: 10px;
    }
    .section-title {
        font-size: 1.1rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    .table th, .table td {
        padding: 4px 6px;
        font-size: 0.75rem;
    }
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}
.grocery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.grocery-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
}
.grocery-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.category-box {
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 15px;
height: 100%;
}
.category-title {
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.form-check-inline {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}
.form-check-label {
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .category-box {
        padding: 10px;
    }
    .form-check-label {
        font-size: 0.8rem;
    }
}