﻿/*
 Only custom marker for summary/details
 For cross browser compatible styling hide Firefox's marker by setting summary { display: block }
 and Chrome and Safari's marker by setting ::-webkit-details-marker {display: none;}
    nguồn: https://codepen.io/johnbarnitz/pen/gOPbVer

*/
summary {
    display: block;
    cursor: pointer;
    outline: 0;
}

    summary::-webkit-details-marker {
        display: none;
    }



.tree-nav__item {
    display: block;
    white-space: nowrap;
    color: #39336b;
    position: relative;
}

    .tree-nav__item.is-expandable::before {
        border-left: 1px solid #6a92f7ed;
        content: "";
        height: 100%;
        left: 0.8rem;
        position: absolute;
        top: 2.4rem;
        height: calc(100% - 2.4rem);
    }

    .tree-nav__item .tree-nav__item {
        margin-left: 2.4rem;
    }

    .tree-nav__item.is-expandable[open] > .tree-nav__item-title::before {
        font-family: "ionicons";
        transform: rotate(90deg);
    }

    .tree-nav__item.is-expandable > .tree-nav__item-title {
        padding-left: 2.4rem;
    }

        .tree-nav__item.is-expandable > .tree-nav__item-title::before {
            position: absolute;
            will-change: transform;
            transition: transform 300ms ease;
            font-family: "ionicons";
            color: #100f87;
            font-size: 1rem;
            content: "\f125";
            left: 0;
            display: inline-block;
            width: 1.6rem;
            text-align: center;
        }

.tree-nav__item-title {
    cursor: pointer;
    display: block;
    outline: 0;
    color: #100f87;
    font-size: 1rem;
    line-height: 2.5rem;
}

    .tree-nav__item-title .icon {
        display: inline;
        padding-left: 1.6rem;
        margin-right: 0.8rem;
        color: #100f87;
        font-size: 1rem;
        position: relative;
    }

        .tree-nav__item-title .icon::before {
            top: 0;
            position: absolute;
            left: 0;
            display: inline-block;
            width: 1.6rem;
            text-align: center;
        }

    .tree-nav__item-title::-webkit-details-marker {
        display: none;
    }

/*Noi dung dau trang tvs*/
#header-img {
    width: 100%;
    padding: 0 !important;
}

#header-tvs {
    background-image: url("../img/tvs/Library_img-e1577731640247.jpg");
    width: 100%;
    min-height: 400px;
}

.header-title {
    line-height: 170px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 60px;
    font-style: italic;
    text-align: center;
    color: white;
    background-color: #6a92f7ed;
    background-size: 100px;
    font-weight: 700;
}

.header-title2 {
    position: relative;
    bottom: -40px;
    font-family: Cambria, Cochin, Georgia, Times, Times New Roman, serif, sans-serif;
    font-size: 25px;
    text-align: center;
    background-color: white;
    width: 500px;
    font-weight: 100 !important;
}

.form-search {
    max-width: 100%;
    padding: 0;
    text-align: center;
    margin: 0 auto;
    position: relative;
    top: -30px;
}

body {
    background-color: #eee;
    font-family: "UTM Avo","Poppins", sans-serif;
    font-weight: 300;
}

/*Thanh tim kiem*/
.search {
    position: relative;
    box-shadow: 0 0 40px rgba(51, 51, 51, .1);
}

    .search input {
        height: 60px;
        text-indent: 25px;
        border: 2px solid #d6d4d4;
    }


        .search input:focus {
            box-shadow: none;
            border: 2px solid blue;
        }

    .search .fa-search {
        position: absolute;
        top: 20px;
        left: 16px;
    }

    .search button {
        position: absolute;
        top: 5px;
        right: 5px;
        height: 50px;
        width: 110px;
    }

/* Nut tim kiem nho*/
.search-sm {
    position: relative;
    box-shadow: 0 0 40px rgba(51, 51, 51, .1);
}

    .search-sm input {
        height: 41px;
        margin-top: 2px;
        text-indent: 25px;
        border: 2px solid #d6d4d4;
    }

        .search-sm input:focus {
            box-shadow: none;
        }

    .search-sm .fa-search {
        position: absolute;
        top: 14px;
        left: 16px;
    }

    .search-sm button {
        position: absolute;
        top: 4px;
        right: 5px;
        height: 33px;
        width: 105px;
        padding-top: 2px !important; /*chỉnh vị trí chữ cân vào giữa theo chiều cao*/
    }

