* {
    box-sizing: border-box !important;
}

.body {
    background-color: #f4f4f4;
    font-family: "Segoe UI", Tahoma, sans-serif;
}
button:hover {
    cursor: pointer;
}
input[type="submit"]:hover {
    cursor: pointer;
}
input[type="button"]:hover {
    cursor: pointer;
}
.dangnhap-btn {
    width: 125px;
    transition: background 0.2s, color 0.2s;
    color: white;
}

.dangnhap-btn a {
    display: block;
    background-color: #0040FF;
    color: inherit;
    outline: none;
    border: none;
    padding: 2px 9px;
    font-family: ui-serif;
    font-size: 16px;
    width: 125px;
    text-align: center;
    text-transform: uppercase;
}

.dangnhap-btn a:hover {
    cursor: pointer;
    background-color: #01DF3A;
    color: red !important;
}

.dangnhap-right-btn {
    width: 150px;
    transition: background 0.2s, color 0.2s;
    color: white;
}

.dangnhap-right-btn a {
    display: block;
    background-color: #0040FF;
    /*  #0040FF #8a08fb*/
    color: inherit;
    outline: none;
    border: none;
    padding: 2px 9px;
    font-family: ui-serif;
    font-size: 16px;
    width: 150px;
    text-align: center;
    text-transform: uppercase;
}

.dangnhap-right-btn a:hover {
    cursor: pointer;
    background-color: #01DF3A;
    color: red !important;
}

button.clear-layout {
    outline: none;
    border: none;
}

a.clear-layout {
    color: inherit;
    /* Kế thừa màu chữ từ phần tử cha */
    text-decoration: none;
    /* Xóa gạch chân */
}

a.clear-layout:link,
a.clear-layout:visited {
    color: white;
    text-decoration: none;
}

/* Trạng thái khi di chuột qua (hover) và khi đang bấm (active) */
a.clear-layout:hover,
a.clear-layout:active {
    color: white;
    text-decoration: none;
}

.show {
    display: block;
}

.hide {
    display: none;
}

/* menu index */
#indexMenu {
    display: none;
}

.image-wrapper {
    height: 115px;
}

.panel-wrapper {
    background: #0B0B61;
    display: inline-flex;
    width: 100%;
}

/* /menu index */

/* Chu chay */
.marquee-container {
    width: 80%;
    overflow: hidden;
    /* Ẩn phần chữ bị thừa ra ngoài */
    white-space: nowrap;
    /* Ngăn chữ xuống dòng */
    box-sizing: border-box;
    /* Tính cả padding và border vào kích thước */
}

.marquee-text {
    color: white;
    font-style: italic;
    display: inline-block;
    /* Cho phép áp dụng animation */
    padding-left: 100%;
    /* Đẩy chữ ra ngoài khung nhìn ban đầu */
    animation: marquee 15s linear infinite;
    /* Áp dụng animation */
}

/* Định nghĩa hiệu ứng animation */
@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Loading */
#loading_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: rgb(16 16 16 / 25%);
    z-index: 9999;
    overflow: hidden;
}

.loader {
    border: 21px solid #f3f3f3;
    border-radius: 50%;
    border-top: 21px solid #28a745;
    width: 80px;
    height: 80px;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
}

.cl_alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.cl_alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    z-index: 9999;
}

.cl_alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    z-index: 9999;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* /Loading */

.title h2 {
    text-align: center;
    text-transform: uppercase;
    margin-top: 10px;
}


/* Table */
.table-wrapper {
    padding-left: 8px;
    padding-right: 8px;
}

table.table-list {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid lightgray;
}

table.table-list thead tr {
    text-align: center;
    color: white;

}

