/* ==== Reset & Global Styles ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.2);
    background-position: center center;
    /* background-size: cover; */ /* Uncomment if you want background to cover entire area */
    /* background-repeat: no-repeat; */ /* Uncomment if you don't want background to repeat */
    display: flex; /* Added for main layout if needed, keep if wrapper is main content */
    flex-direction: column; /* Added for main layout if needed */
    min-height: 100vh; /* Ensures footer is at bottom */
    margin: 0;
    /* Add default font-family for body for better consistency */
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif, "DejaVu Sans", "Segoe UI", Tahoma, sans-serif;
    

       
}
.canhgiua {
    /* ... các thuộc tính khác ... */
    display: flex;
    justify-content: center; /* Dòng này giúp căn giữa phần tử con trực tiếp (container-wrapper) theo chiều ngang */
    align-items: flex-start; /* Dòng này giữ cho nội dung bắt đầu từ phía trên cùng theo chiều dọc */
    /* ... các thuộc tính khác ... */
}
/* ==== Layout Containers ==== */
.container {
    width: 100%;
    margin: 0 auto;
    /* display: flex; */ /* Uncomment if you want to use flexbox for inner content */
    justify-content: center;
    align-items: center;
}

.container-90 {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.viennen {
    width: 100%;
    background-color: #ffffff;
    text-align: center;
}

.canhle,
.canhle-khongvien { /* Gộp chung vì có các thuộc tính giống hệt */
    min-width: 500px;
    overflow: hidden;
    background-color: #ffffff;
    text-align: center;
    padding: 0px 1% 1% 1%;
}

.canhlepq {
    min-width: 1800px; /* Lưu ý: giá trị min-width lớn có thể gây scroll ngang */
    overflow: hidden;
    background-color: #ffffff;
    text-align: center;
    padding: 0px 1% 1% 1%;
}

.giaya4 {
    height: 842px;
    width: 595px;
    overflow: hidden;
    background-color: #ffffff;
    text-align: center;
    margin: auto; /* Tối ưu margin */
    padding: 30px; /* Tối ưu padding */
}

/* ==== Section Specific Body Styles ==== */
.body-chinhanh,
.body-admin { /* Gộp chung vì có các thuộc tính giống hệt */
    padding: 40px;
    box-shadow: 0px 0px 17px 2px rgba(255, 255, 255, 0.8);
}
.body-admin {
    width: 90%; /* Riêng cho .body-admin */
}

/* ==== Buttons ==== */
.submit {
    background: transparent;
    border: 1px solid #f5f5f5;
    color: #fff;
    width: 120px;
    text-transform: uppercase;
    padding: 6px 10px;
    transition: 0.25s ease-in-out;
    margin-top: 30px;
}

.submit a { /* Có vẻ đây là button chứa link, hãy xem xét lại cấu trúc HTML */
    float: left; /* Float có thể gây ra vấn đề layout, xem xét flexbox/grid */
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.submit a:hover {
    background-color: #ddd;
    color: black;
}

/* ==== Headers (Generic) ==== */
.header,
.headers { /* Gộp chung */
    padding: 10px;
    background: rgb(50, 50, 50);
    flex-grow: 1;
}

.header-h1 {
    font-size: 15px;
    color: #f5f5f5;
    text-align: center;
}

.header-h2 {
    font-size: 30px;
    color: #f5f5f5;
    text-align: center;
}

.header-h3 {
    font-size: 10px;
    color: #f5f5f5;
    text-align: center;
}

.print-table { /* Có thể là một biến thể của text-align center */
    max-width: 700px;
    color: #000000;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* ==== Top Name Section ==== */
.topname {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    padding: 10px;
}

.topname-xc {
    font-size: 12px;
    color: #000000;
    text-align: right;
}

.topname-ten {
    font-size: 15px;
    color: #ff0000;
    text-align: right;
    margin-top: 5px;
    margin-bottom: 5px;
}

.topname-submit {
    background-color: #ffffff;
    border: 1px solid #000000;
    color: #000000;
    width: 120px;
    text-transform: uppercase;
    padding: 6px 10px;
    transition: 0.2s ease-in-out;
}

.topname-submit:hover {
    background-color: rgba(230, 149, 0, 0.8);
    color: rgb(255, 0, 0);
}

/* ==== Top Navigation (topnav) ==== */
.topnav {
    width: 100%;
    text-align: center;
    background-color: #ffffff;
}

.topnav-h1 {
    font-size: 10px;
    color: #000000;
    text-align: left;
}

.topnav-submit {
    background-color: #e2e2e2;
    border: 1px solid #000000;
    border-radius: 30px;
    color: #000000;
    text-transform: uppercase;
    padding: 10px 30px;
    margin-top: 5px;
    font-size: 13px;
    transition: 0.25s ease-in-out;
}

.topnav-submit-chon {
    background-color: #ff0000;
    border: 1px solid #000000;
    border-radius: 30px;
    color: #000000;
    text-transform: uppercase;
    padding: 10px 30px;
    margin-top: 5px;
    font-size: 14px;
    transition: 0.25s ease-in-out;
}

.topnav-submit:hover {
    background-color: rgba(230, 149, 0, 0.8);
    color: rgb(255, 255, 255);
}

.topnav-submita {
    background-color: #e2e2e2;
    border: 1px solid #000000;
    color: #000000;
    text-transform: uppercase;
    padding: 6px 10px;
    margin-top: 5px;
    font-size: 14px;
    transition: 0.25s ease-in-out;
}

.bt-yes {
    background-color: #15ff00;
    border: 1px solid #000000;
    border-radius: 30px;
    color: #000000;
    text-transform: uppercase;
    padding: 5px 15px;
    font-size: 10px;
    transition: 0.25s ease-in-out;
}

.bt-yes:hover,
.bt-no:hover,
.topnav-submita:hover { /* Gộp các hover effect giống nhau */
    background-color: rgba(230, 149, 0, 0.8);
    color: rgb(255, 255, 255);
}

.bt-no {
    background-color: #ff0000;
    border: 1px solid #000000;
    border-radius: 30px;
    color: #000000;
    padding: 5px 15px;
    font-size: 10px;
    transition: 0.25s ease-in-out;
}

.topnav a {
    float: left; /* Cân nhắc thay thế float bằng flexbox */
    display: block;
    color: #000000;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.topnav a:hover {
    background-color: rgba(230, 149, 0, 0.8);
    color: black;
}

.content {
    background-color: #ddd;
    padding: 10px;
}

/* ==== Body Content ==== */
.body {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    padding: 0px 10px 0px 0px;
}

#form-home {
    max-width: 700px;
    background: rgba(25, 0, 138, 0.8);
    flex-grow: 1;
    padding: 30px;
    box-shadow: 0px 0px 17px 2px rgba(255, 255, 255, 0.8);
}

.body-h1 {
    font-size: 10px;
    color: #000000;
    text-align: left;
}

.body-submit {
    background-color: #ffffff;
    border: 1px solid #f5f5f5;
    width: 120px;
    text-transform: uppercase;
    padding: 10px;
    transition: 0.25s ease-in-out;
    margin-top: 5px;
    font-size: 14px;
}

.body-submit:hover {
    background-color: rgba(230, 149, 0, 0.8);
    color: rgb(255, 255, 255);
}

/* ==== Footer ==== */
.footer {
    padding: 10px;
    background: rgb(50, 50, 50);
    flex-grow: 1;
}

.footer-h1 {
    font-size: 10px;
    color: #ffffff;
    text-align: center;
}

/* ==== Text Styles ==== */
.center { /* Tên không rõ ràng, cân nhắc đổi tên */
    font-size: 10px;
    color: #000000;
    text-align: center;
}

.text-10-trai {
    font-size: 10px;
    color: #000000;
    text-align: left;
    margin: 5px; /* Gộp margin */
    padding-left: 5px;
}

.text-10-giua {
    font-size: 10px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.text-13-giua {
    font-size: 13px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.text-13-giua-trang {
    font-size: 13px;
    color: #ffffff;
    text-align: center;
    margin: 5px;
}

.text-13-trai {
    font-size: 13px;
    color: #000000;
    text-align: left;
    margin: 5px 10px; /* Gộp margin */
    padding: 0 10px; /* Gộp padding */
}

.text-13-trai-do {
    font-size: 13px;
    color: #ff0000;
    text-align: left;
    margin: 5px;
}

.text-13-phai {
    font-size: 13px;
    color: #000000;
    text-align: right;
    margin: 5px;
}

.text-10-trai-do {
    font-size: 10px;
    color: #ff0000;
    text-align: left;
    margin: 5px;
    padding-left: 5px;
}

.text-15-giua-den {
    font-size: 15px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.text-15-giua-do {
    font-size: 15px;
    color: #ff0000;
    text-align: center;
    margin: 5px;
}

.text-15-giua-vang {
    font-size: 15px;
    color: #e5ff00;
    text-align: center;
    margin: 5px;
}

.text-20-giua-trang {
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    margin: 5px;
}

.table-canhbaodo {
    width: 100%;
    color: #ff0000;
    background-color: #a80c0c;
    text-align: center;
}

.table-name {
    font-size: 20px;
    min-width: 500px;
    color: #000000;
    text-align: center;
}

.text-24-canhbao {
    font-size: 24px;
    color: #ffd000;
    text-align: center;
    margin: 5px;
}

.text-tb {
    font-size: 20px;
    color: #ff0000;
    text-align: center;
    margin: 0;
}

.text-ten-quyen {
    font-size: 13px;
    color: #000000;
    text-align: left;
    height: 10px;
    margin: 5px;
}

.inphut-text-13-trai {
    font-size: 13px;
    width: 100%;
    color: #000000;
    text-align: left;
    margin: 5px;
}

.inphut-text-13-do {
    font-size: 13px;
    max-width: 350px;
    color: #a80c0c;
    text-align: left;
    margin: 5px;
}

/* ==== Phiếu Hàng (phieuhang) ==== */
#phieuhang-wrapper {
    min-height: 120vh;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.phieuhang-h1 {
    font-size: 20px;
    color: #000000;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.phieuhang-h2 {
    font-size: 15px;
    color: #000000;
    text-align: right;
    margin: 5px;
}

.phieuhang-inphut-text {
    font-size: 20px;
    max-width: 150px;
    color: #a80c0c;
    text-align: left;
    margin: 5px;
}

.phieuhang-inphut-chon {
    font-size: 20px;
    max-width: 180px;
    color: #a80c0c;
    text-align: left;
    margin: 5px;
}

.phieuhang-inphut-text2 {
    font-size: 20px;
    width: 100%;
    color: #a80c0c;
    text-align: left;
    margin: 5px;
}

.phieuhang-form {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    padding: 0px 30px 10px 30px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.phieuhang-table,
.phieuhang-table2 { /* Gộp chung */
    font-size: 20px;
    color: #000000;
    text-align: center;
}
.phieuhang-table2 {
    width: 100%; /* Riêng cho .phieuhang-table2 */
}

/* ==== Xuất Hàng (xuathang) ==== */
.xuathang-form {
    width: 800px;
    overflow: hidden;
    background-color: #ffffff;
    padding: 0px 30px 10px 30px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.xuathang-table,
.table-cach5,
.table-deu5 { /* Gộp chung */
    font-size: 14px;
    text-align: center;
    margin: 5px;
}
.xuathang-table {
    color: #000000; /* Riêng cho xuathang-table */
}
.table-deu5 {
    margin-left: 5px;
    margin-right: 5px;
}

.xuathang-h1 {
    font-size: 20px;
    color: #000000;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 5px;
}

.xuathang-h2 {
    font-size: 15px;
    color: #000000;
    text-align: right;
    margin: 5px;
}

.xuathang-h3 {
    font-size: 13px;
    color: #000000;
    text-align: left;
    margin: 5px;
}

.xuathang-h4 {
    font-size: 20px;
    color: #000000;
    text-align: left;
    margin: 5px;
}

.xuathang-h4xoa {
    font-size: 12px;
    color: #ff0000;
    text-align: left;
    margin: 5px;
}

.xuathang-tg {
    font-size: 10px;
    color: #000000;
    text-align: left;
    margin: 5px;
}

.xuathang-h5 {
    font-size: 13px;
    color: #000000;
    text-align: center;
    margin: 0;
}

.xuathang-loi {
    font-size: 13px;
    color: #ff0000;
    text-align: center;
    margin: 0;
}

/* ==== Print Styles ==== */
.print-form {
    width: 800px;
    overflow: hidden;
    background-color: #ffffff;
    padding: 0px 30px 10px 30px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.print-formp {
    width: 90%;
    overflow: hidden;
    background-color: #ffffff;
    margin-top: 20px;
    margin-left: 50px;
    margin-right: 50px;
}

.table-checkvoucher {
    min-width: 450px;
    max-width: 700px;
    color: #000000;
    text-align: center;
}

.print-tablepc {
    width: 100%;
    color: #000000;
    text-align: center;
    margin-top: -30px;
    margin-bottom: -40px;
}

.print-table1 {
    width: 100%;
    color: #000000;
    text-align: center;
    margin-top: -5px;
    margin-bottom: -5px;
}

.print-table2 {
    width: 100%;
    color: #000000;
    text-align: center;
}

.print-table-rutgon {
    width: 100%;
    color: #000000;
    text-align: center;
    margin-top: -40px;
    margin-bottom: -65px;
}

.print-h1 {
    font-size: 20px;
    color: #000000;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 5px;
}

.print-h2 {
    font-size: 35px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.print-h2td {
    font-size: 25px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.print-trai { /* Trùng tên với 2 class có định nghĩa khác nhau, cần xem xét */
    font-size: 13px;
    color: #000000;
    text-align: center; /* Định nghĩa sau ghi đè định nghĩa trước */
    margin: 5px;
    /* text-align: right; (Định nghĩa trước đó) */
}

.print-ha {
    font-size: 10px;
    color: #000000;
    text-align: left;
    font-weight: bold;
    margin: 5px;
}

.print-h4 {
    font-size: 20px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.print-h5 {
    font-size: 15px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.print-chuathu {
    font-size: 20px;
    color: #000000;
    text-align: center;
    font-style: italic;
    margin: 5px;
}

.print-tienthu {
    font-size: 60px;
    color: #000000;
    text-align: center;
    font-style: italic;
    margin: 5px;
}

.print-maphieuhang {
    font-size: 60px;
    color: #000000;
    text-align: center;
    margin: 0;
}

.print-tenrutgon {
    font-size: 150px;
    color: #000000;
    text-align: center;
    margin: 0;
}

.print-tenrutgonpc {
    font-size: 100px;
    color: #000000;
    text-align: center;
    margin: 0;
}

.print-thuho {
    font-size: 50px;
    color: #000000;
    text-align: center;
    margin: 0;
}

.print-loi {
    font-size: 13px;
    color: #ff0000;
    text-align: center;
    margin: 0;
}

.print-footer1 {
    font-size: 13px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.print-footer2 {
    font-size: 20px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.print-footer3 {
    font-size: 9px;
    color: #000000;
    text-align: left;
    margin: 5px;
}

.print-footer-hotline {
    font-size: 25px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.print-table-footer {
    width: 100%;
    color: #000000;
    text-align: center;
}

/* ==== X-Print Styles (Similar to Print, consider merging if logic allows) ==== */
/* Lưu ý: Các class xprint-* rất giống với print-*, cân nhắc gộp nếu có thể */
.xprint-form {
    width: 800px;
    overflow: hidden;
    background-color: #ffffff;
    padding: 0px 30px 10px 30px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.xprint-formp {
    width: 90%;
    overflow: hidden;
    background-color: #ffffff;
    margin-top: 20px;
    margin-left: 50px;
    margin-right: 50px;
}

.xprint-table,
.xprint-table1,
.xprint-table2 { /* Gộp chung */
    width: 100%;
    color: #000000;
    text-align: center;
}
.xprint-table1 {
    margin-top: -5px;
    margin-bottom: -5px;
}

.xprint-table-rutgon {
    width: 100%;
    color: #000000;
    text-align: center;
    margin-top: -40px;
    margin-bottom: -65px;
}

.xprint-h1 {
    font-size: 14px;
    color: #000000;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 5px;
}

.xprint-h2 {
    font-size: 35px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.xprint-h2td {
    font-size: 20px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.xprint-h3,
.xprint-h3a { /* Gộp chung */
    font-size: 10px;
    color: #000000;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 5px;
}
.xprint-h3a {
    font-size: 12px; /* Riêng cho xprint-h3a */
}

.xprint-trai { /* Cũng trùng tên với 2 class có định nghĩa khác nhau, cần xem xét */
    font-size: 13px;
    color: #000000;
    text-align: center; /* Định nghĩa sau ghi đè định nghĩa trước */
    margin: 5px;
    /* text-align: right; (Định nghĩa trước đó) */
}

.xprint-ha {
    font-size: 10px;
    color: #000000;
    text-align: left;
    font-weight: bold;
    margin: 5px;
}

.xprint-h4 {
    font-size: 20px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.xprint-h5 {
    font-size: 15px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.xprint-chuathu {
    font-size: 20px;
    color: #000000;
    text-align: center;
    font-style: italic;
    margin: 5px;
}

.xprint-tienthu {
    font-size: 60px;
    color: #000000;
    text-align: center;
    font-style: italic;
    margin: 5px;
}

.xprint-maphieuhang {
    font-size: 60px;
    color: #000000;
    text-align: center;
    margin: 0;
}

.xprint-tenrutgon {
    font-size: 150px;
    color: #000000;
    text-align: center;
    margin: 0;
}

.xprint-thuho {
    font-size: 50px;
    color: #000000;
    text-align: center;
    margin: 0;
}

.xprint-loi {
    font-size: 13px;
    color: #ff0000;
    text-align: center;
    margin: 0;
}

.xprint-footer1 {
    font-size: 13px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.xprint-footer2 {
    font-size: 20px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.xprint-footer3 {
    font-size: 9px;
    color: #000000;
    text-align: left;
    margin: 5px;
}

.xprint-footer-hotline {
    font-size: 25px;
    color: #000000;
    text-align: center;
    margin: 5px;
}

.xprint-table-footer {
    width: 100%;
    color: #000000;
    text-align: center;
}

/* ==== Báo Cáo (baocao) ==== */
.baocao-tencn {
    font-size: 20px;
    color: #000000;
    text-align: left;
    margin: 5px;
}

.baocao-tien {
    font-size: 13px;
    color: #ff0000;
    text-align: left;
    margin: 5px;
}

/* ==== Main Wrappers (General) ==== */
#wrapper-menutop {
    min-height: 50vh;
    display: flex;
    justify-content: center;
}

#form-top-menutop {
    width: 100%;
    height: 50px;
    background: rgba(25, 0, 138, 0.8);
    flex-grow: 2;
    box-shadow: 0px 0px 17px 2px rgba(255, 255, 255, 0.8);
}

.table-ChiNhanh-menutop {
    color: #f5f5f5;
    margin-bottom: 100px;
    flex-grow: 2;
    padding: 80px;
    box-shadow: 0px 0px 17px 2px rgba(255, 255, 255, 0.8);
    max-width: 1200px;
    background: rgba(5, 0, 26, 0.8);
}

.form-heading-menutop {
    font-size: 30px;
    color: #f5f5f5;
    text-align: left;
}

.form-xc {
    font-size: 10px;
    color: #f5f5f5;
    text-align: right;
}

.form-bq {
    font-size: 10px;
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    border-bottom: 1px solid #fff;
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
}

.form-group i {
    color: #fff;
    font-size: 14px;
    padding-top: 10px;
    padding-right: 10px;
}

.form-input {
    background: transparent;
    border: 0;
    outline: 0;
    color: #f5f5f5;
    flex-grow: 1;
}

.form-input::placeholder {
    color: #f5f5f5;
}

.form-submit {
    background: transparent;
    border: 1px solid #f5f5f5;
    color: #fff;
    width: 120px;
    text-transform: uppercase;
    padding: 6px 10px;
    transition: 0.25s ease-in-out;
    margin-top: 30px;
}

.form-submit:hover {
    border: 1px solid #54a0ff;
}

.th {
    font-size: 15px;
    color: #f5f5f5;
    text-align: left;
    margin-bottom: 50px;
}

.th1 {
    font-size: 15px;
    color: #e5ff00;
    text-align: left;
    margin-right: 300px;
}

.th2 {
    font-size: 15px;
    color: #f5f5f5;
    text-align: left;
    margin-bottom: 30px;
}

.th3 {
    font-size: 10px;
    color: #f5f5f5;
    text-align: left;
    margin-bottom: 30px;
}

.table_ChiNhanh {
    font-size: 14px;
    color: #f5f5f5;
    text-align: left; /* Changed from center due to .table_ChiNhanh in DangNhap section */
    margin-bottom: 100px;
}

.table_dangnhap {
    font-size: 10px;
    color: #f5f5f5;
    text-align: center;
    padding: 30px;
    box-shadow: 0px 0px 17px 2px rgba(255, 255, 255, 0.8);
    max-width: 1200px;
    background: rgba(5, 0, 26, 0.8);
    flex-grow: 1;
}

/* ==== Menu Footer ==== */
#form-menu-footer {
    width: 100%;
    height: 50px;
    background: rgba(25, 0, 138, 0.8);
    flex-grow: 2;
    padding: 10px 30px 30px;
    box-shadow: 0px 0px 17px 2px rgba(255, 255, 255, 0.8);
}

.h1-menu-footer {
    font-size: 15px;
    color: #f5f5f5;
    text-align: left;
    margin-bottom: 50px;
}

/* ==== Wrapper Specific ==== */
#wrapper_cn {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wrapper {
    /* min-height: 120vh;
    display: flex;
    justify-content: center;
    align-items: center; */
    flex: 1; /* Added based on later body style */
    padding: 0px 0; /* Added based on later body style */
  
}

#wrapperdmk {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==== Login/Authentication Forms ==== */
#form_DangNhap {
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.8);
    flex-grow: 1;
    padding: 30px 30px 40px;
    box-shadow: 0px 0px 17px 2px rgba(255, 255, 255, 0.8);
}

#form-ChiNhanh {
    max-width: 1000px;
    background: rgba(0, 0, 0, 0.8);
    flex-grow: 1;
    padding: 30px 30px 40px;
    box-shadow: 0px 0px 17px 2px rgba(255, 255, 255, 0.8);
}

.form-heading {
    font-size: 20px;
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 10px;
}

.form-heading1 {
    font-size: 40px;
    color: #fffb00;
    text-align: center;
    margin-bottom: 30px;
}

.form-heading2 {
    font-size: 15px;
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 30px;
}

.form-dangnhap {
    font-size: 30px;
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 30px;
}

/* form-bq is defined twice, second one seems duplicate */
/* .form-bq {
    font-size: 10px;
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 30px;
} */

/* form-group is defined twice, second one seems duplicate */
/* .form-group {
    border-bottom: 1px solid #fff;
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
} */

/* form-group i is defined twice, second one seems duplicate */
/* .form-group i {
    color: #fff;
    font-size: 14px;
    padding-top: 10px;
    padding-right: 10px;
} */

/* form-input is defined twice, second one seems duplicate */
/* .form-input {
    background: transparent;
    border: 0;
    outline: 0;
    color: #f5f5f5;
    flex-grow: 1;
} */

/* form-input::placeholder is defined twice, second one seems duplicate */
/* .form-input::placeholder {
    color: #f5f5f5;
} */

#eye i { /* Specific for eye icon in password field */
    padding-right: 0;
    cursor: pointer;
}

/* form-submit is defined twice, second one seems duplicate but with width: 100% */
.form-submit {
    background: transparent;
    border: 1px solid #f5f5f5;
    color: #fff;
    width: 100%; /* Changed from 120px */
    text-transform: uppercase;
    padding: 6px 10px;
    transition: 0.25s ease-in-out;
    margin-top: 30px;
}

.form-submit:hover {
    border: 1px solid #54a0ff;
}

/* Th, th1, th2, th3 are defined twice, second one seems duplicate */
/* .th {
    font-size: 15px;
    color: #f5f5f5;
    text-align: left;
    margin-bottom: 50px;
}

.th1 {
    font-size: 15px;
    color: #e5ff00;
    text-align: left;
    margin-right: 300px;
}

.th2 {
    font-size: 15px;
    color: #f5f5f5;
    text-align: left;
    margin-bottom: 30px;
}

.th3 {
    font-size: 10px;
    color: #f5f5f5;
    text-align: left;
    margin-bottom: 30px;
} */

/* table_ChiNhanh is defined twice, second one changes text-align */
/* .table_ChiNhanh {
    font-size: 14px;
    color: #f5f5f5;
    text-align: left;
    margin-bottom: 100px;
} */

/* table_dangnhap is defined twice, second one seems duplicate */
/* .table_dangnhap {
    font-size: 10px;
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 00px;
    flex-grow: 1;
    padding: 30px 30px 30px;
    box-shadow: 0px 0px 17px 2px rgba(255, 255, 255, 0.8);
    max-width: 1200px;
    background: rgba(5, 0, 26, 0.8);
} */

/* ==== Menu Styles ==== */
#menu ul {
    background: #1F568B;
    list-style-type: none;
    text-align: center;
}

#menu li {
    color: #f1f1f1;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    margin-left: -5px;
    position: relative;
    width: 220px;
    font-size: 13px;
}

#menu a {
    text-decoration: none;
    color: #fff;
    display: block;
}

#menu a:hover {
    background: #F1F1F1;
    color: #333;
}

/* Dropdown Menu */
.sub-menu {
    display: none;
    position: absolute;
    background-color: #000000;
}

#menu li:hover .sub-menu {
    display: block;
}

.sub-menu li {
    display: block; /* Changed from none to block */
    margin-left: 0 !important;
}

/* ==== Icon List Styles ==== */
ul.icon {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
}

ul.icon li {
    display: flex;
    text-align: center;
    width: 200px;
}

ul.icon li img {
    max-width: 100%;
}

.icon { /* Trùng với .icon-i, xem xét gộp hoặc tách rõ ràng hơn */
    border-bottom: 1px solid #fff;
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
}

.icon-i { /* Rất giống .icon, cân nhắc gộp */
    border-bottom: 1px solid #fff;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    /* width: 50px; */ /* Bị comment out */
}

/* ==== Menua (Similar to Menu, consider merging) ==== */
#menua ul {
    background: #1F568B;
    list-style-type: none;
    text-align: center;
}

#menua li {
    color: #f1f1f1;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    margin-left: -5px;
    position: relative;
    width: 220px;
    font-size: 13px;
}

#menua a {
    text-decoration: none;
    color: #fff;
    display: block;
}

#menua a:hover {
    background: #F1F1F1;
    color: #333;
}

.sub-menua {
    display: flex; /* Changed from none */
    position: absolute; /* Kept absolute for dropdown */
    background-color: #000000;
    margin-left: 0 !important;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
    width: 200px;
}

#menua li:hover .sub-menua {
    display: flex; /* Changed from block to flex */
}

.sub-menua li {
    margin-left: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
    width: 200px;
}

.menu {
    width: 100%;
    text-align: center;
}

.menuicon { /* Rất giống ul.menuicon */
    text-align: center;
    width: 100%;
}

.menuicon-i {
    display: flex;
    width: 500px; /* Cố định width, cân nhắc responsive */
}

ul.menuicon {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

ul.menuicon li {
    display: flex;
    justify-content: space-between;
    text-align: center;
    width: 10%;
}

ul.menuicon li img {
    max-width: 100%;
}

/* ==== Floating Buttons ==== */
.float-button-up {
    position: fixed;
    right: 5%;
    bottom: 40px;
}

.float-button-home {
    position: fixed;
    left: 5%;
    bottom: 40px;
}

.float-button-up a,
.float-button-home a { /* Gộp chung */
    font-size: 18px;
    color: #fff;
    background-color: #620000;
    border-radius: 50%;
    text-align: center;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==== Main Content Layout (Redundant with initial body, merged/optimized) ==== */
.container-fluid-custom {
    max-width: 1500px; /* Increased max-width */
    margin: 0 auto;
    padding: 0 15px;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding-bottom: 50px;
}

.icon-item {
    flex-basis: calc(25% - 30px);
    max-width: 200px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.21);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
}

.icon-item span {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgb(255, 255, 255);
    display: block;
}

/* ==== Accordion Styles ==== */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    font-size: 22px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: #0056b3;
}

.accordion-header::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    display: none;
    overflow: hidden;
}

.accordion-content h3 {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
    margin-top: 0;
    font-size: 14px;
}

/* General H3/H2 styling (if not part of accordion) */
h3, h2 { /* Gộp chung */
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
    
}
h2 {
    font-size: 10px;
}

/* ==== Blue Button (General) ==== */
.blue-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    background-color: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #007bff;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
}

.blue-button:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-2px);
}