/*Noi dung trang chu thu vien so*/
#quote {
    text-align: center;
    padding: 20px;
}

#content-tvs {
    position: relative;
    top: -50px;
    background-color: white;
    min-height: 500px;
    color: #4e4e4e;
    padding-top: 20px;
}

#tvs-gt-1 {
    color: white;
    min-height: 400px;
    background-color: #5073b3d2;
}


.inlineBlock {
    display: inline-block !important;
    color: red !important;
}

.tree-nav__item-title .iconred {
    display: inline;
    padding-left: 1.6rem;
    margin-right: 0.8rem;
    color: red;
    font-size: 1rem;
    position: relative;
}


/*Phần header tài liệu mới, được yêu thích...*/
.tl-div {
    margin-bottom: 10px;
}

.tl-div-header {
    background-color: cornflowerblue;
    color: white;
    padding: 10px;
    border-radius: 5px 5px 0px 0px;
    margin-bottom: 0;
    font-size: medium;
    font-weight: bold;
}

    .tl-div-header:hover {
        color: white;
        text-decoration-line: none;
    }

.tl-header-link {
    text-align: right;
    display: block
}

.tl-div-head {
    margin-left: 0px !important;
    display: flex;
    justify-content: space-between;
}

.tl-div-body {
    border-top: 2px solid cornflowerblue;
}

.tl-body-col {
    padding: 10px;
    padding-bottom: 0px !important;
}

.img-title-book img {
    height: 300px;
    width: 200px;
}

.carousel-control-prev {
    justify-content: left;
    color: black;
}

.carousel-control-next {
    justify-content: right;
}

.inline-div {
    display: flex !important;
    justify-content: stretch;
}

.img-title-book p {
    font-size: large;
    color: darkblue;
    text-align: center;
    margin-top: 5px;
    max-width: 200px;
}

.NutDieuHuongTaiLieu {
    visibility: hidden;
}

/*------------------------------------------*/
/*PNH: định dạng cho các mục menu trái phần mềm */


.menugroup-level1 {
    background-color: rgba(255, 255, 255, 0.1);
}

.menugroup-level2 {
    background-color: rgba(255, 255, 255, 0.1);
}

.menuitem-level1 {
    cursor: pointer;
}

.menuitem-level2 {
    cursor: pointer;
}

.menuitem-level3 {
    font-size: 70%;
    color: red;
}


/* PNH dieu chinh mau nhan chu */
label {
    color: black !important;
    opacity: 0.9 !important;
}

.customModalWidth {
    width: 600px !important;
}

.rightInlineButton {
    position: absolute;
    top: 36px;
    right: 16px;
    height: 32px;
    width: 120px;
}

.NoWrap-120 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 120px;
}

.selectedRow {
    background-color: lightblue !important;
}

/*--------------------------------------------------------*/
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.pnhCheck1 {
    transform: scale(1.5);
}


.CountReport {
    background-color: yellow;
    color: red;
    min-width: 20px;
    margin-left: 10px;
    box-shadow: 2px 2px rgba(0,0,100,0.5);
    padding: 2px;
}

.dialogShowScroll {
    height: 450px;
    overflow-y: scroll;
}

.dialog700 {
    width: 700px !important;
}

.ShowXScrollBar {
    overflow-x: auto;
    white-space: nowrap;
}

.ShowYScrollBar {
    overflow-y: scroll;
}

.shortButton {
    cursor: pointer;
    height: 10px;
    width: 15px;
}

.pnh-form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #6e707e;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Nut tim kiem nho*/
.inputWithButton {
    position: relative;
    box-shadow: 0 0 40px rgba(51, 51, 51, .1);
}

    .inputWithButton input {
        height: 39px;
        margin-top: 2px;
        text-indent: 2px;
        border: 2px solid #d6d4d4;
    }


        .inputWithButton input:focus {
            box-shadow: none;
        }

    .inputWithButton .fa-search {
        position: absolute;
        top: 9px;
        left: 13px;
    }

    .inputWithButton button {
        position: absolute;
        top: 3px;
        right: 3px;
        height: 33px;
        width: 40px;
    }

