/* Styling chung cho trang */
.order-management-page {
    padding: 20px;
    background-color: #f4f7f9;
}

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

.new-order-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* Container cho danh sách đơn hàng */
.order-list-container {
    display: grid;
    /* Hiển thị 3 cột card trên màn hình lớn */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px;
}

/* Styling Card Đơn hàng */
.order-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #007bff; /* Màu sắc cho đơn hàng MỚI */

    display: flex;
    flex-direction: column;
}

/* Header Card */
.card-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
}
.order-number {
    color: #333;
    font-size: 1.1em;
}

/* Thời gian chờ (Wait Time) */
.wait-time-indicator {
    padding: 8px;
    background-color: #fff3cd; /* Màu nền nhẹ */
    color: #856404; /* Màu chữ cảnh báo */
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Highlight đơn hàng đã đợi quá lâu (Nếu thời gian đã đợi > ngưỡng) */
.order-card.status-overdue {
    border-left: 5px solid #dc3545; /* Đổi sang màu đỏ khẩn cấp */
    background-color: #fff0f0;
}
.order-card.status-overdue .wait-time-indicator {
    background-color: #dc3545;
    color: white;
    font-weight: bold;
}

/* Danh sách món trong đơn */
.order-items {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}
.order-items li {
    padding: 3px 0;
    font-size: 0.9em;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}
.order-items li:last-child {
    border-bottom: none;
}
.quantity {
    font-weight: bold;
    color: #007bff;
}

/* Nút hành động */
.card-footer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.action-button {
    flex-grow: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}
.primary-action {
    background-color: #28a745; /* Màu xanh lá cho hành động chính */
    color: white;
}
.secondary-action {
    background-color: #e9ecef;
    color: #333;
}
