body {
    font-family: Arial, Helvetica, sans-serif;
    background: url(../image/bgmain.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    display: flex;
    height: calc(100vh - 50px);
}

#content {
    display: flex;
    flex: 1;
    max-width: 100%;
}

.container-login {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 960px;
}

#loginForm {
    max-width: 320px;
    margin: 10px auto;
}

.card-login {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px #00000030, 0 6px 6px #0000003b;
    background-color: #fff;
}

.title-login {
    text-align: center;
    font-size: 21px;
    font-weight: bold;
    color: #464855;
    padding: 10px;
}

.nd-content {
    font-size: 14px;
    line-height: 16px;
    padding: 0 10px;
}

.circe-avarta {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.btn-100 {
    width: 100%;
}

.color-ddci {
    background-color: #0271ed !important;
    border-color: #0271ed !important;
}

body.swal2-height-auto {
    min-height: 100vh !important;
}

.header-bar {
    background-color: #0271ed !important;
    color: #fff;
    display: flex;
    align-items: center;
    justify-items: center;
    height: 50px;
}

.header-bar h2 {
    margin: 0 10px;
    font-size: 14px;
    font-weight: bold;
}

.flex-1 {
    flex: 1;
}

.header-bar button {
    color: #fff;
    cursor: pointer;
}

.header-bar button i {
    font-size: 25px;
}

.no-caret::after {
    display: none !important;
}

.header-bar button:hover,
.header-bar .btn-check:checked+.btn,
.header-bar .btn.active,
.header-bar .btn.show,
.header-bar .btn:first-child:active,
:not(.btn-check)+.header-bar .btn:active {
    color: yellow;
}

.btn-account {
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.div-avarta {
    display: flex;
    color: #000;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    background-color: #ccc;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.dropdown-menu i {
    margin-right: 10px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: -.5rem;
    margin-left: -.5rem;
    margin-top: -.5rem;
    padding: 0 10px;
}

.grid>.col,
.grid>[class*=col] {
    box-sizing: border-box;
}

.col-4 {
    flex: 0 0 auto;
    padding: .5rem;
    width: 33.3333%;
}

.module-box {
    padding: 10px;
    border-radius: 2px;
    box-shadow: 0 10px 20px #00000030, 0 6px 6px #0000003b;
    background-color: red;
    padding: 10px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.module-box img {
    height: 24px;
    margin-bottom: 10px;
}

.module-box.b1 {
    background-color: #4caf50;
}

.module-box.b2 {
    background-color: #c61a54;
}

.module-box.b3 {
    background-color: #9c27b0;
}

.module-box.b4 {
    background-color: #009688;
}

.module-box.b5 {
    background-color: #795548;
}

.module-box.b6 {
    background-color: #ff5722;
}

#child-menu {
    display: none;
    background-color: #58575c;
    width: 72px;
    color: #fff;
    font-size: 10px;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    overflow-y: auto;
}

.child-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    justify-content: center;
    padding: 10px 5px;
    text-align: center;
    width: 100%;
    border-left: 2px solid transparent;
}

.child-menu-item img {
    height: 16px;
    margin-bottom: 5px;
    filter: invert(1);
}

.child-menu-item:hover,
.child-menu-item.active {
    background-color: #0271ed;
    cursor: pointer;
    border-left: 2px solid #fff;
}

.tittle-module {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

#content>.container {
    max-width: 100%;
}

/* Đầu tiên, chúng ta cần đảm bảo rằng checkbox có thể ảnh hưởng đến tr cha */
td:has(> input[type="checkbox"]) {
    position: relative;
}

/* Khi checkbox được chọn, thay đổi màu nền của tr cha */
tr.false>td {
    color: red;
}

.divTable tr:has(td input[type="checkbox"]:checked)>td {
    background-color: yellow;
}

tr i.fa-check {
    color: green;
}

.table-data th {
    white-space: nowrap;
    position: sticky;
    top: 0;
    background-color: #eee;
    z-index: 1;
}

.modal .table-data th {
    background-color: darkcyan;
    color: #fff;
}

.modal-dialog {
    display: flex;
    flex-direction: column;
    height: 90vh;
    /* Chiều cao tối đa của modal */
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.modal-header,
.modal-footer {
    flex: 0 0 auto;
}

.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

h5.modal-title {
    font-size: 15px;
    font-weight: bold;
    color: #014576;
}

.modal-body form>div {
    display: flex;
    align-items: baseline;
}

.modal-body form>div>label {
    width: 150px;
    min-width: 150px;
}

.modal-body form>div>label.form-label:nth-child(3) {
    padding-left: 15px;
}

.border-none {
    border: none;
}

.border-none input {
    margin-left: -.75rem;
}

.no-wrap {
    white-space: nowrap;
}

.none {
    display: none !important;
}

*[align=center] {
    text-align: center;
}

.divTable {
    height: calc(100vh - 200px);
    overflow-y: auto;
}

.pagination .page-item .page-link {
    border-radius: 50%;
    /* Làm cho nút tròn */
    width: 36px;
    /* Chiều rộng của nút */
    height: 36px;
    /* Chiều cao của nút */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    margin: 0 2px;
    /* Khoảng cách giữa các nút */
}

tr.no-active td,
tr.no-active i {
    color: red !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 38px;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    /* Màu nền cho nút active */
    color: white;
    /* Màu chữ cho nút active */
}

.pagination .page-item.disabled .page-link {
    pointer-events: none;
    /* Vô hiệu hóa các nút disabled */
    opacity: 0.6;
    /* Làm mờ các nút disabled */
}

form label {
    min-width: 120px;
}

form div[class*="col-"] {
    display: flex;
    align-items: center;
}

input[readOnly] {
    background-color: #eee !important;
}

span.select2-container.select2-container--default.select2-container--open {
    z-index: 9999;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 5px;
    height: auto;
    padding: 3px;
    min-height: 32px;
}

.divTable td {
    vertical-align: middle;
}

.divTable td img {
    max-width: 120px;
}