/* 弹窗基础样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    border: none;
    background: none;
    padding: 4px;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #6b7280;
}

.modal-body {
    padding: 16px;
}

/* 订单详情样式 */
.order-header-info {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.date-meal-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.detail-date {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.meal-badge {
    font-size: 14px;
    color: #ea580c;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.status-badge.pending {
    background: #fff7ed;
    color: #ea580c;
}

.status-badge.completed {
    background: #f0fdf4;
    color: #16a34a;
}

.status-badge.cancelled {
    background: #fef2f2;
    color: #dc2626;
}

.order-user-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    flex: 0 0 70px;
    font-size: 14px;
    color: #6b7280;
}

.info-value {
    font-size: 14px;
    color: #1f2937;
}

.modal-buttons {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.modal-btn.primary {
    background: #ea580c;
    color: white;
}

.modal-btn.primary:hover {
    background: #c2410c;
}

.modal-btn.secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.modal-btn.secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* 响应式样式 */
@media (max-width: 480px) {
    .modal-content {
        width: 92%;
    }
} 