/* PNH */
.collapse {
    width: 97% !important;
}
/* PNH */
.menuBorder {
    border-top: 1px solid var(--mainColorLight2);
}

/*====================================================================*/

/* PNH sua*/
.pnhSidebar {
    position: relative;
    top: 70px;
    width: 6.5rem;
    min-height: calc(100vh - 70px);
    overflow-y: auto;
    vertical-align: top;
}

    .pnhSidebar .nav-item {
        position: relative;
    }

        .pnhSidebar .nav-item:last-child {
            margin-bottom: 1rem;
        }

        .pnhSidebar .nav-item .nav-link {
            text-align: center;
            padding: 0.75rem 1rem;
            width: 6.5rem;
        }

            .pnhSidebar .nav-item .nav-link span {
                font-size: 0.65rem;
                display: block;
            }

        .pnhSidebar .nav-item.active .nav-link {
            font-weight: 700;
        }

        .pnhSidebar .nav-item .collapse {
            position: absolute;
            left: calc(6.5rem + 1.5rem / 2);
            z-index: 1;
            top: 2px;
        }

            .pnhSidebar .nav-item .collapse .collapse-inner {
                border-radius: 0.35rem;
                box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
            }

        .pnhSidebar .nav-item .collapsing {
            display: none;
            transition: none;
        }

            .pnhSidebar .nav-item .collapse .collapse-inner,
            .pnhSidebar .nav-item .collapsing .collapse-inner {
                padding: .15rem 0;
                min-width: 10rem;
                font-size: 0.85rem;
                margin: 0 0 0.1rem 0;
            }

                .pnhSidebar .nav-item .collapse .collapse-inner .collapse-header,
                .pnhSidebar .nav-item .collapsing .collapse-inner .collapse-header {
                    margin: 0;
                    white-space: nowrap;
                    padding: .15rem 1.5rem;
                    text-transform: uppercase;
                    font-weight: 800;
                    font-size: 0.65rem;
                    color: #b7b9cc;
                }

                .pnhSidebar .nav-item .collapse .collapse-inner .collapse-item,
                .pnhSidebar .nav-item .collapsing .collapse-inner .collapse-item {
                    padding: 0.5rem 1rem;
                    margin: 0 0.5rem;
                    display: block;
                    color: #3a3b45;
                    text-decoration: none;
                    border-radius: 0.35rem;
                    white-space: nowrap;
                }

                    .pnhSidebar .nav-item .collapse .collapse-inner .collapse-item:hover,
                    .pnhSidebar .nav-item .collapsing .collapse-inner .collapse-item:hover {
                        background-color: #eaecf4;
                    }

                    .pnhSidebar .nav-item .collapse .collapse-inner .collapse-item:active,
                    .pnhSidebar .nav-item .collapsing .collapse-inner .collapse-item:active {
                        background-color: #dddfeb;
                    }

                    .pnhSidebar .nav-item .collapse .collapse-inner .collapse-item.active,
                    .pnhSidebar .nav-item .collapsing .collapse-inner .collapse-item.active {
                        color: #4e73df;
                        font-weight: 700;
                    }

    .pnhSidebar #sidebarToggle {
        width: 2.5rem;
        height: 2.5rem;
        text-align: center;
        margin-bottom: 1rem;
        cursor: pointer;
    }

        .pnhSidebar #sidebarToggle::after {
            font-weight: 900;
            content: '\f104';
            font-family: 'Font Awesome 5 Free';
            margin-right: 0.1rem;
        }

        .pnhSidebar #sidebarToggle:hover {
            text-decoration: none;
        }

        .pnhSidebar #sidebarToggle:focus {
            outline: none;
        }

    .pnhSidebar.toggled {
        width: 0 !important;
        overflow: hidden;
    }

        .pnhSidebar.toggled #sidebarToggle::after {
            content: '\f105';
            font-family: 'Font Awesome 5 Free';
            margin-left: 0.25rem;
        }

        .pnhSidebar.toggled .pnhSidebar-card {
            display: none;
        }

    .pnhSidebar .pnhSidebar-brand {
        height: 4.375rem;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 800;
        padding: 1.5rem 1rem;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.05rem;
        z-index: 1;
    }

        .pnhSidebar .pnhSidebar-brand .pnhSidebar-brand-icon i {
            font-size: 2rem;
        }

        .pnhSidebar .pnhSidebar-brand .pnhSidebar-brand-text {
            display: none;
        }

    .pnhSidebar hr.pnhSidebar-divider {
        margin: 0 1rem 1rem;
    }

    .pnhSidebar .pnhSidebar-heading {
        text-align: center;
        padding: 0 1rem;
        font-weight: 800;
        font-size: 0.65rem;
    }

    .pnhSidebar .pnhSidebar-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.875rem;
        border-radius: 0.35rem;
        color: rgba(255, 255, 255, 0.8);
        margin-left: 1rem;
        margin-right: 1rem;
        margin-bottom: 1rem;
        padding: 1rem;
        background-color: rgba(0, 0, 0, 0.1);
    }

        .pnhSidebar .pnhSidebar-card .pnhSidebar-card-illustration {
            height: 3rem;
            display: block;
        }

        .pnhSidebar .pnhSidebar-card .pnhSidebar-card-title {
            font-weight: bold;
        }

        .pnhSidebar .pnhSidebar-card p {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
        }

