﻿/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
/*input,
select,
textarea {
    max-width: 280px;
}*/

.title-login {
    color: #0759d2;
}
.btn-login {
    background-color: #185598;
    color: white;
    border: 0;
}
    .btn-login:hover {
        background-color: #154881;
        color:white;
    }
/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }
}


:root {
    --sidebar-width: 70px;
    --sidebar-minwidth-expand: 260px;
    --navbar-height: 50px;
    --navbar-minheight-expand: 80px;
    --footer-height: 3rem;
}
/*MenuSidebarDashboard*/
.sidebar-title-container {
    display: flex;
    flex-flow: column;
}

.icon-sidebar-header {
    color: white;
    font-size: 50px;
}

.menu-header {
    color: darkgray;
    font-size: large;
    font-weight: 400;
}

.header-style {
    font-size: x-large;
    font-weight: 500;
    color: white;
}

.sidebar-header-container {
    height: var(--navbar-minheight-expand);
    align-items: center;
    justify-content: center;
    display: flex;
    border-bottom: 1px solid lightblue;
}

.sidebar-header-item {
    color: darkgray;
    font-weight: 600;
    padding: .625rem 1.625rem;
}

@media(max-width:768px) {
    .sidebar-custom {
        display: none;
        position: sticky;
        top: 0;
        bottom: 0;
        left: 0;
    }
}

@media(min-width:767px) {
    .sidebar-custom {
        display: flex;
        position: sticky;
        top: 0;
        bottom: 0;
        left: 0;
    }
}
.sidebar-custom{
    height: 100vh;
   
}


    ::after,
    ::before {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

.card, .form-control, .select, .input-group {
    position: initial !important;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

.wrapper {
    display: flex;
}



#sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: #0e2238;
    display: flex;
    flex-direction: column;
}

    #sidebar.expand {
        width: 100%;
        min-width: var(--sidebar-minwidth-expand);
    }

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

    .toggle-btn i {
        font-size: 1.5rem;
        color: #FFF;
    }

.sidebar-logo {
    margin: auto 0;
}

    .sidebar-logo a {
        color: #FFF;
        font-size: 1.15rem;
        font-weight: 600;
    }

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1 1 auto;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #3b7ddd;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #0e2238;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown + .sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

.collapse-horizontal {
    transition: transform 0.3s ease;
}

#sidebar:not(.expand) .sidebar-header-item{
    display:none;
}

.divider{
    color:white;
}
#sidebar.expand .divider{
    display:none;
}

#sidebar:not(.expand) .divider {
    display: block;
}

.sidebar-nav::-webkit-scrollbar {
    width: 0; /* Ẩn thanh cuộn trên Chrome/Safari */
}


.sidebar-nav {
    overflow-y: scroll;
    scrollbar-width: none; /* Ẩn thanh cuộn trên Firefox */
}


/*MenuTopDashboard*/
.navbar-container {
    background-color: #0c2d50;
    display: flex;
    align-items: center;
}

.sidebar-link-level2 {
    margin-left: 16px;
}

.sidebar-link-level3{
    margin-left: 32px;
}

#menu-top {
    height: var(--navbar-height);
    transition: all .25s ease-in-out;
}

    #menu-top.expand {
        height: var(--navbar-minheight-expand);
    }

.menu-top-container {
    align-items: center;
    display: flex;
}

.navbar.main-header .nav-item a {
    transition: .3s;
}

.navbar.main-header .nav-item i {
    display: block;
    font-size: 20px;
}

.navbar.main-header .nav-item a:hover {
    background-color: #cccccc69;
    color: #000;
}

#menu-top:not(.expand) a.nav-link span {
    display: none;
}

.user-language-full {
    position: absolute;
    right: 0;
    padding-right: 10px;
}

.user-language-icon {
    position: absolute;
    right: 0;
}

.btn-user-language {
    background-color: transparent;
    color: black;
    border: 0;
    padding-right: 10px;
}

.btn-flag {
    text-decoration: underline;
    color: white;
    outline: none;
    border: none;
    border-radius: 0px;
}

.btn-flag:hover {
    color: white;
    outline: none;
    border: none;
    box-shadow: none;
}


/*Footer*/
.footer-kiposx {
    background-color: #dcdcdc;
    height: var(--footer-height);
    margin-top: auto;
    width: 100%;
}
.footer-right{
    display:flex;
    flex-wrap:nowrap;
}
/*ManagerPanel*/
.manager-panel {
    position: fixed;
    top: var(--navbar-minheight-expand);
    right: 0;
    z-index: 10000;
}

@media(max-width: 768px) {
    .manager-panel {
        display: none;
    }
}
/*ToolBar*/
.toolbar {
    background-color: #073b72e0;
}
/*BodyContent*/
.scroll-body-content::-webkit-scrollbar {
    width: 0; /* Ẩn thanh cuộn trên Chrome/Safari */
    
}

.scroll-body-content {
    overflow-y: scroll;
    scrollbar-width: none; /* Ẩn thanh cuộn trên Firefox */
}

