﻿/*==========================================================
 * Nhập Fonts và Reset CSS Cơ Bản
 *==========================================================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Quicksand:wght@300..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* Ghi chú: Có thể gộp 3 dòng @import thành 1 để tối ưu hơn */

* {
    font-family: Inter, sans-serif;
    /* Ghi chú: Áp dụng font 'Inter' cho toàn bộ trang web */
}

/*==========================================================
 * Các Class Tiện Ích (Utility Classes)
 *==========================================================*/
/* Hiển thị / Ẩn */
.display-none {
    display: none;
    /* Ghi chú: Ẩn phần tử */
}

.display-none-important {
    display: none !important;
    /* Ghi chú: Ẩn phần tử với độ ưu tiên cao */
}

.visible-hide {
    visibility: hidden;
    position: fixed;
    z-index: -9999;
    /* Ghi chú: Ẩn phần tử nhưng vẫn giữ không gian */
}

.opacity-0 {
    opacity: 0;
    /* Ghi chú: Làm phần tử trong suốt, vẫn chiếm không gian */
}

/* Flexbox */
.display-flex {
    display: flex;
    /* Ghi chú: Chuyển sang bố cục Flexbox */
}

.flex-basis-30 {
    flex-basis: 30%;
    /* Ghi chú: Kích thước ban đầu của Flex Item */
}

.flex-direction-column {
    flex-direction: column;
    /* Ghi chú: Xếp các Flex Item theo cột */
}

.flex-dic-column-reverse {
    flex-direction: column-reverse;
    /* Ghi chú: Xếp các Flex Item theo cột ngược lại */
}

.flex-wrap {
    flex-wrap: wrap;
    /* Ghi chú: Cho phép các Flex Item xuống dòng */
}

.flex-no-wrap {
    flex-wrap: nowrap;
    /* Ghi chú: Ngăn các Flex Item xuống dòng */
}

.align-self-flex-start {
    align-self: flex-start;
    /* Ghi chú: Căn chỉnh mục theo trục chéo */
}

.align-item-center,
.align-items-center {
    align-items: center;
    /* Ghi chú: Căn chỉnh các mục theo chiều dọc */
}

.align-item-start,
.align-items-start {
    align-items: flex-start;
    /* Ghi chú: Căn chỉnh các mục lên đầu */
}

.align-item-end,
.align-items-end {
    align-items: flex-end;
    /* Ghi chú: Căn chỉnh các mục xuống cuối */
}

.j-c-end {
    justify-content: flex-end;
    /* Ghi chú: Căn chỉnh các mục sang phải */
}

.j-c-start {
    justify-content: flex-start;
    /* Ghi chú: Căn chỉnh các mục sang trái */
}

.j-c-center {
    justify-content: center;
    /* Ghi chú: Căn chỉnh các mục ra giữa */
}

.j-c-space-between {
    justify-content: space-between;
    /* Ghi chú: Phân bố đều khoảng trống giữa các mục */
}

.j-c-space-arround {
    justify-content: space-around;
    /* Ghi chú: Phân bố khoảng trống xung quanh các mục */
}

/* Khoảng cách (Spacing) */
.gap-5px {
    gap: 5px;
    /* Ghi chú: Khoảng cách giữa các mục Flexbox/Grid */
}

.gap-8px {
    gap: 8px;
    /* Ghi chú: Khoảng cách 8px */
}

.gap-10px {
    gap: 10px;
    /* Ghi chú: Khoảng cách 10px */
}

.gap-12px {
    gap: 12px;
    /* Ghi chú: Khoảng cách 12px */
}

.gap-13px {
    gap: 13px;
    /* Ghi chú: Khoảng cách 13px */
}

.gap-25px {
    gap: 25px;
    /* Ghi chú: Khoảng cách 25px */
}

.gap-30px {
    gap: 30px;
    /* Ghi chú: Khoảng cách 30px */
}

.row-gap-10px {
    row-gap: 10px;
    /* Ghi chú: Khoảng cách giữa các hàng trong Grid/Flexbox */
}

.pad-10 {
    padding: 10px;
    /* Ghi chú: Đệm 10px */
}

.pad-15 {
    padding: 15px;
    /* Ghi chú: Đệm 15px */
}

.p-0 {
    padding: 0;
    /* Ghi chú: Đệm 0px */
}

