.dh-invoice-list-container h2,
.phan-cong-container h2 {
    text-align: center;
    color: #fff;
    background-color: #09680C;
    background-size: cover;
    image-rendering: crisp-edges;
    padding: 20px;
    margin: 0;
}

.dh-invoice-list-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 50px;
    padding: 4px;
    border-radius: 8px;
    border : 4px solid #ffc0cb;
}

.dh-invoice-header,
.dh-invoice-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1fr 1.5fr 1.5fr; /* Điều chỉnh tỷ lệ các cột */
    gap: 3px;
    padding: 4px;
    font-weight: bold;
    border-radius: 5px;
    
}

.dh-sync-orders-list .dh-invoice-row {
    font-weight: normal; /* Đảm bảo hàng dữ liệu không bị in đậm nếu bạn không muốn */
    border-radius: 0; /* Xóa bo góc nếu bạn muốn các hàng liền mạch */
}

.dh-invoice-row:nth-child(even) {
    background-color: #2e7d32; /* đỏ rất nhạt */
}

.dh-invoice-row:nth-child(odd) {
    background-color: #ffffff; /* trắng */
}


dh-invoice-row dh-invoice-col
.dh-invoice-header.dh-invoice-col{
    border: 1px solid #fff;
}

.dh-invoice-row .dh-invoice-col {
    border: 1px solid #ffc0cb; /* Màu hồng nhạt (pink) */
}

.dh-invoice-col {
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    padding: 4px;
    border-radius: 5px;
    color: #333;
    background-color: #fff;
}

.dh-invoice-header {
    background-color: #0073aa;
}

.dh-invoice-col a {
    text-decoration: none;
    color: #0073aa;
}

.dh-invoice-col a:hover {
    text-decoration: underline;
}

.dh-invoice-row:hover {
    background-color: #fff176;
}
.phan-cong-row:hover {
    background-color: #fff176;
}

/* Điều chỉnh độ rộng của cột nếu cần */
.dh-invoice-col:first-child,
.dh-invoice-col:nth-child(2) {
    min-width: 150px;
}

.dh-invoice-col:last-child {
    min-width: 180px; /* Đảm bảo độ rộng tối thiểu */
    white-space: nowrap; /* Ngăn xuống dòng */
    overflow: hidden; /* Ẩn nội dung tràn */
    text-overflow: ellipsis; /* Thêm dấu "..." khi nội dung quá dài */
}


/* Thêm phân trang */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a,
.pagination .current {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.pagination .current {
    background-color: #D32F2F;
}

.pagination a:hover {
    background-color: #005a87;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .dh-invoice-header,
    .dh-invoice-row {
        grid-template-columns: repeat(2, 1fr); /* 2 cột trên màn hình nhỏ */
    }

    .dh-invoice-list-container {
        padding: 4px;
    }

    .dh-invoice-header .dh-invoice-col,
    .dh-invoice-row .dh-invoice-col {
        font-size: 14px;
        padding: 4px;
    }
}
.dh-pagination {
    margin-top: 20px;
    text-align: center;
}
.dh-pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
}
.dh-pagination a.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
.dh-pagination a:hover {
    background-color: #0073aa;
    color: #fff;
}

/* Container tổng */
.phan-cong-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    border: 4px solid #ffc0cb;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 4px;
}

/* Header: Các cột mốc thời gian */
.phan-cong-row.phan-cong-header {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Dòng đầu tiên với 6 cột */
    background-color: #6a0965;
    color: #000;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

/* Các dòng trong bảng */
.phan-cong-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 cột cho các dòng dữ liệu */
    gap: 3px;
    padding: 4px;
    align-items: center;
}

/* Ô phân công */
.phan-cong-cell {
    text-align: center;
    padding: 4px;
    font-size: 15px;
    border: 1px solid #ffc0cb;
    border-radius: 5px;
    background-color: #fff;
    word-wrap: break-word;
    word-break: break-word;
    height : 100%;
}

/* Ô chứa nhân viên */
.phan-cong-cell:first-child {
    background-color: #e0f7fa; /* Màu xanh nhạt cho nhân viên */
    font-weight: bold;
}

/* Ô phân công: Màu xanh nhạt */
.phan-cong-info.assigned {
    background-color: #e8f5e9; /* Màu xanh nhạt */
    color: #2e7d32; /* Màu chữ xanh đậm */
    border-radius: 5px;
    font-size: 14px;
    height: 100%;
}