/*DropdownList*/
.dropdownlist {
    width: 100%;
    background-color: transparent;
    display: flex;
    text-align: start;
    border: 1px solid #DCE0E4;
}

/*Table*/
.table-header {
    /*height: var(--navbar-minheight-expand);*/
    height: 60px;
}

.table-header-bg {
    background-color: #216cbb !important;
}

@media only screen and (max-width: 767px) {
    .table-header {
        position: sticky;
        top: var(--navbar-height);
        z-index: 1000;
    }
}
@media only screen and (min-width: 768px) {
    .table-header {
        position: sticky;
        top: var(--navbar-minheight-expand);
        z-index:1000;
    }
}

.dt-layout-row .dt-info {
    display: none ;
}


table a, table td, table p, table span {
    white-space: initial;
}

/* Css responsive table column */

table tbody tr.child > td.child {
    background-color: #f0f0f02b;
}

    table tbody tr.child > td.child ul.dtr-details {
        width: 100%;
    }

        table tbody tr.child > td.child ul.dtr-details > li {
            display: flex;
        }

            table tbody tr.child > td.child ul.dtr-details > li > .dtr-title {
                width: 20%;
                margin-right: 15px;
                padding-right: 10px;
                border-right: 1px solid #BBBBBB;
                color: #333;
            }
        table tbody tr.child > td.child ul.dtr-details > li {
            border-bottom: 1px solid #BBBBBB;
            display:flex;
            align-items:center;
        }

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
    background-color: #377cdf !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before {
    background-color: #d33333 !important;
}


.header-sort-style {
    color: white;
    justify-content: end;
    display: flex;
}

.header-sort-style:hover{
    color:white;
}

.dtr-title > .row > a.header-sort-style {
    color: #333;
    justify-content: start;
    display: flex;
}


th.col-para,
td.col-para {
    /*min-width: 250px !important;*/
    width: 17% !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
}


th.col-sort,
td.col-sort {
    /*min-width: 350px !important;*/
    width: 30% !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
}

th.col-description,
td.col-description {
    /*max-width: 180px !important;*/
    width: 10% !important;
    word-wrap: break-word;
    overflow-wrap: break-word !important;
}

th.col-message,
td.col-message {
    max-width: 400px !important;
    word-wrap: break-word;
    overflow-wrap: break-word !important;
}

/*Hover-effect*/
.hover-effect1:hover {
    transition: all 0.3s ease;
    background-color: #BDBDBD;
    outline: none;
    border: none;
}

.hover-effect2:hover {
    transition: all 0.3s ease;
    background-color: #0679e5;
    outline: none;
    border: none;
}


.input-group-append {
    cursor: pointer;
}

.tbx-metacontentediter {
    width: 100% !important;
    max-width: 100%;
    text-align: left !important;
}
/*Body*/
.body-custom.expand {
    height: 100%;
    background-color: #f0f0f0;
    float: left;
    transition: width 0.3s;
    width: calc(100vw - var(--sidebar-minwidth-expand)) !important;
}

.body-custom.compact {
    height: 100%;
    background-color: #f0f0f0;
    float: left;
    transition: width 0.3s;
    width: calc(100vw - var(--sidebar-width)) !important;
}

@media (max-width: 768px) {
    .body-custom.mobile {
        width: 100% !important;
    }
}

.body-custom{
    overflow: hidden;
}

.btn-close-alert{
    float:right;
    border: none;
    background-color: transparent;
}

/* horizontal panel*/

.panel-container {
   
    display: flex;
    flex-direction: row;
    overflow: hidden;
    /* avoid browser level touch actions */
    touch-action: none;
    height: calc(100vh - 86px - 65px);
}

.panel-left {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    /* only manually resize */
    padding: 5px;
    width: 30%;
    min-height: 100%;
    min-width: 300px;
    width: 300px;
    /* white-space: nowrap; */
    /* background: #838383;
color: white; */
}
.panel-left-treeview {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    /* only manually resize */
    width: 30%;
    padding: 5px;
    min-height: 100%;
    min-width: 100px;
    width: 430px;
}