.p-10 {
    padding: 10px;
    /* Ghi chú: Đệm 10px */
}

.p-16 {
    padding: 16px;
    /* Ghi chú: Đệm 16px */
}

.p-20 {
    padding: 20px;
    /* Ghi chú: Đệm 20px */
}

.p-10-20 {
    padding: 10px 20px;
    /* Ghi chú: Đệm 10px trên dưới, 20px trái phải */
}

.p-8-25 {
    padding: 8px 25px;
    /* Ghi chú: Đệm 8px trên dưới, 25px trái phải */
}

.margin-0 {
    margin: 0;
    /* Ghi chú: Lề 0px */
}

.m-t-auto {
    margin-top: auto;
    /* Ghi chú: Đẩy xuống dưới */
}

.m-t-5 {
    margin-top: 5px;
    /* Ghi chú: Lề trên 5px */
}

.m-t-10 {
    margin-top: 10px;
    /* Ghi chú: Lề trên 10px */
}

.m-t-12 {
    margin-top: 12px;
    /* Ghi chú: Lề trên 12px */
}

.m-t-20 {
    margin-top: 20px;
    /* Ghi chú: Lề trên 20px */
}

.m-t-30 {
    margin-top: 30px;
    /* Ghi chú: Lề trên 30px */
}

.m-b-auto {
    margin-bottom: auto;
    /* Ghi chú: Đẩy lên trên */
}

.m-b-0 {
    margin-bottom: 0;
    /* Ghi chú: Lề dưới 0px */
}

.m-b-5 {
    margin-bottom: 5px;
    /* Ghi chú: Lề dưới 5px */
}

.m-b-10 {
    margin-bottom: 10px;
    /* Ghi chú: Lề dưới 10px */
}

.m-b-15 {
    margin-bottom: 15px;
    /* Ghi chú: Lề dưới 15px */
}

.m-b-20 {
    margin-bottom: 20px;
    /* Ghi chú: Lề dưới 20px */
}

.m-b-25 {
    margin-bottom: 25px;
    /* Ghi chú: Lề dưới 25px */
}

.m-b-30 {
    margin-bottom: 30px;
    /* Ghi chú: Lề dưới 30px */
}

/* Kích thước (Sizing) */
.w-15px {
    width: 15px;
    /* Ghi chú: Chiều rộng 15px */
}

.w-20px {
    width: 20px;
    /* Ghi chú: Chiều rộng 20px */
}

.w-50px {
    width: 50px;
    /* Ghi chú: Chiều rộng 50px */
}

.w-80px {
    width: 80px;
    /* Ghi chú: Chiều rộng 80px */
}

.w-100px {
    width: 100px;
    /* Ghi chú: Chiều rộng 100px */
}

.w-200px {
    width: 200px;
    /* Ghi chú: Chiều rộng 200px */
}

.w-300px {
    width: 300px;
    /* Ghi chú: Chiều rộng 300px */
}

.w-350px {
    width: 350px;
    /* Ghi chú: Chiều rộng 350px */
}

.w-600px {
    width: 600px;
    /* Ghi chú: Chiều rộng 600px */
}

.w-30pc {
    width: 30%;
    /* Ghi chú: Chiều rộng 30% */
}

.w-full {
    width: 100%;
    /* Ghi chú: Chiều rộng 100% */
}

.w-full-calc-20px {
    width: calc(100% - 20px);
    /* Ghi chú: Chiều rộng 100% trừ 20px */
}

.max-w-300px {
    max-width: 300px;
    /* Ghi chú: Chiều rộng tối đa 300px */
}

.max-w-350px {
    max-width: 350px;
    /* Ghi chú: Chiều rộng tối đa 350px */
}

.max-w-100 {
    max-width: 100%;
    /* Ghi chú: Chiều rộng tối đa 100% */
}

.max-w-600px {
    max-width: 600px;
    /* Ghi chú: Chiều rộng tối đa 600px */
}

.h-15px {
    height: 15px;
    /* Ghi chú: Chiều cao 15px */
}

.h-20px {
    height: 20px;
    /* Ghi chú: Chiều cao 20px */
}

.h-50px {
    height: 50px;
    /* Ghi chú: Chiều cao 50px */
}

.h-80px {
    height: 80px;
    /* Ghi chú: Chiều cao 80px */
}