@media (min-width: 768px) {
    /* PNH độ rộng menu  ngang */
    .pnhSidebar {
        width: 20rem !important;
    }

        .pnhSidebar .nav-item .collapse {
            position: relative;
            left: 0;
            z-index: 1;
            top: 0;
            -webkit-animation: none;
            animation: none;
        }

            .pnhSidebar .nav-item .collapse .collapse-inner {
                border-radius: 0;
                box-shadow: none;
            }

        .pnhSidebar .nav-item .collapsing {
            display: block;
            transition: height 0.15s ease;
        }

        .pnhSidebar .nav-item .collapse,
        .pnhSidebar .nav-item .collapsing {
            margin: 0 1rem;
        }
        /* PNH Mục chọn trên menu dọc*/
        .pnhSidebar .nav-item .nav-link {
            display: block;
            width: 100%;
            text-align: left;
            padding: 0.7rem;
        }
            /* PNH Biểu tượng bên trái mục chọn */
            .pnhSidebar .nav-item .nav-link i {
                font-size: 0.85rem;
                margin-right: 0.25rem;
            }

            .pnhSidebar .nav-item .nav-link span {
                font-size: 0.85rem;
                display: inline;
            }

            .pnhSidebar .nav-item .nav-link[data-toggle="collapse"]::after {
                width: 1rem;
                text-align: center;
                float: right;
                vertical-align: 0;
                border: 0;
                font-weight: 900;
                content: '\f107';
                font-family: 'Font Awesome 5 Free';
            }

            .pnhSidebar .nav-item .nav-link[data-toggle="collapse"].collapsed::after {
                content: '\f105';
            }

        .pnhSidebar .pnhSidebar-brand .pnhSidebar-brand-icon i {
            font-size: 2rem;
        }

        .pnhSidebar .pnhSidebar-brand .pnhSidebar-brand-text {
            display: inline;
        }

        .pnhSidebar .pnhSidebar-heading {
            text-align: left;
        }

        .pnhSidebar.toggled {
            overflow: visible;
            width: 0rem !important; /* PNH sửa về 0 để ẩn */
            transition: width 0.5s;
            /* mặc định = 6.5rem, PNH sửa về 0rem để ẩn sidebar */
        }

            .pnhSidebar.toggled .nav-item .collapse {
                position: absolute;
                left: calc(6.5rem + 1.5rem / 2);
                z-index: 1;
                top: 2px;
                -webkit-animation-name: growIn;
                animation-name: growIn;
                -webkit-animation-duration: 200ms;
                animation-duration: 200ms;
                -webkit-animation-timing-function: transform cubic-bezier(0.18, 1.25, 0.4, 1), opacity cubic-bezier(0, 1, 0.4, 1);
                animation-timing-function: transform cubic-bezier(0.18, 1.25, 0.4, 1), opacity cubic-bezier(0, 1, 0.4, 1);
            }

                .pnhSidebar.toggled .nav-item .collapse .collapse-inner {
                    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
                    border-radius: 0.35rem;
                }

            .pnhSidebar.toggled .nav-item .collapsing {
                display: none;
                transition: none;
            }

            .pnhSidebar.toggled .nav-item .collapse,
            .pnhSidebar.toggled .nav-item .collapsing {
                margin: 0;
            }

            .pnhSidebar.toggled .nav-item:last-child {
                margin-bottom: 1rem;
            }

            .pnhSidebar.toggled .nav-item .nav-link {
                text-align: center;
                padding: 0.75rem 1rem;
                width: 6.5rem;
            }

                .pnhSidebar.toggled .nav-item .nav-link span {
                    font-size: 0.65rem;
                    display: block;
                }

                .pnhSidebar.toggled .nav-item .nav-link i {
                    margin-right: 0;
                }

                .pnhSidebar.toggled .nav-item .nav-link[data-toggle="collapse"]::after {
                    display: none;
                }

            .pnhSidebar.toggled .pnhSidebar-brand .pnhSidebar-brand-icon i {
                font-size: 2rem;
            }

            .pnhSidebar.toggled .pnhSidebar-brand .pnhSidebar-brand-text {
                display: none;
            }

            .pnhSidebar.toggled .pnhSidebar-heading {
                text-align: center;
            }
}