.splitter {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 5px;
    background: url(https://raw.githubusercontent.com/RickStrahl/jquery-resizable/master/assets/vsizegrip.png) center center no-repeat #dcdcdc;
    min-height: 200px;
    cursor: col-resize;
}

.panel-right {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    /* resizable */
    padding: 5px;
    width: 100%;
    min-height: 200px;
    min-width: 300px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Gioi han do rong cho cac bang*/
.div-userRoleManager{
    width:800px;
}

.div-lookupListManager {
    width: 1200px;
}

.div-repository{
    width:1200px;
}

.div-locationprofiles{
    width: 1200px;
}

.div-containerprofiles{
    width: 1200px;
}

.div-menuTypeManager{
    width: 1500px;
}

.div-sectionManager{
    width: 1200px;
}

.div-forumManager{
    width: 1200px;
}

.div-patronTypeSetting{
    width: 1400px;
}

.div-fineTypeSetting{
    width: 1200px;
}

.div-dmdSeriesBrowserSettings{
    width: 1200px;
}

.div-authorityTypeSettings{
    width: 1500px;
}

.div-shelfSettings{
    width: 1200px;
}

.div-organizationSettings{
    width: 1200px;
}

.div-managerIP{
    width: 700px;
}

.div-courseAddUpdate{
    width: 1500px;
}

.div-itemClassSetting{
    width: 1000px;
}
.ckfinder-custom {
    height: calc(100vh - var(--navbar-minheight-expand));
}

    .datepicker {
        z-index: 100000 !important;
    }

select{
    max-width: 100%;
}

input{
    max-width: 100%;
}

.background-div {
    position: relative; /* Đặt vị trí tương đối để chứa overlay */
    height:100%;
}

    .background-div::before {
        content: ''; /* Tạo một layer phụ trước nền */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../Content/Images/hiendai.png');
        background-size: contain;
        background-position: center;
        opacity: 0.1;
        /* filter: blur(10px);*/ /* Làm mờ hình ảnh */
        z-index: 1; /* Đẩy layer xuống phía sau */
    }

.card-treeview {
    height: calc(100vh - var(--navbar-minheight-expand) - var( --footer-height) - 40px);
    overflow-y: scroll;
}
.card-report-result {
    height: calc(100vh - var(--navbar-minheight-expand) - var( --footer-height) - 40px);
}
/* Style CheckBox*/
.checkbox-list {
    list-style-type: none; /* Xóa kiểu danh sách gạch đầu dòng */
    padding: 0;
    margin: 0;
}

    .checkbox-list li {
        display: flex;
        align-items: center;
        padding: 0.15rem 0;
    }

    .checkbox-list input[type="checkbox"] {
        margin-right: 0.5rem;
    }

    .checkbox-list label {
        margin: 0;
    }

    /* Tùy chỉnh lớp bootstrap */
    .checkbox-list.border {
        border: 1px solid #dee2e6;
    }

    .checkbox-list.rounded {
        border-radius: 0.25rem;
    }

    .checkbox-list.p-2 {
        padding: 0.15rem;
    }

    .checkbox-list.mb-0 {
        margin-bottom: 0;
    }

.report-card-body {
    resize: vertical;
    overflow-x: scroll;
    overflow-y: scroll;
}
.button-close {
    background-color: white; /* Nền trắng */
    filter: none; /* Loại bỏ filter mặc định */
    width: 1.5rem; /* Kích thước tùy chỉnh */
    height: 1.5rem;
    border-radius: 50%; /* Bo tròn nút */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    opacity:0.7;
}
.button-close:hover{
    opacity:1;
}

    .button-close::before {
        content: '\00d7'; /* Ký tự dấu "×" */
        font-size: 2.5rem; /* Kích thước dấu X */
        color: red; /* Màu đỏ */
        font-weight: bold;
        line-height: 1;
    }

    .modal-body p{
        font-size: 1.25rem;
    }

.clear {
    background: #b81b0b;
    color: white;
}
    .clear:hover {
        background: #df0202 !important;
    }

.badge-custom{
    font-size: 1rem !important;
    width: 130px;
}
.btn-select {
    background: #c2bdbd;
    border: 0;
}
    .btn-select:hover {
        background: #cccccc;
    }
    .btn-select li:hover{
        background: #cccccc;
    }
    .btn-select[aria-expanded="true"] {
        background-color: #cccccc !important;
    }

.custom-tab {
    display: flex;
    justify-content: flex-start;
    border-bottom: 2px solid #228dff;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

    .custom-tab .nav-item {
        margin: 0;
    }

    .custom-tab .nav-link {
        padding: 10px 20px;
        font-size: 1.3rem;
        color: #0587fb;
        background-color: transparent;
        border: 1px solid transparent;
        border-radius: 6px 6px 0 0;
        transition: all 0.2s ease-in-out;
        cursor: pointer;
    }

        .custom-tab .nav-link:hover {
            color: #007bff;
            background-color: #e9ecef;
            border-color: #007bff;
        }

        /* Tab đang được chọn (active) */
        .custom-tab .nav-link.active {
            color: #ffffff;
            background-color: #9c2ff3;
            border-color: #9c2ff3;
            font-weight: 600;
        }

    /* Thêm hiệu ứng khi hover vào tab */
    .custom-tab .nav-item:not(.active) .nav-link:hover {
        border-color: #007bff;
    }

    /* Tạo hiệu ứng bo tròn cho các tab */
    .custom-tab .nav-item:first-child .nav-link {
        border-top-left-radius: 6px;
    }

    .custom-tab .nav-item:last-child .nav-link {
        border-top-right-radius: 6px;
    }

.table-custom tbody td {
    border-bottom: 1px solid #b9bec2 !important;
}
.custom-tab li button{
    width: 100%;
}
@media (min-width:800px) and (max-width: 1100px){
    .custom-tab li{
        width:50%;
    }
}
@media (max-width: 799px){
    .custom-tab li {
        width: 100%;
    }
}