.h-100px {
    height: 100px;
    /* Ghi chú: Chiều cao 100px */
}

/* Border & Radius */
.border-none {
    border: none;
    /* Ghi chú: Không có đường viền */
}

.border-none-important {
    border: none !important;
    /* Ghi chú: Xóa đường viền với độ ưu tiên cao */
}

.border-1 {
    border: 1px solid #D0D5DD;
    /* Ghi chú: Đường viền 1px màu xám */
}

.border-radius-5 {
    border-radius: 5px;
    /* Ghi chú: Bo góc 5px */
}

.border-radius-10 {
    border-radius: 10px;
    /* Ghi chú: Bo góc 10px */
}

/* Các thuộc tính khác */
.cursor-pointer {
    cursor: pointer;
    /* Ghi chú: Con trỏ thành hình bàn tay */
}

.cursor-grab {
    cursor: grab;
    /* Ghi chú: Con trỏ thành hình bàn tay nắm */
}

.white-space-nowrap {
    white-space: nowrap;
    /* Ghi chú: Ngăn văn bản xuống dòng */
}

.white-space-pre-wrap {
    white-space: pre-wrap;
    /* Ghi chú: Giữ khoảng trắng và xuống dòng khi cần */
}

.outline-none {
    outline: none;
    /* Ghi chú: Xóa đường viền khi nhấn vào */
}

.box-shadow {
    box-shadow: 0 0 17px hsla(0, 18%, 52%, .3);
    /* Ghi chú: Tạo bóng đổ nhẹ */
}

/*==========================================================
 * Các Thành Phần Riêng Biệt
 *==========================================================*/
/* Loading */
.loading-container {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #5b5b5b40;
    display: none;
    text-align: center;
    z-index: 9999;
    /* Ghi chú: Lớp phủ loading toàn màn hình */
}

.loading-container svg {
    margin-top: 40vh;
    width: 150px;
    height: 150px;
    /* Ghi chú: Định dạng SVG trong loading */
}

.loading-container path {
    fill: #FFC803;
    /* Ghi chú: Đặt màu cho icon loading */
}

/* Input & Form */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #FFC803;
    /* Ghi chú: Đổi màu cho checkbox và radio button */
}

.form-group.has-error .form-control,
.select2-container.has-error {
    border-color: #a94442;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    /* Ghi chú: Hiệu ứng khi có lỗi nhập liệu */
}

.valid-error-message {
    display: none;
    color: #a94442;
    font-size: 0.9em;
    /* Ghi chú: Định dạng cho tin nhắn lỗi */
}

.form-group.has-error .valid-error-message {
    display: block;
    /* Ghi chú: Hiển thị tin nhắn lỗi khi có lỗi */
}

.text-danger {
    color: #a94442;
    font-size: 0.9em;
    /* Ghi chú: Định dạng văn bản lỗi */
}

/* Buttons */
.btn {
    display: flex;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #ffc803;
    color: #ffc803;
    font-weight: 600;
    padding: 8px 48px;
    background-color: transparent;
    cursor: pointer;
    /* Ghi chú: Nút cơ bản */
}

.btn-primary {
    background-color: #ffc803;
    color: #000;
    /* Ghi chú: Nút chính */
}

.btn-danger-outline {
    border: 1px solid #dc3545;
    color: #dc3545;
    /* Ghi chú: Nút cảnh báo */
}

/* Alert Boxes */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    /* Ghi chú: Hộp thông báo chung */
}

.alert-heading {
    color: inherit;
    /* Ghi chú: Tiêu đề trong hộp thông báo */
}

.alert-link {
    font-weight: 700;
    /* Ghi chú: Liên kết trong hộp thông báo */
}

.alert-dismissible {
    padding-right: 4rem;
    /* Ghi chú: Hộp thông báo có nút đóng */
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    color: inherit;
    /* Ghi chú: Nút đóng trong hộp thông báo */
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    /* Ghi chú: Nút đóng chung */
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    opacity: .75;
    /* Ghi chú: Hiệu ứng hover cho nút đóng */
}

.close:not(:disabled):not(.disabled) {
    cursor: pointer;
}

button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
}

/* Các biến thể màu sắc của alert */
.alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
    /* Ghi chú: Alert màu xanh dương */
}

