﻿/*.content-fixed {
    min-height: calc(100vh - 115px) !important;
}

.has-float-label label::after, .has-float-label > span::after {
    background: #fff;
}

.has-float-label label, .has-float-label > span, .has-top-label label, .has-top-label > span {
    color: rgba(58, 58, 58, .7);
}



.topnav-navbar .app-search {
    float: none;
}




.topnav .nav-link i {
    padding-right: 5px;
}

.topnav .navbar-nav .nav-link {
    padding: 1rem 1rem;
}

.sticky-topnav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

    .sticky-topnav + .container-fluid {
        padding-top: 70px;
    }

.mvc-grid-table {
    min-height: 150px;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--blue);
    color: var(--white);
    font-weight: 600;
}

dt,
dd {
    float: left;
    border-bottom: 1px solid #d7d7d7;
    line-height: 27px;
    padding-left: 10px;
}

dt {
    width: 25%;
    background-color: #e5e9f2;
    border-radius: 0 10px 0 0;
}

dd {
    width: 75%;
    min-height: 28px;
}

textarea.form-control {
    line-height: 1.5;
}

.has-float-label label, .has-float-label > span, .has-top-label label, .has-top-label > span {
    color: rgba(58, 58, 58, .7);
}

.ck.ck-editor__main > .ck-editor__editable {
    border-color: #d7d7d7 !important;
}

.ck.ck-content.ck-editor__editable.ck-rounded-corners {
    box-shadow: initial !important;
}

.ck-rounded-corners .ck.ck-editor__main > .ck-editor__editable, .ck.ck-editor__main > .ck-editor__editable.ck-rounded-corners {
    height: 500px;
    background: #fff;
}

.icon {
    background-position: 0% 50%;
    background-repeat: no-repeat;
    padding-left: 15px;
    margin-left: 5px;
}

.icon-add-bullet:hover {
    color: #9c2c18
}

.icon-add {
    background-image: url(images/add.png);
    margin-top: 5px;
    float: left;
    margin-left: 2px;
}

.icon-only {
    background-position: 0% 50%;
    background-repeat: no-repeat;
    padding-left: 20px;
    display: inline-block;
    height: 16px;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}

.icon-edit {
    background-image: url(images/edit.png);
}

.icon-del {
    background-image: url(images/delete.png);
}

.icon-check {
    background-image: url(images/check.png);
}

.icon-close {
    background-image: url(images/close.png);
}

.table-detail table th {
    background-color: var(--gray);
    color: var(--white)
}

@media (max-width: 767px) {
    dt {
        width: 35%;
        background-color: #e9e9e9;
        border-radius: 0 10px 0 0;
    }

    dd {
        width: 65%;
        min-height: 28px;
    }
}

@media(min-width: 767px) {
    dt {
        width: 35%;
        background-color: #e9e9e9;
        border-radius: 0 10px 0 0;
    }

    dd {
        width: 65%;
        min-height: 28px;
    }
}

@media (min-width: 1366px) {
    .modal-xl {
        max-width: 1024px !important;
    }
}

.ms-options-wrap > button:focus, .ms-options-wrap > button {
    height: 36px;
}

.ms-options-wrap > .ms-options {
    left: 5px;
}

.table td, .table th {
    vertical-align: middle !important;
}

.h5-color {
    color: #377dff;
    font-weight: bold;
}

.bootstrap-touchspin .spinner {
    text-align: center;
}

.bootstrap-touchspin-down {
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.bootstrap-touchspin-up {
    border-top: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.url-link {
    color: blue;
    cursor: pointer;
}

.hide {
    display: none;
}

.mvc-grid-pager > button {
    border-radius: 50%;
}

.mvc-grid-page-sizes > select.mvc-grid-pager-rows {
    border-radius: 8px;
}

input[data-switch] + label {
    width: 66px;
}

input[data-switch]:checked + label:after {
    left: 44px;
}


tr.table-extend {
    background: lightgoldenrodyellow;
}

tr.tr-return > .input-daterange-text {
    display: none;
}

tr.tr-return:not(.table-extend) > .input-daterange {
    display: none;
}

a {
    text-decoration: none !important;
}

dt {
    font-weight: 600 !important;
    background-color: #f8f9fa;
}

.nav-tabs .nav-item {
    margin-bottom: 0px;
}

.nav-tabs .nav-link.active {
    color: rgb(73, 80, 87);
    background-color: rgb(255, 255, 255);
    border-color: rgb(222, 226, 230) rgb(222, 226, 230) rgb(255, 255, 255);
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.custom-control-label {
    line-height: 1.8 !important;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    width: 100%;
    padding-right: var(--ct-gutter-x,0px);
    padding-left: var(--ct-gutter-x,0px);
    margin-right: auto;
    margin-left: auto
}

.mvc-grid-title {
    text-transform: uppercase !important;
    font-weight: bold !important;
}

.table thead th {
    text-transform: uppercase !important;
    font-weight: bold !important;
}

.modal-title {
    text-transform: uppercase;
}

.card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

.modal-body {
    padding-bottom: 0 !important;
    outline: 0 !important;
    margin-bottom: -5px !important;
}

.modal-content {
    border-radius: .3rem;
}
*/



