.column-3 {
    flex: 50;
    min-width: 0;
}

#right1_section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#right1_section .panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

#right1_calendar_panel {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 右侧标题栏 */
.right-header {
    background-color: #FFCC80;
    color: #5D4037;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 15px;
}

.right-header-title {
    font-size: 14px;
    font-weight: bold;
    color: #5D4037;
}

.right-header-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

/* 统一的右侧控制按钮样式 */
.right-control-btn {
    font-size: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px 3px;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.right-control-btn:hover {
    animation: pulse 0.5s ease-in-out;
    background: rgba(255, 255, 255, 0.5);
}

.combo-selector {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
}

.combo-selector:hover {
    border-color: #9ca3af;
}

.combo-selector:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.right-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    text-align: left;
}

/* 保存按钮 */
.save-month-btn {
    font-size: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px 3px;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.save-month-btn:hover {
    animation: pulse 0.5s ease-in-out;
    background: rgba(255, 255, 255, 0.5);
}

/* 刷新按钮 */
.refresh-btn {
    font-size: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px 3px;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.refresh-btn:hover {
    animation: pulse 0.5s ease-in-out;
    background: rgba(255, 255, 255, 0.5);
}

.nav-link-btn {
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    background: #f5f5f5;
    transition: all 0.2s;
}

.nav-link-btn:hover {
    background: #FF5722;
    color: white;
    border-color: #FF5722;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 切换视图按钮 */
.toggle-view-btn {
    font-size: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px 3px;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.toggle-view-btn:hover {
    animation: pulse 0.5s ease-in-out;
    background: rgba(255, 255, 255, 0.5);
}

/* 导出Excel按钮 */
.export-excel-btn {
    font-size: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px 3px;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.export-excel-btn:hover {
    animation: pulse 0.5s ease-in-out;
    background: rgba(255, 255, 255, 0.5);
}

/* 视图容器 */
.right-view-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* 右侧日历容器 */
.right-calendar-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    overflow-x: auto;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

/* 周标题头 */
.right-weekday-header {
    display: grid;
    grid-template-columns: repeat(7, 189px);
    gap: 1px;
    background: #f0fdf4;
    border-bottom: 2px solid #f0fdf4;
    width: max-content;
    min-width: 100%;
    z-index: 10;
    position: relative;
}

.right-weekday-item {
    background: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.8rem;
    border: 1px solid #22c55e;
}

/* 内容区域 */
.right-content-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    background: #ffffff;
    width: max-content;
    min-width: 100%;
}

.right-menu-content {
    display: flex;
    flex-direction: column;
    width: max-content;
    min-width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
    background: #ffffff;
}

/* 每周一行 */
.right-menu-row {
    display: grid;
    grid-template-columns: repeat(7, 189px);
    gap: 1px;
    background: #ecf0f1;
    width: max-content;
    min-width: 100%;
    margin-bottom: 1px;
}

/* 每天格子 */
.right-day {
    border: 2px solid #d8f5f8;
    border-radius: 8px;
    min-height: 220px;
    padding: 8px;
    cursor: pointer;
    background: #fff;
    display: flex;
    flex-direction: column;
    width: 189px;
    min-width: 189px;
}

.right-day:hover {
    border-color: #22c55e;
}

.right-day.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.right-day-header {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 5px;
}

.right-day-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.right-day-category {
    margin: 4px 0;
    font-weight: bold;
    color: #333;
}

.right-day-item {
    margin: 2px 0;
    padding: 2px 4px;
    font-size: 12px;
    border-radius: 3px;
}

/* 分类颜色 */
.right-day-category:nth-of-type(1) {
    color: #dc3545;
}

.right-day-category:nth-of-type(2) {
    color: #fd7e14;
}

.right-day-category:nth-of-type(3) {
    color: #28a745;
}

.right-day-category:nth-of-type(4) {
    color: #17a2b8;
}

.right-day-category:nth-of-type(n+5) {
    color: #6c757d;
}

.right-day-tip {
    font-size: 0.78rem;
    color: #7f8c8d;
}

/* 列表视图 */
.right-list-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    overflow-y: auto;
    padding: 15px;
}

.list-header {
    padding: 10px 0;
    border-bottom: 2px solid #FF5722;
    margin-bottom: 15px;
}

.list-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.list-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.2s;
}

.list-item:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.list-item-date {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.list-item-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.list-item-dish {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
}

/* 菜品分组样式 */
#right_menu_content .dish-group-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
}

#right_menu_content .dish-group-row:last-child {
    border-bottom: none;
}

#right_menu_content .dish-group-title-inline {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

#right_menu_content .dish-group-title-inline .dish-count {
    font-size: 10px;
    background: rgba(255,255,255,0.3);
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: normal;
}

#right_menu_content .dish-items-inline {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

#right_menu_content .dish-item-inline {
    font-size: 13px;
    color: #333;
    padding: 2px 0;
    background: none !important;
    border: none !important;
    line-height: 1.4;
}

/* 分类颜色样式 */
#right_menu_content .dish-group-title-inline.main {
    background-color: #e53935;
}

#right_menu_content .dish-group-title-inline.half {
    background-color: #ff9800;
}

#right_menu_content .dish-group-title-inline.veg {
    background-color: #4caf50;
}

#right_menu_content .dish-group-title-inline.soup {
    background-color: #2196f3;
}

#right_menu_content .dish-group-title-inline.staple {
    background-color: #9c27b0;
}

#right_menu_content .dish-group-title-inline.fruit {
    background-color: #e91e63;
}

#right_menu_content .dish-group-title-inline.snack {
    background-color: #795548;
}

#right_menu_content .dish-group-title-inline.drink {
    background-color: #00bcd4;
}

#right_menu_content .dish-group-title-inline.hot {
    background-color: #e53935;
}

#right_menu_content .dish-group-title-inline.cold {
    background-color: #00bcd4;
}

#right_menu_content .dish-group-title-inline.dessert {
    background-color: #ff5722;
}

/* 全屏样式 */
#right1_section.fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: 100% !important;
    flex: none !important;
}

.hidden {
    display: none !important;
}