.alert-primary hr {
    border-top-color: #9fcdff;
}

.alert-primary .alert-link {
    color: #002752;
}

.alert-secondary {
    color: #383d41;
    background-color: #e2e3e5;
    border-color: #d6d8db;
    /* Ghi chú: Alert màu xám */
}

.alert-secondary hr {
    border-top-color: #c8cbcf;
}

.alert-secondary .alert-link {
    color: #202326;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    /* Ghi chú: Alert màu xanh lá */
}

.alert-success hr {
    border-top-color: #b1dfbb;
}

.alert-success .alert-link {
    color: #0b2e13;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
    /* Ghi chú: Alert màu xanh ngọc */
}

.alert-info hr {
    border-top-color: #abdde5;
}

.alert-info .alert-link {
    color: #062c33;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
    /* Ghi chú: Alert màu vàng */
}

.alert-warning hr {
    border-top-color: #ffe8a1;
}

.alert-warning .alert-link {
    color: #533f03;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    /* Ghi chú: Alert màu đỏ */
}

.alert-danger hr {
    border-top-color: #f1b0b7;
}

.alert-danger .alert-link {
    color: #491217;
}

.alert-light {
    color: #818182;
    background-color: #fefefe;
    border-color: #fdfdfe;
    /* Ghi chú: Alert màu trắng */
}

.alert-light hr {
    border-top-color: #ececf6;
}

.alert-light .alert-link {
    color: #686868;
}

.alert-dark {
    color: #1b1e21;
    background-color: #d6d8d9;
    border-color: #c6c8ca;
    /* Ghi chú: Alert màu tối */
}

.alert-dark hr {
    border-top-color: #b9bbbe;
}

.alert-dark .alert-link {
    color: #040505;
}

/* Các Class Giao Diện Khác */
.ckeditor-custom {
    /* Ghi chú: Một lớp tùy chỉnh cho CKEditor */
}

.select2-me {
    /* Ghi chú: Lớp tùy chỉnh cho Select2 */
}

.header-right-item {
    position: relative;
    /* Ghi chú: Vị trí tương đối cho mục trong header */
}

.header-right-item-action {
    cursor: pointer;
    border-radius: 80%;
    /* Ghi chú: Hiệu ứng con trỏ và bo góc cho hành động */
}

.header-right-item-action-notification {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    /* Ghi chú: Thiết lập cho biểu tượng thông báo */
}

.header-right-item-action-notification .badge-notifications {
    display: none;
    /* Ghi chú: Ẩn biểu tượng báo mới */
}

.header-right-item-action-notification .badge-notifications-container {
    background-color: #B3261E;
    color: #FFFFFF;
    padding: 0px 4px;
    border-radius: 80%;
    font-size: 10px;
    font-weight: 400;
    height: 14px;
    display: flex;
    align-items: center;
    position: absolute;
    top: -5px;
    right: -2px;
    /* Ghi chú: Vị trí và định dạng cho số lượng thông báo */
}

.header-right-item-action-notification .badge-notifications .badge-notifications-count {
    /* Ghi chú: Lớp trống */
}

.header-right-item-dropdown {
    border-radius: 5px;
    text-align: left;
    background-color: #fff;
    top: 70px;
    left: 240px;
    position: absolute;
    width: 188px;
    height: fit-content;
    border: 1px solid rgba(255, 200, 3, 1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1;
    font-size: 14px;
    /* Ghi chú: Menu dropdown */
}

.header-right-item-notification-dropdown {
    border-radius: 5px;
    text-align: left;
    top: 70px;
    position: absolute;
    height: fit-content;
    border: 1px solid rgba(255, 200, 3, 1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1;
    /* Ghi chú: Menu thông báo dropdown */
}

.divider {
    background-color: rgba(217, 217, 217, 1);
    display: flex;
    height: 1px;
    margin: 8px 0;
    width: 100%;
    /* Ghi chú: Thanh phân cách */
}

.menu-list-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.502);
    z-index: 8001;
    display: none;
    /* Ghi chú: Lớp phủ cho menu di động */
}

.menu-list-wrap {
    width: 300px;
    background-color: white;
    height: 100vh;
    float: left;
    position: relative;
    /* Ghi chú: Vùng chứa menu */
}

.menu-list-header,
.menu-list-detail-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    /* Ghi chú: Tiêu đề menu */
}

