.meal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 24px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 1000px;
}

.meal-table th, .meal-table td {
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    vertical-align: middle;
    word-break: break-all;
}

.meal-table th:last-child, .meal-table td:last-child {
    border-right: none;
}

.meal-table tr:last-child td {
    border-bottom: none;
}

.meal-table th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #495057;
    height: 50px;
}

.meal-table.weekly td {
    height: 200px;
    background-color: #fff;
    transition: background-color 0.2s;
}

.meal-type-label {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #495057;
    width: 100px;
}

.meal-table .sunday { color: #dc3545; }
.meal-table .saturday { color: #0d6efd; }

.edit-input {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
    font-family: inherit;
    resize: none;
    display: block;
    background-color: #fff;
    outline: none;
    text-align: center;
    transition: all 0.2s;
    line-height: 1.6;
}

.edit-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.meal-table.weekly.edit-mode td {
    background-color: #fff;
    padding: 0;
}

.edit-meal-input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    display: block;
    background-color: transparent;
    outline: none;
    text-align: center;
    transition: all 0.2s;
    line-height: 1.6;
    overflow-y: hidden;
}

.edit-meal-input:focus {
    background-color: #fff !important;
    box-shadow: inset 0 0 0 2px #0d6efd;
    position: relative;
    z-index: 10;
}

.meal-text {
    white-space: pre-line;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.week-selector {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#week-picker {
    border: none;
    padding: 5px 10px;
    font-weight: 600;
    color: #495057;
    outline: none;
    cursor: pointer;
}

.meal-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