.w-10px {
    width: 10px;
}

.w-20px {
    width: 20px;
}

.w-30px {
    width: 30px;
}

.w-40px {
    width: 40px;
}

.w-50px {
    width: 50px;
}

.w-60px {
    width: 60px;
}

.w-70px {
    width: 70px;
}

.w-80px {
    width: 80px;
}

.w-90px {
    width: 90px;
}

.w-100px {
    width: 100px;
}

.w-110px {
    width: 110px;
}

.w-120px {
    width: 120px;
}

.w-130px {
    width: 130px;
}

.w-140px {
    width: 140px;
}

.w-150px {
    width: 150px;
}

.w-160px {
    width: 160px;
}

.w-170px {
    width: 170px;
}

.w-180px {
    width: 180px;
}

.w-190px {
    width: 190px;
}

.w-200px {
    width: 200px;
}

.w-250px {
    width: 250px;
}

.w-300px {
    width: 300px;
}

.w-500px {
    width: 500px;
}

.select2-container {
    width: 100% !important;
}

.mvc-grid-table > table > thead > tr > th, .mvc-grid-table > table > tbody > tr > td, .mvc-grid-table > table > tfoot > tr > td {
    vertical-align: middle !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Định dạng chung cho select2 */
.select2-container {
    width: 100% !important;
/*    height: 35px !important;*/
}

/* Định dạng select2 selection */
.select2-selection {
    height: calc(2.55rem + 2px) !important;
    padding: 0.375rem 0.75rem;
    background-color: #ffffff;
    line-height: 1.5;
    border: 1px solid #ccc; /* Viền mỏng hơn */
    border-radius: 0.375rem; /* Đảm bảo viền bo tròn */
}

.select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    padding-left: 1px;
    padding-right: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Khi select2 được focus */
.select2-selection--single:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25); /* Hiệu ứng shadow khi focus */
}

/* Định dạng hover cho các mục trong dropdown */
.select2-results__option--highlighted {
    background-color: #f8f9fa; /* Màu nền khi hover giống với hover trong dropdown của Bootstrap */
    color: #495057; /* Màu chữ khi hover */
}

/* Canh chỉnh mũi tên ở giữa */
.select2-selection__arrow {
    top: 50% !important; /* Căn giữa mũi tên theo chiều dọc */
    transform: translateY(-50%); /* Căn giữa chính xác */
}

.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: .0625rem solid rgba(231,234,243,.7) !important;
    border-radius: 4px;
}

/* Cải thiện thiết kế chung của Select2 */
.select2-results {
    background-color: #ffffff; /* Màu nền sáng */
    border-radius: 5px; /* Góc bo tròn */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ cho dropdown */
    max-height: 300px; /* Chiều cao tối đa để không bị tràn ra ngoài */
    overflow-y: auto; /* Cuộn dọc khi có quá nhiều lựa chọn */
}