.pnhSidebar-light .pnhSidebar-brand {
    color: #6e707e;
}

.pnhSidebar-light hr.pnhSidebar-divider {
    border-top: 1px solid #eaecf4;
}

.pnhSidebar-light .pnhSidebar-heading {
    color: #b7b9cc;
}

.pnhSidebar-light .nav-item .nav-link {
    color: #858796;
}

    .pnhSidebar-light .nav-item .nav-link i {
        color: #d1d3e2;
    }

    .pnhSidebar-light .nav-item .nav-link:active, .pnhSidebar-light .nav-item .nav-link:focus, .pnhSidebar-light .nav-item .nav-link:hover {
        color: #6e707e;
    }

        .pnhSidebar-light .nav-item .nav-link:active i, .pnhSidebar-light .nav-item .nav-link:focus i, .pnhSidebar-light .nav-item .nav-link:hover i {
            color: #6e707e;
        }

    .pnhSidebar-light .nav-item .nav-link[data-toggle="collapse"]::after {
        color: #b7b9cc;
    }

.pnhSidebar-light .nav-item.active .nav-link {
    color: #6e707e;
}

    .pnhSidebar-light .nav-item.active .nav-link i {
        color: #6e707e;
    }

.pnhSidebar-light #sidebarToggle {
    background-color: #eaecf4;
}

    .pnhSidebar-light #sidebarToggle::after {
        color: #b7b9cc;
    }

    .pnhSidebar-light #sidebarToggle:hover {
        background-color: #dddfeb;
    }

.pnhSidebar-dark .pnhSidebar-brand {
    color: #fff;
}

.pnhSidebar-dark hr.pnhSidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pnhSidebar-dark .pnhSidebar-heading {
    color: rgba(255, 255, 255, 0.4);
}

.pnhSidebar-dark .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

    .pnhSidebar-dark .nav-item .nav-link i {
        color: rgba(255, 255, 255, 0.3);
    }

    .pnhSidebar-dark .nav-item .nav-link:active, .pnhSidebar-dark .nav-item .nav-link:focus, .pnhSidebar-dark .nav-item .nav-link:hover {
        color: #fff;
    }

        .pnhSidebar-dark .nav-item .nav-link:active i, .pnhSidebar-dark .nav-item .nav-link:focus i, .pnhSidebar-dark .nav-item .nav-link:hover i {
            color: #fff;
        }

    .pnhSidebar-dark .nav-item .nav-link[data-toggle="collapse"]::after {
        color: rgba(255, 255, 255, 0.5);
    }

