html, body {
    height: auto !important;
    overflow: visible !important;
    position: static !important;
}
/* Background toàn bộ trang web */
body {
    font-family: Arial, sans-serif;
    background: url("../images/natra_hai.jpg") no-repeat center center fixed;
    background-size: cover;
    text-align: center;
    margin: 0;
    padding: 20px;
}
h1 {
    color: #333;
}
.container {
    max-width: 20%;
    margin: 20px auto;

}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    z-index: 9999;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: fadeInOut 3s ease-in-out;
}

input, button {
    padding: 10px;
    margin: 10px;
    width: 90%;
    border-radius: 5px;
    border: 1px solid #ddd;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #218838;
}
/* Căn giữa bảng dữ liệu */
.table-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    
}

table {
    width: 100%;
    max-width: 95%; /* Giới hạn chiều rộng tối đa */
    border-collapse: collapse; /* Gộp đường viền */
    table-layout: fixed; /* Tự động điều chỉnh chiều rộng cột */
    text-align: center;
    background: white;
}


th {
    background-color: #007bff;
    color: rgb(255, 255, 255);
}

td {
    background-color: #e8e8e8;
}

/* Màu chữ cho cột TT */
td.trang-thai {
    font-weight: bold;
}

/* Đã Về - Màu xanh dương */
td.trang-thai.da-ve {
    color: #007bff;
}

/* Đã Giao - Màu xanh lá */
td.trang-thai.da-giao {
    color: #28a745;
}

/* Đơn Tồn - Màu đỏ */
td.trang-thai.don-ton {
    color: #dc3545;
}
/* Căn nút xóa lên góc trên bên phải */
.delete-container {
    position: absolute;
    top: 10px;
    right: 20px;
}

.delete-container button {
    background-color: #dc3545; /* Màu đỏ */
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.delete-container button:hover {
    background-color: #c82333;
}

/* Ẩn menu tùy chọn xóa ban đầu */
.delete-options {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000;
}

.delete-options button {
    width: 100%;
    padding: 10px;
    border: none;
    background: #f8f9fa;
    color: black;
    cursor: pointer;
    text-align: left;
}

.delete-options button:hover {
    background: #ddd;
}
/* In đậm cột Tiền */
td:nth-child(5) { 
    font-weight: bold; 
}

/* Màu chữ đỏ nhẹ cho cột Địa Chỉ */
td:nth-child(7) {
    color: #d9534f;
}
/* Nút chính */
.btn {
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

/* Hiệu ứng hover */
.btn:hover {
    background-color: #2980b9;
}

/* Dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Nội dung của Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 50%;
    min-width: 160px;
    top: 100%;
    right: 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* Hiển thị Dropdown khi hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Nút nhỏ trong menu */
.btn-small {
    padding: 5px;
    background-color: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    width: 100%;
    font-size: 12px;
}

/* Input bên trong Dropdown */
input {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
}
/*backgroud kết quả*/
.order-details {
    background-color: #f8f9fa; /* Màu nền sáng */
    border: 2px solid #007bff; /* Viền màu xanh */
    color: #333; /* Màu chữ đậm */
    font-size: 20px;
    font-weight: bold;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    margin: 20px auto; /* Căn giữa */
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.1);
    max-width: 50%; /* Giới hạn chiều rộng */
    display: none; /* Ẩn ban đầu */
}

/* Căn giữa toàn bộ container */
.order-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.video-container {
    display: flex;
    justify-content: center;  /* Căn giữa theo chiều ngang */
    align-items: center;  /* Căn giữa theo chiều dọc */
    flex-direction: column;
    margin-top: 20px;
}

#video {
    width: 90%; /* Chiếm 90% chiều rộng màn hình */
    max-width: 500px; /* Giới hạn độ rộng tối đa */
    height: 150px; /* Giữ chiều cao thấp để dễ quét mã vạch */
    object-fit: cover; /* Giữ tỷ lệ hiển thị tốt hơn */
    border: 2px solid #007bff;
    border-radius: 10px;
}


.view-text {
    color: #007bff; /* Màu xanh giống link */
    cursor: pointer;
    text-decoration: underline; /* Gạch chân như link */
    font-weight: bold;
}

.view-text:hover {
    color: #0056b3; /* Màu đậm hơn khi di chuột vào */
}
/* Nền mờ khi hiển thị ảnh */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Nội dung popup */
.popup-content {
    position: relative;
    background: white;
    padding: 10px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ảnh hiển thị trong popup */
.popup-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
}

/* Nút đóng */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: red;
}


td, th {
    padding: 3px 1px; /* Giảm khoảng cách trong ô */
    height: 1px; /* Giới hạn chiều cao */
    vertical-align: middle; /* Căn giữa nội dung theo chiều dọc */
    line-height: 1.2; /* Giảm khoảng cách giữa dòng */
    border: 1px solid #000000;
    overflow: hidden;
    white-space: nowrap; /* Ngăn chữ xuống dòng để không làm tăng chiều cao */
}
/*hiện đơn tổng quán trang index*/
.thong-ke {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 20px auto;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.thong-ke h3 {
    margin-bottom: 10px;
}
.filter-link {
    color: #007bff;
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
}
.filter-link:hover {
    color: #0056b3;
}
/*phần đăngh nhập*/
/* Modal đăng nhập */
#login-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.login-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.login-box input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.login-box button {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.login-box button:hover {
    background-color: #0056b3;
}
/*thông báo khi chụp ảnh*/
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 12px 20px;
    position: fixed;
    top: -50px; /* Ẩn trên màn hình trước */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    font-size: 16px;
    opacity: 0;
    transition: top 0.5s ease-in-out, opacity 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    top: 20px; /* Khi hiện lên, nó sẽ trượt xuống */
}