/* Cải thiện các mục trong danh sách */
.select2-results__options {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Các lựa chọn không được chọn */
.select2-results__option {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    /* Lựa chọn khi hover */
    .select2-results__option:hover {
        background-color: #f0f0f0; /* Màu nền khi hover */
        color: #007bff; /* Màu chữ khi hover */
    }

/* Lựa chọn được chọn */
.select2-results__option--highlighted {
    background-color: #007bff; /* Màu nền khi mục được chọn */
    color: white; /* Màu chữ khi mục được chọn */
}

/* Các thanh cuộn */
.ps__rail-x, .ps__rail-y {
    background-color: #f1f1f1; /* Màu nền của thanh cuộn */
    border-radius: 5px; /* Góc bo tròn cho thanh cuộn */
}

/* Các thanh cuộn khi kéo */
.ps__thumb-x, .ps__thumb-y {
    background-color: #007bff; /* Màu của thumb trong thanh cuộn */
    border-radius: 5px;
}


.header-custom {
    background-color: rgba(55,125,255,.1) !important;
    /*    background-color: #f8f9fa !important;*/
    /* background-color: #f7f7f7 !important;*/
    /*background-color: rgba(113,134,157,.1) !important;*/
}

.card table tr th {
     font-weight: bold !important; 
}

.table thead th {
    font-size: 0.85rem !important;
}

.number-input {
    text-align: right;
}

.modal-body {
    padding: 1rem !important;
}

/*.mvc-grid-table {
    min-height: 150px !important;
}*/

.modal-title {
    text-transform: uppercase !important;
}

.float-right {
    text-align: right !important;
}

input[readonly].form-control-light {
    background-color: #f8f9fa !important;
   /* color: #000 !important;*/
}

.page-header {
    padding-bottom: 0.75rem !important;
    margin-bottom: 1.25rem !important;
}

td {
    vertical-align: middle !important;
}

.mvc-grid-table-detail {
    min-height: 50px !important;
}

.navbar-brand-logo {
    width: 100%;
    min-width: 7.0rem !important;
    max-width: 7.0rem !important;
}

.kv-file-zoom {
    display: none !important;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    max-width: 200px; 
}

/* Hiệu ứng Toast xuất hiện mượt mà */
.toast.toast-show {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Hiệu ứng mượt mà hơn */
    opacity: 0;
    transform: translateY(30px); /* Toast bắt đầu dưới */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Đổ bóng nhẹ giúp toast nổi bật hơn */
}

    /* Khi Toast hiển thị */
    .toast.toast-show.show {
        opacity: 1;
        transform: translateY(0); /* Di chuyển lên trên */
    }

/* Khoảng cách giữa các Toast khi nhiều cái hiển thị */
#toast-container .toast {
    margin-top: 12px; /* Khoảng cách giữa các Toast */
    padding-top: 10px; /* Padding trên */
    padding-bottom: 10px; /* Padding dưới */
}

/* Điều chỉnh padding cho phần tử trên màn hình lớn */
@media (min-width: 768px) {
    .no-padding .col-sm-2, .col-sm-6, .col-sm-3, .col-sm-4, .col-sm-12 {
        padding-right: 0rem !important; /* Thêm padding phải cho màn hình PC */
    }

    .no-padding .col-md-2, .col-md-6, .col-md-3, .col-md-4, .col-md-12 {
        padding-right: 0rem !important; /* Thêm padding phải cho màn hình PC */
    }
}

/* Điều chỉnh padding cho phần tử trên màn hình nhỏ */
@media (max-width: 767px) {
    .no-padding .col-12 {
        padding-right: 0 !important; /* Đảm bảo không có padding phải trên di động */
    }
}

.table thead th {
    text-transform: uppercase !important;
    font-weight: bold !important;
    text-align: center !important;
}

.ps__rail-x,
.ps__rail-y {
    display: none !important;
}

html, body {
    overflow-x: hidden;
}

.input-daterange {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .input-group-text i {
        color: #6c757d;
        font-size: 1rem;
    }

.js-flatpickr {
    flex: 1;
    min-width: 150px !important;
}

.text-bold {
    font-weight: bold !important;
}

/*.custom-table {
    min-width: 900px;
    width: 100%;
}*/

/*@media (max-width: 768px) {
    .mvc-grid-table table {
        min-width: 1200px;
    }
}*/

/*.mb-4 {
    margin-bottom: 1.0rem !important;
}*/

.row > * {
    padding-right: calc(var(--bs-gutter-x)* .3) !important;
    padding-left: calc(var(--bs-gutter-x)* .3) !important;
}

.cke_notification {
    display: none !important;
}

.main .content {
    padding-top: 1.75rem !important;
    padding-bottom: 0rem !important;
}

body {
    padding-right: 0 !important
}

.bootbox.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(-20px);
    opacity: 0;
}

.bootbox.modal.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.navbar-vertical-content::-webkit-scrollbar {
    width: 0.25rem !important;
}

/* Bỏ scroll ở lớp ngoài */
.tableFixHead {
    overflow: unset;
    height: auto;
}

    /* Đặt scroll đúng chỗ */
    .tableFixHead .mvc-grid-table {
        max-height: 60vh;
        overflow-y: auto;
        position: relative;
    }

        /* Sticky header - Grid MVC */
        .tableFixHead .mvc-grid-table thead th {
            position: sticky;
            top: 0;
            z-index: 10;
            border-bottom: 1px solid #f7f7f7;
        }

        /* Optional: giữ độ rộng thẳng hàng */
        .tableFixHead .mvc-grid-table table {
            border-collapse: separate;
            border-spacing: 0;
        }

.modal-almost-fullscreen {
    width: 95vw !important;
    max-width: 95vw !important;
    height: 50vh !important;
    max-height: 50vh !important;
    margin: auto;
}

.container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
}

.page-header {
    margin-left: 10px;
}

.ui-datepicker, .datepicker, .flatpickr-calendar {
    font-size: 12px !important;
}

.flatpickr-calendar {
    width: 23rem !important;
}

html {
    font-size: 15px;
}