/* 订餐页面专属样式 */

/* 日期选择器 */
.date-selector {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 12px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
}

.date-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--pink-light);
    border-radius: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.date-btn:active {
    transform: scale(0.95);
}

.date-input {
    flex: 1;
    max-width: 200px;
    border: 2px solid #F0E6E9;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    text-align: center;
}

.date-input:focus {
    outline: none;
    border-color: var(--pink);
}

/* 订餐卡片 */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-title {
    font-weight: 600;
    font-size: 16px;
}

.order-meals {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.order-meal-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.meal-emoji {
    font-size: 20px;
}

.order-notes {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #F5F0F2;
    color: var(--text-muted);
    font-size: 14px;
}

.special-request-badge {
    display: inline-block;
    background: var(--yellow-light);
    color: #9C7C00;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* 信息列表增强 */
.info-item {
    padding: 12px 0;
    border-bottom: 1px solid #F5F0F2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 14px;
}

.info-value {
    font-weight: 500;
    font-size: 14px;
}

/* 表单开关 */
.form-switch {
    padding: 8px 0;
}

.form-check-input {
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--pink);
    border-color: var(--pink);
}

/* 订餐管理页面统计网格布局 - 总计占一排，客户和员工各占50% */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.summary-grid .summary-card-total {
    grid-column: 1 / -1;
}

/* 标签页占满宽度 */
.chart-tabs {
    display: flex;
    width: 100%;
}

.chart-tabs .nav-item {
    flex: 1;
}

.chart-tabs .nav-link {
    width: 100%;
    text-align: center;
}

/* 模态框按钮样式增强 */
.btn-danger {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    border: none;
    border-radius: var(--btn-radius);
    padding: 14px;
    font-weight: 600;
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.3);
}

.flex-1 {
    flex: 1;
}

/* 订餐页面按钮微调 */
#mealInputs {
    transition: opacity 0.3s;
}

/* 强调信息样式 */
.info-value-emphasized {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--pink) !important;
}

/* 订餐数量输入框样式 */
.meal-count-input {
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* 客户订餐页面日期选择器微调 */
.date-selector.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* 统计详情样式 */
.summary-details {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.summary-details.small {
    font-size: 11px;
}

/* 表单单选按钮组样式 */
.form-check {
    margin-bottom: 0;
}

/* 新增订餐单选框样式 */
.form-check-input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.form-check-input[type="radio"]:checked {
    background-color: var(--pink);
    border-color: var(--pink);
}

.form-check-label {
    cursor: pointer;
    padding-left: 8px;
    font-size: 16px;
}

/* 单选框分组容器 */
.d-flex.gap-3 {
    gap: 1.5rem !important;
    padding: 12px 0;
}

/* 按钮式单选框样式 */
.btn-check {
    position: absolute;
    clip: rect(0,0,0,0);
    pointer-events: none;
}

.btn-check + .btn-outline-primary {
    border: 2px solid #F0E6E9;
    background: white;
    color: var(--text-muted);
    transition: all 0.2s;
}

.btn-check:checked + .btn-outline-primary {
    border-color: var(--pink);
    background: var(--pink-light);
    color: var(--pink);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

.btn-check:focus + .btn-outline-primary {
    box-shadow: 0 0 0 0.25rem rgba(255, 182, 193, 0.25);
}

.btn-check + .btn-outline-primary:hover {
    border-color: var(--pink);
    background: rgba(255, 182, 193, 0.1);
}

/* 统一订餐记录卡片样式 */
.history-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #F0E6E9, transparent);
    margin: 20px 0;
}

.history-section {
    margin-top: 8px;
}

.history-toggle-btn {
    width: 100%;
    background: var(--pink-light);
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-toggle-btn:hover {
    background: #FFD6DE;
}

.history-toggle-btn:active {
    transform: scale(0.98);
}

.history-toggle-icon {
    font-size: 12px;
    color: var(--pink);
    transition: transform 0.2s;
    display: inline-block;
}

.history-toggle-icon.expanded {
    transform: rotate(90deg);
}

.history-toggle-text {
    font-size: 14px;
    color: var(--pink);
    font-weight: 500;
}

.history-orders-container {
    max-height: 400px;
    overflow-y: auto;
}

/* 历史订餐条目样式 */
.history-order-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid #F5F0F2;
    cursor: pointer;
    transition: all 0.2s;
}

.history-order-item:hover {
    border-color: var(--pink);
    background: #FFF5F7;
    transform: translateX(4px);
}

.history-order-item:last-child {
    margin-bottom: 0;
}

.history-order-date {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-order-meals {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.history-order-meal {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
}

.history-order-notes {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #F5F0F2;
    color: var(--text-muted);
    font-size: 13px;
}

/* 当前订餐区域样式 */
.current-order-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

.current-order-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.current-order-info {
    padding: 16px;
    background: #FFF5F7;
    border-radius: 12px;
    border: 2px solid var(--pink-light);
}