.menu-list-content {
    height: calc(100vh - 60px);
    overflow-y: auto;
    margin-top: 60px;
    /* Ghi chú: Nội dung có thể cuộn của menu */
}

.context-menu-item {
    padding: .6em 3em !important;
    /* Ghi chú: Mục trong menu ngữ cảnh */
}

.context-menu-item:hover {
    background-color: #eee !important;
    color: black !important;
    /* Ghi chú: Hiệu ứng hover cho mục menu */
}

.context-menu-icon:before {
    width: 3em !important;
    color: black !important;
    /* Ghi chú: Biểu tượng trong menu ngữ cảnh */
}

.context-menu-list .context-menu-item {
    border-bottom: 1px solid gainsboro !important;
    /* Ghi chú: Đường viền dưới cho mục menu */
}

.context-menu-list .context-menu-item:last-child {
    border-bottom: none !important;
    /* Ghi chú: Xóa đường viền của mục cuối */
}

/* Pagination */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    justify-content: center;
    /* Ghi chú: Vùng chứa phân trang */
}

.page-item {
    margin: 0 5px;
    /* Ghi chú: Khoảng cách giữa các nút */
}

.page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #FFC803;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.2s, color 0.2s;
    /* Ghi chú: Định dạng cho liên kết trang */
}

.page-link:hover {
    background-color: #e9ecef;
    color: #FFC803;
    text-decoration: none;
    /* Ghi chú: Hiệu ứng hover cho liên kết trang */
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #FFC803;
    border-color: #FFC803;
    /* Ghi chú: Định dạng trang đang hoạt động */
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    /* Ghi chú: Định dạng trang bị vô hiệu hóa */
}

/* Overlays */
header .search-container,
header .notification-mobile-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 8001;
    display: none;
    padding: 0;
    /* Ghi chú: Lớp phủ cho tìm kiếm và thông báo di động */
}

header .search-wrap {
    width: 300px;
    background-color: white;
    height: 100vh;
    position: relative;
    margin-left: calc(100vw - 300px);
    /* Ghi chú: Vùng chứa tìm kiếm */
}

header .notification-wrap {
    width: 100vw;
    background-color: white;
    height: 100vh;
    position: relative;
    /* Ghi chú: Vùng chứa thông báo */
}

header .search-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    /* Ghi chú: Tiêu đề tìm kiếm */
}

header .search-content {
    padding-top: 60px;
    /* Ghi chú: Nội dung tìm kiếm */
}

header .search-content .input-search {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    /* Ghi chú: Khung nhập tìm kiếm */
}

header .search-content .input-search input {
    border: none;
    outline: none;
    width: 100%;
    /* Ghi chú: Ô nhập liệu tìm kiếm */
}

header .btn-close {
    cursor: pointer;
    /* Ghi chú: Nút đóng */
}

.max-height-95px-with-fade-overlay {
    max-height: 95px;
    overflow-y: hidden;
    position: relative;
    /* Ghi chú: Giới hạn chiều cao với hiệu ứng mờ */
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    display: none;
    /* Ghi chú: Hiệu ứng mờ ở cuối */
}

/*==========================================================
 * Các Class Bảng (Table Classes)
 *==========================================================*/
table {
    border-collapse: collapse;
    /* Ghi chú: Gộp các đường viền bảng */
}

.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    /* Ghi chú: Lớp bảng cơ bản */
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    /* Ghi chú: Định dạng ô và tiêu đề bảng */
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    /* Ghi chú: Định dạng tiêu đề cột */
}

.table tbody+tbody {
    border-top: 2px solid #dee2e6;
    /* Ghi chú: Đường viền giữa các phần tbody */
}

.table .table {
    background-color: #fff;
    /* Ghi chú: Định dạng bảng lồng nhau */
}

.table-sm th,
.table-sm td {
    padding: 0.3rem;
    /* Ghi chú: Bảng kích thước nhỏ */
}