/* Ô chưa phân công: Màu hồng nhạt */
.phan-cong-info.unassigned {
    background-color: #fce4ec; /* Màu hồng nhạt */
    color: #c62828; /* Màu chữ đỏ đậm */
    border-radius: 5px;
    font-size: 14px;
    height: 100%;
}

/* Responsive: Màn hình nhỏ */
@media screen and (max-width: 768px) {
    .phan-cong-row,
    .phan-cong-row.phan-cong-header {
        grid-template-columns: repeat(3, 1fr); /* Hiển thị 3 cột trên màn hình nhỏ */
    }

    .phan-cong-cell {
        font-size: 15px;
        padding: 2px;
    }
    
    .dh-shipper-form-container {
        flex-direction: row; /* Giữ 3 cột */
        gap: 10px;
    }
}

#staff-assignment {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.staff-assignment-left,
.staff-assignment-right {
    flex: 1;
    min-width: 300px; /* Đảm bảo độ rộng tối thiểu */
}

.staff-assignment-left label,
.staff-assignment-right label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.staff-assignment-left select,
.staff-assignment-left input[type="date"],
.staff-assignment-right select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}
#search_invoice_code, #show-calendar {
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    gap: 10px; /* Khoảng cách giữa các phần tử */
}

#search_invoice_code label, #show-calendar label {
    margin-right: 10px; /* Khoảng cách giữa nhãn và input */
	width: 30%;
}

#search_invoice_code input[type="text"], #show-calendar input[type="date"] {
    /*width: 50%;  Chiếm 30% chiều rộng của website */
    padding: 5px;
    box-sizing: border-box; /* Đảm bảo padding không làm tăng kích thước */
}

#search_invoice_code button, #show-calendar button, #status-update button,#staff-assignment button, .shipper-form-column button {
    padding: 10px 15px;
	width: 25%;
    background-color: #0073aa !important;
    color: white;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search_invoice_code button:hover, #show-calendar button:hover, #status-update button:hover,#staff-assignment button:hover, .shipper-form-column button:hover {
    background-color: #005a87 !important;
}

#dh_shipper_filter_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.shipper-form-container {
    display: flex;
    justify-content: space-between; /* Chia đều khoảng cách giữa các cột */
    align-items: center; /* Căn giữa các phần tử theo chiều dọc */
    gap: 20px; /* Khoảng cách giữa các cột */
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Đổ bóng */
}

.shipper-form-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1; /* Cân bằng không gian giữa các cột */
}

.shipper-form-column label {
    font-weight: bold;
    margin-bottom: 8px; /* Khoảng cách giữa label và select */
    font-size: 14px;
    color: #333;
}

.shipper-form-column select,
.shipper-form-column button {
    width: 100%; /* Chiếm toàn bộ chiều rộng cột */
    max-width: 200px; /* Độ rộng tối đa */
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    text-align: center;
}


/* CSS for two-column layout */
.info-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.info-box {
    width: 48%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Container chung */
.lich-nghi-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow-x: auto; /* Cho phép cuộn ngang */
}

/* Tiêu đề */
.lich-nghi-container h3 {
    background: #1976d2;
    color: #fff;
    padding: 10px;
    margin: 0;
    font-size: 18px;
    text-align: center;
}

/* Bảng */
.lich-nghi-table {
    width: 100%;
    min-width: 800px; /* Đặt độ rộng tối thiểu để tránh bóp méo */
    border-collapse: collapse;
    text-align: center;
}

.lich-nghi-table th,
.lich-nghi-table td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

/* Header */
.lich-nghi-table th {
    background: #f5f5f5;
    font-weight: bold;
}

/* Ô có nhân viên nghỉ */
.lich-nghi-info {
    background: #e3f2fd;
    border-radius: 4px;
    padding: 6px;
    margin-bottom: 5px;
}

.lich-nghi-info strong {
    color: #1976d2;
}

.lich-nghi-info em {
    color: #555;
    font-size: 13px;
}

/* Ô trống */
.lich-nghi-empty {
    color: #aaa;
    font-style: italic;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
    .lich-nghi-table {
        font-size: 14px;
    }
    .lich-nghi-table th,
    .lich-nghi-table td {
        padding: 6px;
    }
}
