﻿.content-fixed {
    min-height: calc(100vh - 115px) !important;
}

.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;
}

.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);
}

.number-input {
    text-align: right;
}

.topnav-navbar .app-search {
    float: none;
}

/*.app-search .form-control {
    padding: .45rem .9rem !important;
}

.app-search .select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--gray) !important;
}*/

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-top: 5px;
    margin-right: 35px;
}

.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: 120px;
}

.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;
}

dd {
    width: 75%;
    min-height: 27px !important;
}

/***CKEditor****/
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*****************/
.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;
    }

    dd {
        width: 65%;
        min-height: 27px;
    }
}

@media(min-width: 767px) {
    dt {
        width: 35%;
        background-color: #e9e9e9;  
    }

    dd {
        width: 65%;
        min-height: 27px;
    }
}

@media (min-width: 1366px) {
    .modal-xl {
        max-width: 1024px !important;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 90% !important;
    }
}
@media (min-width: 600px) {
    .modal-md1 {
        max-width: 650px !important;
    }
}
@media (min-width: 700px) {
    .modal-md2 {
        max-width: 700px !important;
    }
}
@media (min-width: 750px) {
    .modal-md3 {
        max-width: 750px !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;
}

.table td {
    vertical-align: middle !important;
    font-weight: 300;
}

.h5-color {
    color: #536de6;
}

.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: #FAFAFA;
}

.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.4 !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
}

.select2-container {
    width: 100% !important;
}

.btn-custom-mobile {
    position: fixed;
    bottom: 10px;
    z-index: 999;
    right: 10px;
    width: 50px; 
    height: 50px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.site-name-mo {
    color: white;
    font-size: large;
    float: left;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.625rem 1rem;
    margin-bottom: 0.625rem;
    list-style: none;
    /*background-color: #f8f9fa;*/
    border-radius: 0.25rem;
    font-size: 16px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0;
    color: #007bff;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
}

    .breadcrumb-item a:hover {
        text-decoration: underline;
    }

.breadcrumb-item.active {
    color: #6c757d;
}

@media (min-width: 769px) {
    .cus-ml-1 {
        margin-left: 5px;
    }

    select {
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


}

.navbar-blue {
    background-color: #2980B9;
}

    .navbar-blue .navbar-intro {
        background-color: #2980B9;
    }

.sidebar .submenu-inner {
    position: relative;
    padding-left: 15px;
}

    .sidebar .submenu-inner::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 28px;
        width: 1px;
        background-image: linear-gradient(to bottom, #ccc 25%, transparent 25%, transparent 50%, #ccc 50%, #ccc 75%, transparent 75%, transparent);
        background-size: 1px 8px;
        background-repeat: repeat-y;
    }
.submenu-inner .nav-item > .nav-link {
    position: relative;
    padding-left: 2rem; /* tạo khoảng cho dấu gạch */
}

    .submenu-inner .nav-item > .nav-link::before {
        content: "...."; /* dấu gạch ngang */
        position: absolute;
        left: 1rem;
        top: 40%;
        transform: translateY(-50%);
        color: #999; /* màu dấu gạch */
        font-size: 0.875rem;
    }

.sidebar-light .submenu .submenu .nav-link {
    padding-left: 2rem !important;
}

html {
    --navbar-height: 3.5rem;
    --navbar-sm-height: 4rem;
    --navbar-mobile-height: 4rem;
    --sidebar-width: 15rem;
    --sidebar-collapsed-width: 5rem;
    --sidebar-horizontal-height: 4.25rem;
    --sidebar-horizontal-collapsed-height: 4rem;
}

html {
    font-size: 14px;
}

.mvc-grid-table, .mvc-grid, .mvc-grid-pager {
    overflow: visible; /* Cho phép các thành phần con vượt ra ngoài */
}

.sidebar .nav > .nav-item > .submenu > .submenu-inner > .nav-item:not(:last-child) {
     margin-bottom: 0px; 
}

.sidebar .submenu .nav-link {
     min-height: 1rem; 
}

ul {
    list-style-type: none !important;
}

.mvc-grid-table td {
    padding: 5px 8px !important; /* top/bottom: 2px; left/right: 8px */
    line-height: 1.2 !important;
}

.table thead th {
    text-transform: uppercase;
    background-color: #f7f7f7;
    text-align: center;
}

.h5-color {
    text-transform: uppercase;
}

.card-header {
    padding: 0.25rem 1rem !important;
}

dl.dl-horizontal dt,
dl.dl-horizontal dd {
    min-height: 28px !important;
}

/* Thêm vào file CSS của bạn */
.swal2-toast-custom {
    background: white !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.1) !important;
    border-radius: 4px !important;
    padding: 0 !important;
}

.swal2-toast-title-custom {
    display: none !important;
}

.swal2-toast-content-custom {
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

.swal2-toast-custom .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.ps__rail-y {
    display: none !important;
}

.ps {
    overflow: auto !important;
    position: static !important;
}

.ps--active-y {
    overflow-y: auto !important;
}

.mvc-grid-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh);
    /*width: calc(100vw - 240px);*/
}

    .mvc-grid-scroll .mvc-grid-table {
        min-width: 100%;
        width: max-content;
        border-collapse: separate;
        border-spacing: 0;
    }

       /* .mvc-grid-scroll .mvc-grid-table thead th {
            position: sticky;
            top: 0;
            z-index: 5;
        }*/

 
.page-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.main-content {
    margin-top: 0px; 
}
.breadcrumb {
    margin-bottom: 0;
    background: none;
    padding: 0;
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        text-decoration: underline;
    }

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.panel-breadcrumb .btn {
    padding: 6px 12px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-content {
    padding: 0.5rem 0.375rem 0.625rem;
}

html, body {
    /*overflow-x: hidden;*/
    width: 100%;
}

.main-container {
    display: flex;
    width: 100%;
    min-width: 0;
}

.main-content {
    flex-grow: 1;
    min-width: 0;
}
.panel-breadcrumb {
    position: sticky;
    top: 52px;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px 4px 0 0;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    background-color: #fafbfc;
}
.filter-toolbar {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 5px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    background-color: #fff;
}
.panel-breadcrumb.no-toolbar {
    margin-bottom: 0.5rem !important;
}
.page-toolbar-wrapper {
    position: sticky;
    top: 52px;
    z-index: 1000;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background-color: transparent;
    display: block;
    margin: 0 auto;
}

.tab-content {
     padding: 0rem !important; 
}

.pd-left-1 {
    padding-left: 10px !important;
}

.select2-container .select2-selection--single {
    height: 2.375rem;
}

.select2-selection__clear {
    display: none !important;
}
@media (max-width: 768px) {
    .navbar {
        height: 50px; /* hoặc chiều cao mong muốn */
    }

    .navbar-inner {
        display: flex;
        align-items: center; /* Căn giữa theo chiều dọc */
    }

    .mobile-breadcrumb {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        /*font-weight: 600;*/
        color: #fff;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 20px;
    }
}