.table-bordered {
    border: 1px solid #dee2e6;
    /* Ghi chú: Bảng có đường viền */
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

.table-bordered thead th,
.table-bordered thead td {
    border-bottom-width: 2px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
    /* Ghi chú: Bảng có hàng xen kẽ */
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
    /* Ghi chú: Bảng có hiệu ứng khi di chuột */
}

/* Các biến thể màu sắc của bảng */
.table-primary,
.table-primary>th,
.table-primary>td {
    background-color: #b8daff;
}

.table-hover .table-primary:hover,
.table-hover .table-primary:hover>td,
.table-hover .table-primary:hover>th {
    background-color: #9fcdff;
}

.table-secondary,
.table-secondary>th,
.table-secondary>td {
    background-color: #d6d8db;
}

.table-hover .table-secondary:hover,
.table-hover .table-secondary:hover>td,
.table-hover .table-secondary:hover>th {
    background-color: #c8cbcf;
}

.table-success,
.table-success>th,
.table-success>td {
    background-color: #c3e6cb;
}

.table-hover .table-success:hover,
.table-hover .table-success:hover>td,
.table-hover .table-success:hover>th {
    background-color: #b1dfbb;
}

.table-info,
.table-info>th,
.table-info>td {
    background-color: #bee5eb;
}

.table-hover .table-info:hover,
.table-hover .table-info:hover>td,
.table-hover .table-info:hover>th {
    background-color: #abdde5;
}

.table-warning,
.table-warning>th,
.table-warning>td {
    background-color: #ffeeba;
}

.table-hover .table-warning:hover,
.table-hover .table-warning:hover>td,
.table-hover .table-warning:hover>th {
    background-color: #ffe8a1;
}

.table-danger,
.table-danger>th,
.table-danger>td {
    background-color: #f5c6cb;
}

.table-hover .table-danger:hover,
.table-hover .table-danger:hover>td,
.table-hover .table-danger:hover>th {
    background-color: #f1b0b7;
}

.table-light,
.table-light>th,
.table-light>td {
    background-color: #fdfdfe;
}

.table-hover .table-light:hover,
.table-hover .table-light:hover>td,
.table-hover .table-light:hover>th {
    background-color: #ececf6;
}

.table-dark,
.table-dark>th,
.table-dark>td {
    background-color: #c6c8ca;
}

.table-hover .table-dark:hover,
.table-hover .table-dark:hover>td,
.table-hover .table-dark:hover>th {
    background-color: #b9bbbe;
}

.table-active,
.table-active>th,
.table-active>td {
    background-color: rgba(0, 0, 0, 0.075);
}

.table-hover .table-active:hover,
.table-hover .table-active:hover>td,
.table-hover .table-active:hover>th {
    background-color: rgba(0, 0, 0, 0.075);
}

.table .thead-dark th {
    color: #fff;
    background-color: #212529;
    border-color: #32383e;
}

.table .thead-light th {
    color: #495057;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.table-dark {
    color: #fff;
    background-color: #212529;
}

.table-dark th,
.table-dark td,
.table-dark thead th {
    border-color: #32383e;
}

.table-dark.table-bordered {
    border: 0;
}

.table-dark.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-dark.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

.table-border-radius {
    border-collapse: collapse;
    border-radius: 5px;
    border-style: hidden;
    box-shadow: 0 0 0 1px #dee2e6;
    /* Ghi chú: Bảng có bo góc và bóng đổ */
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    /* Ghi chú: Bảng cuộn ngang */
}

.table-responsive>.table-bordered {
    border: 0;
}

/*==========================================================
 * Các quy tắc Media Queries (Responsive)
 *==========================================================*/
/* Bảng cho màn hình nhỏ */
@media (max-width: 575.98px) {
    .table-responsive-sm {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }

    .table-responsive-sm>.table-bordered {
        border: 0;
    }

    .font-size-10px-sm {
        font-size: 10px;
        /* Ghi chú: Kích thước font nhỏ trên màn hình sm */
    }
}

@media (max-width: 767.98px) {
    .table-responsive-md {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }

    .table-responsive-md>.table-bordered {
        border: 0;
    }
}

@media (max-width: 991.98px) {
    .table-responsive-lg {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }

    .table-responsive-lg>.table-bordered {
        border: 0;
    }
}

@media (max-width: 1199.98px) {
    .table-responsive-xl {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }

    .table-responsive-xl>.table-bordered {
        border: 0;
    }
}

/* Scrollbar */
@media (min-width: 1024px) {
    ::-webkit-scrollbar-track {
        background-color: #fafafa;
    }

    /* Ghi chú: Định dạng cho track của thanh cuộn trên màn hình lớn */
}

@media (max-width: 1429px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 5px;
    }

    /* Ghi chú: Kích thước thanh cuộn trên mobile */
}