.blue-button:active {
    background-color: #004085;
    border-color: #002752;
    transform: translateY(0);
}

/* ==== Responsive Adjustments ==== */
@media (max-width: 992px) {
    .icon-item {
        flex-basis: calc(33.33% - 30px);
    }
    .header-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .icon-item {
       flex-basis: calc(33.33% - 30px);
    }
}

@media (max-width: 600px) {
    #menu li {
        height: 50px;
        width: 100%;
    }
    .sub-menu {
        position: static;
    }
    ul.menuicon li {
        width: 25%;
    }
    .icon-item {
        flex-basis: calc(50% - 30px);
        max-width: 250px;
    }
    .header-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .icon-item {
        flex-basis: calc(50% - 30px);
        max-width: 250px;
    }
    .header-title {
        font-size: 1.8rem;
    }
}


        .container {
            background-color: #ffffff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        }
        .section-title {
            font-size: 1.8em;
            color: #333;
            margin-bottom: 20px;
            border-bottom: 2px solid #007bff;
            padding-bottom: 10px;
        }
        .info-item {
            margin-bottom: 10px;
        }
        .info-item strong {
            color: #007bff;
        }
        table th, table td {
            vertical-align: middle !important;
        }
        .text-muted {
            color: #6c757d !important;
        }
        .form-inline .form-control-sm {
            display: inline-block;
            width: auto;
            vertical-align: middle;
        }
        /* Style cho các mục trong ô khi có nhiều giá trị */
        .list-item {
            margin-bottom: 5px;
            padding: 2px 0;
        }
        .list-item:last-child {
            margin-bottom: 0;
        }
             
       
        .canhle {
            padding: 0 20px;
        }
        h1 {
            color: #333;
            text-align: center;
            margin-bottom: 20px;
        }
        .text-15-giua-do {
            color: red;
            text-align: center;
            margin-bottom: 15px;
            font-weight: bold;
        }
        .text-13-trai {
            display: block;
            margin-bottom: 8px;
            color: #555;
        }
        textarea, input[type="text"], input[type="file"] {
            width: calc(100% - 22px); /* Trừ padding và border */
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box; /* Đảm bảo padding không làm tăng chiều rộng */
        }
        textarea {
            resize: vertical; /* Cho phép người dùng thay đổi chiều cao */
            min-height: 80px;
        }
        input[type="submit"], .topnav-submit {
            background-color: #007bff;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            text-decoration: none;
            display: inline-block;
            text-align: center;
            margin-top: 10px;
        }
        input[type="submit"]:hover, .topnav-submit:hover {
            background-color: #0056b3;
        }
        .back-link {
            display: inline-block;
            margin-bottom: 20px;
            color: #007bff;
            text-decoration: none;
        }
        .back-link:hover {
            text-decoration: underline;
        }



         .container-wrapper {
            width: 100%;
            max-width: 700px; /* Adjusted max-width for a compact form */
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            padding: 30px;
            box-sizing: border-box;
        }

        /* Header Styling */
        .section-header {
            text-align: center;
            margin-bottom: 30px;
            border-bottom: 1px solid #eee;
            padding-bottom: 15px;
        }

        .section-header h1 {
            font-size: 32px;
            color: #2c3e50; /* Darker blue for headings */
            margin-bottom: 10px;
            font-weight: 600;
        }

        /* Alert/Error Message */
        .alert-message {
            color: #dc3545; /* Red for error messages */
            font-size: 16px;
            font-weight: bold;
            margin-top: 15px;
            text-align: center;
        }

        /* Form Layout */
        .form-grid {
            display: grid;
            grid-template-columns: 1fr; /* Default to single column */
            gap: 20px; /* Space between rows/columns */
        }

        @media (min-width: 600px) {
            .form-grid {
                grid-template-columns: 1fr 1fr; /* Two columns on larger screens */
            }
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group.full-width {
            grid-column: 1 / -1; /* Span full width on multi-column grid */
        }

        .form-group label {
            font-weight: 600;
            color: #555;
            margin-bottom: 8px;
            font-size: 15px;
        }

        /* Input, Select, Textarea Styling */
        .form-group input[type="text"],
        .form-group input[type="date"],
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #ccd0d5;
            border-radius: 6px;
            font-size: 16px;
            color: #333;
            box-sizing: border-box; /* Include padding and border in width */
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .form-group input[type="text"]:focus,
        .form-group input[type="date"]:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
            outline: none;
        }

        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }

        .form-group select {
            appearance: none; /* Remove default select arrow */
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.9%2011-3.1%2016.2L128.3%20263.3c3.8%205.1%209.7%208.2%2016.4%208.2s12.6-3.1%2016.4-8.2l119.8-150.6c1.9-5.2.8-11.3-3.1-16.2z%22%2F%3E%3C%2Fsvg%3E');
            background-repeat: no-repeat;
            background-position: right 10px top 50%;
            background-size: 12px auto;
            padding-right: 30px; /* Make space for custom arrow */
        }
 
   

        /* Grid cho thông tin */
        .info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr; /* Mặc định 2 cột */
            gap: 25px; /* Khoảng cách giữa các mục */
            margin-bottom: 30px;
        }

        .info-item {
            display: flex;
            flex-direction: column;
            background-color: #fdfdfd;
            padding: 18px 20px;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .info-item label {
            font-weight: 500;
            color: #555;
            margin-bottom: 8px;
            font-size: 0.95em;
        }

        .info-item span {
            font-weight: 400;
            color: #333;
            font-size: 1.1em;
            word-wrap: break-word; /* Đảm bảo văn bản dài không tràn ra ngoài */
        }

        .info-item.full-width {
            grid-column: 1 / -1; /* Chiếm toàn bộ chiều rộng */
        }

        /* Textarea cho phản hồi */
        textarea {
            width: 100%;
            padding: 15px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-family: 'Roboto', sans-serif;
            font-size: 1.05em;
            min-height: 120px;
            resize: vertical; /* Cho phép người dùng thay đổi chiều cao */
            box-sizing: border-box; /* Đảm bảo padding không làm tăng width */
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        textarea:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
        }

        textarea::placeholder {
            color: #999;
        }

      