table.table-list thead tr th {
    position: sticky;
    top: 0;
    /* Dính vào đầu trang khi cuộn */
    background-color: #0040FF;
    /* Màu nền cho tiêu đề để không bị trong suốt */
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

table.table-list th,
td {
    border: 1px solid lightgray;
    padding: 3px 4px;
}

table.table-list tbody tr:hover {
    background-color: rgb(231, 231, 231);
    cursor: pointer;
}

table.table-list tr th:first-child {
    width: 40px;
    text-align: center;
}

table.table-list tr td:first-child {
    width: 40px;
    text-align: center;
}

table.table-list tr td:last-child {
    width: 80px;
    text-align: center;
}

.row--active {
    background-color: rgb(231, 231, 231);
    color: red;
}

.pagination {
    margin-top: 20px;
    justify-content: right;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #337ab7;
}

.pagination a.active {
    background-color: #337ab7;
    color: white;
    border-color: #337ab7;
}

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

/* .pagination form[name="frmPagination"] button:last-child{
    margin-left: 4px;
}
.pagination form[name="frmPagination"] button:first-child{
    margin-right: 4px;
} */
.pagination form[name="frmPagination"] button {}

/* Thêm màu sắc cho icon để dễ phân biệt */
.icon-edit {
    color: blue;
    text-decoration: none;
}

.icon-delete {
    color: red;
    text-decoration: none;
}

.icon-status-on {
    color: green;
}

.icon-status-off {
    color: grey;
}

.back {
    text-align: left;
    margin-top: 10px;
    margin-left: 10px;
}

.back a {
    color: #0052cc;
    text-decoration: none;
}

.back a:hover {
    text-decoration: underline;
}

/* /Table */

.panel {
    display: inline-flex;
    margin: 10px;
}

.frm-panel {
    display: inline-flex;
    align-items: center;
    /* flex-direction: column; */
}

.frm-panel .item-wrapper {
    margin-bottom: 4px;
    /* width: 500px; */
}

.frm-panel .item-wrapper label {
    width: 100px;
}

button:hover {
    cursor: pointer;
}

button.cle-primary {
    border: 1px solid blue;
    background-color: blue;
    color: white;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 900;
}

button.cle-primary:hover {
    border: 1px solid blue;
    background-color: white;
    color: blue;
}

button.cle-secondary {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: blue;
    cursor: pointer;
}

button.cle-secondary:hover {
    background: #45a049;
    color: white;
}

button.cle-secondary.outline {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background: #45a049;
    color: white;
    cursor: pointer;
    border: 1px solid #45a049;
}

button.cle-secondary.outline:hover {
    border: 1px solid #45a049;
    background: #2b632e;
    color: white;
}

.content-wrapper {
    margin: 20px auto;
    width: 85%;
}

/* image */
.image-frame {
    /* Đặt kích thước cố định theo yêu cầu */
    width: 120px;
    height: 160px;

    /* Quan trọng: Cắt bỏ phần hình ảnh thừa ra ngoài khung */
    overflow: hidden;

    /* Tùy chọn: Thêm viền để dễ hình dung khung */
    /* border: 2px solid #333; */
    border: 1px solid #ccc;
    border-radius: 5%;
    /* Để làm hình tròn */
    /* Tùy chọn: Đặt màu nền phòng trường hợp ảnh không tải được */
    background-color: #f0f0f0;
}

/* Thẻ hình ảnh (Image) */
.image-frame img {
    /* Quan trọng: Cho phép ảnh chiếm toàn bộ kích thước của khung chứa */
    width: 100%;
    height: 100%;

    /* Tuyệt đối quan trọng: Thuộc tính đảm bảo ảnh không bị móp méo
       - 'cover': Thu phóng ảnh để nó lấp đầy khung, giữ nguyên tỷ lệ.
                  Phần ảnh thừa sẽ bị cắt (nhờ vào overflow: hidden của .image-frame).
       - 'contain' (Tùy chọn khác): Giữ nguyên tỷ lệ, nhưng ảnh sẽ nằm gọn trong khung,
                                   tạo ra khoảng trống nếu tỷ lệ không khớp. */
    object-fit: cover;

    /* Tùy chọn: Căn giữa hình ảnh (nếu dùng object-fit: contain) */
    object-position: center;
    /* Đảm bảo hình ảnh được căn giữa trong khung */
}