::-webkit-scrollbar {
    width: 10px;
    height: 8px;
    /* Ghi chú: Kích thước thanh cuộn mặc định */
}

::-webkit-scrollbar-thumb {
    background-image: linear-gradient(-45deg, #d6d8d4, #e7e9e7);
    border-radius: 50px;
    /* Ghi chú: Định dạng cho thumb của thanh cuộn */
}

/*==========================================================
 * Grid System (Hệ thống lưới)
 *==========================================================*/
.display-grid {
    display: grid;
    /* Ghi chú: Chuyển sang bố cục Grid */
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    /* Ghi chú: Lưới 1 cột */
}

.grid-cols-2-2-1 {
    grid-template-columns: 2fr 1fr;
    /* Ghi chú: Lưới 2 cột với tỷ lệ 2/3 và 1/3 */
}

/* Quy tắc responsive cho Grid */
@media (max-width: 600px) {
    .sm\:grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .xs\:flex-basis-unset {
        flex-basis: unset;
    }

    /* Ghi chú: Chuyển sang 1 cột trên màn hình nhỏ */
}

@media (min-width: 768px) {
    .md\:grid-cols-2-2-1 {
        grid-template-columns: 2fr 1fr;
    }

    .md\:grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    /* Ghi chú: Cấu hình Grid trên màn hình trung bình */
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2-2-1 {
        grid-template-columns: 2fr 1fr;
    }

    /* Ghi chú: Cấu hình Grid trên màn hình lớn */
}

/*==========================================================
 * Các Lớp Văn Bản & Màu Sắc
 *==========================================================*/
.text-center {
    text-align: center;
    /* Ghi chú: Căn giữa văn bản */
}

.text-left {
    text-align: left;
    /* Ghi chú: Căn trái văn bản */
}

.text-right {
    text-align: right;
    /* Ghi chú: Căn phải văn bản */
}

.text-bold {
    font-weight: 700;
    /* Ghi chú: Chữ in đậm */
}

.text-italic {
    font-style: italic;
    /* Ghi chú: Chữ in nghiêng */
}

.text-black {
    color: #000;
    /* Ghi chú: Chữ màu đen */
}

.text-primary {
    color: #ffc803;
    /* Ghi chú: Chữ màu chính */
}

.text-gray {
    color: #6c757d;
    /* Ghi chú: Chữ màu xám */
}

.text-info {
    color: #17a2b8;
    /* Ghi chú: Chữ màu xanh ngọc */
}

.text-warning {
    color: #ffc107;
    /* Ghi chú: Chữ màu vàng */
}

.text-success {
    color: #28a745;
    /* Ghi chú: Chữ màu xanh lá cây */
}

.f-size-20px {
    font-size: 20px;
    /* Ghi chú: Kích thước font 20px */
}

.f-size-25px {
    font-size: 25px;
    /* Ghi chú: Kích thước font 25px */
}

.f-size-26px {
    font-size: 26px;
    /* Ghi chú: Kích thước font 26px */
}

.f-size-75pc {
    font-size: 75%;
    /* Ghi chú: Kích thước font 75% */
}

.f-size-90pc {
    font-size: 90%;
    /* Ghi chú: Kích thước font 90% */
}

.f-size-120pc {
    font-size: 120%;
    /* Ghi chú: Kích thước font 120% */
}

/*==========================================================
 * Lớp CSS của Header và Menu
 *==========================================================*/
header .search-container,
header .notification-mobile-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 8001;
    display: none;
    padding: 0;
    /* Ghi chú: Lớp phủ tìm kiếm và thông báo cho mobile */
}

header .search-wrap {
    width: 300px;
    background-color: white;
    height: 100vh;
    position: relative;
    margin-left: calc(100vw - 300px);
}

header .notification-wrap {
    width: 100vw;
    background-color: white;
    height: 100vh;
    position: relative;
}

header .search-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
}

header .search-content {
    padding-top: 60px;
}

header .search-content .input-search {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
}

header .search-content .input-search input {
    border: none;
    outline: none;
    width: 100%;
}

header .btn-close {
    cursor: pointer;
}