.pnhSidebar-dark .nav-item.active .nav-link {
    color: #fff;
}

    .pnhSidebar-dark .nav-item.active .nav-link i {
        color: #fff;
    }

.pnhSidebar-dark #sidebarToggle {
    background-color: rgba(255, 255, 255, 0.2);
}

    .pnhSidebar-dark #sidebarToggle::after {
        color: rgba(255, 255, 255, 0.5);
    }

    .pnhSidebar-dark #sidebarToggle:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }

.pnhSidebar-dark.toggled #sidebarToggle::after {
    color: rgba(255, 255, 255, 0.5);
}


.pnh-function-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 150px !important;
    cursor: pointer;
    border-radius: 8px !important;
}

    .pnh-function-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    }

.pnh-function-description {
    overflow: hidden; /* Ẩn nội dung tràn */
    text-overflow: ellipsis; /* Hiển thị dấu "..." cho văn bản tràn */
    white-space: normal; /* Ngăn không cho văn bản xuống dòng */
    height: 100% !important;
}

.pnh-information-card {
    height: 100px !important;
    border-radius: 20px !important;
    box-shadow: 5px 5px 5px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ===================================================================
   PNH - CUSTOM STYLES FOR DYNAMIC DASHBOARD
   =================================================================== */

/* --- 1. Card chính (Container) --- */
.pnh-main-card-header {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
}

    .pnh-main-card-header .pnh-header-icon {
        margin-right: 0.75rem;
    }

/* --- 2. CSS chung cho các item con --- */
.pnh-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

    .pnh-item-link:hover {
        text-decoration: none;
        color: inherit;
    }

.pnh-item-wrapper {
    height: 100%;
}

/* --- 3. CSS cho Mục Dữ liệu (Stats Card - ItemType: 0) --- */
.pnh-stats-card {
    border: none;
    border-radius: 0.5rem;
    /* Giảm bóng mờ mặc định */
    box-shadow: 0 2px 6px rgba(58, 59, 69, 0.1);
    /* Thêm box-shadow vào transition */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%;
    /* Mặc định màu viền trái */
    border-left: 0.25rem solid #4e73df !important;
    transition: transform 0.2s ease-in-out;
}

.pnh-item-link:hover .pnh-stats-card {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(58, 59, 69, 0.15);
}

.pnh-stats-card .pnh-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    /* Mặc định màu chữ tiêu đề */
    color: #4e73df !important;
}

.pnh-stats-card .pnh-stats-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #5a5c69;
}

.pnh-stats-card .pnh-stats-icon i {
    color: #dddfeb;
}


/* --- 4. CSS cho Mục Chức năng (Function Card - ItemType: 1) --- */
.pnh-function-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: #fff;
    height: 100% !important; /* Cần phải thêm !important để đảm bảo card mở rộng được chiều cao */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex !important;
    /*Dùng flexbox để căn chỉnh nội dung*/
    flex-direction: column !important;
}

.pnh-item-link:hover .pnh-function-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.pnh-function-card .card-body {
    display: flex;
    align-items: flex-start; /* Căn các item con theo chiều dọc */
    width: 100%;
    flex-grow: 1;
}

.pnh-function-card .pnh-icon-container {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    /* Màu nền và màu icon mặc định */
    background-color: #e0e7ff;
    color: #4f46e5;
}

/* Kiểu dáng cho icon container */
.pnh-icon-container.pnh-icon-rounded {
    border-radius: 0.35rem; /* bo góc */
}

.pnh-icon-container.pnh-icon-circle {
    border-radius: 50%; /* bo tròn */
}

.pnh-function-card .pnh-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #343a40;
}

.pnh-function-card .pnh-card-text {
    font-size: 0.9rem;
    color: #6c757d; 
}

/* --- 5. CSS cho mục không hoạt động (Inactive) --- */
.pnh-inactive-item {
    opacity: 0.65;
    filter: grayscale(80%);
    cursor: not-allowed;
}

/* Ngăn tràn chữ ra khỏi khung */
.pnh-function-card .pnh-function-content {
    flex-grow: 1; /* Cho phép khối này chiếm không gian còn lại */
    min-width: 0; /* Quan trọng: Cho phép khối co lại và xuống dòng chữ */
}
