/**/
.tab-ds-theloai {
    background-color: #f8f8ff;
    padding: 15px 20px 5px 20px;
    margin-top: 0;
}

.heading-text {
    font-weight: 700;
    color: #2c4e86;
    text-transform: uppercase;
    font-size: 18px;
    padding-top: 15px;
    text-align: center;
}

.heading-text a {
    color: inherit
}

/**/
#listbooks {
    margin-top: 10px;
    padding-left: 0;

}

#listbooks .li-list {
    display: block;
    margin-bottom: 1rem;
}

#listbooks .thumb:hover {
    cursor: pointer;
}

#listbooks .thumb {
    padding: 15px 10px;
    border: 1px solid #e7e7e7;
    background: #f8f8f8;
    border-radius: 5px 5px 5px 5px;
    overflow: hidden;
}

#listbooks .thumb .Titlelink {
    margin-bottom: 5px;
}

#listbooks .img-thumb a {
    display: flex;

}

#listbooks .img-thumb img {
    max-width: 100%;
}

.name-book {
    color: #767676;
    font-weight: 700;
}

.text-thumb .name-book {
    color: #333;
    font-size: 11pt;
}

.name-book,
.name-authors {
    font-size: 12px;
    display: block;
    display: -webkit-box;
    max-height: 45px;
    --webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}


/**/
.icon i {
    color: var(--primary);
}

/*gridview*/
#listbooks.gridview .li-list {
    margin-bottom: 0;
}

#listbooks.gridview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

#listbooks.gridview .thumb {
    height: 100%;
}

#listbooks.gridview .opac_next {
    grid-column: span 2;
    text-align: center;
}

@media(min-width: 768px) {
    #listbooks.gridview {
        grid-template-columns: repeat(3, 1fr);
    }

    #listbooks.gridview .opac_next {
        grid-column: span 3;
    }
}

@media(min-width: 991px) {
    #listbooks.gridview {
        grid-template-columns: repeat(5, 1fr);
    }

    #listbooks.gridview .opac_next {
        grid-column: span 5;
    }

}

#listbooks.gridview .Titlelink {
    max-height: 70px;
    overflow: hidden;
}

#listbooks.gridview .name-authors {
    display: block;
}

#listbooks.gridview .img-thumb,
.detailbtn {
    display: block;
}

#listbooks.gridview .img-thumb,
#listbooks.gridview .danhsach-theloai .img-thumb {
    box-shadow: 0 1px 5px 0 rgba(50, 50, 50, 0.67);
    border-radius: 3px;
    width: 125px;
    margin: 0 auto 15px auto;
    display: flex;
    overflow: hidden;
    height: 190px;
}

#listbooks.gridview .iconfile {
    padding-top: 10px;
    position: relative;
    margin: 0px auto;
    text-align: left;
    float: left;
    width: 80%;
}

/**/
#listbooks.listview .Titlelink {
    min-height: auto;
}

#listbooks.listview .detailbtn {
    display: none
}

#listbooks.listview .li-list {
    width: 100%;
    min-height: 0px
}

#listbooks.listview .img-thumb {
    display: none
}

#listbooks.listview .name-authors {
    display: none
}

#listbooks.listview .text-thumb {
    float: left;
    padding-left: 10px;
    width: 100%;
}

#listbooks.listview .name-publishyear {
    display: block;
}

#listbooks.listview .name-subject {
    display: block;
}

#listbooks.listview .name-abtract {
    display: block;
    word-wrap: break-word;
}

#listbooks.listview .name-numberofpage {
    display: block;
}

#listbooks.listview .name-description {
    display: block;
}

#listbooks.listview .iconfile {
    padding-top: 10px;
    position: relative;
    margin: 10px;
    text-align: left;
    float: left;
    width: 60%;
    margin-left: 10px !important;
}

/**/

#pnRecordGroups.nav-tabs {
    --bs-nav-tabs-link-active-color: #fff;
    --bs-nav-tabs-link-active-bg: var(--primary);
    --bs-nav-tabs-link-active-border-color: var(--primary);
    --bs-nav-link-color: var(--primary);
    width: 100%;
}

#pnRecordGroups.nav-tabs .nav-item {
    display: block;
    width: 100%;
}

/**/
.IconPanel a {
    margin-right: 5px;
}

/**/
.m-magazine-number {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.m-item {
    height: 100%;
}

/**/
#pnSearchHistory .pager {
    padding-left: 0;
}

#pnSearchHistory .pager li {
    display: inline-block;
    margin-right: 1rem;

}

#pnSearchHistory .pager li a {
    display: inline-block;
    color: var(--primary);
    font-weight: 400;
}

#pnSearchHistory .pager span {
    padding-right: 6px;
}

#pnSearchHistory .pager .next span {
    padding-left: 6px;
}

#pnSearchHistory .pager .next a[onclick=""] {
    opacity: 0.5;
    cursor: not-allowed;
}

/**/
#loaisach.nav {
    --bs-nav-tabs-link-active-color: var(--primary);
    --bs-nav-link-color: rgb(64, 64, 64);
    --bs-nav-link-hover-color: var(--primary);
}

.books-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    list-style: none;
}

.books-list .item-book {
    margin-bottom: 0;
}

.books-list .item-book img {
    max-width: 100%;
}

.books-list .item-book p {
    margin-bottom: 0;
}

.books-list .item-book .thumb {
    height: 100%;
    padding: 15px 10px;
    border: 1px solid #e7e7e7;
    background: #f8f8f8;
    border-radius: 5px 5px 5px 5px;
    overflow: hidden;
    display: flex ;
    flex-direction: column;
    justify-content: space-between;
}
.books-list .item-book .thumb .row {
    align-items: center;
}
@media(max-width:500px) {
    .books-list .item-book .thumb .col-6 {
        width: 100%;
    }
}

.books-list .item-book .img-thumb {
    box-shadow: 0 1px 5px 0 rgba(50, 50, 50, 0.67);
    border-radius: 3px;
    width: 125px;
    margin: 0 auto 15px auto;
    display: flex;
    overflow: hidden;
    height: 190px;
}

.books-list .item-book .iconfile {
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
    text-align: left;
}

.books-list .opac_next {
    text-align: center;
}

@media(min-width: 768px) {
    .books-list {
        grid-template-columns: repeat(3, 1fr);
    }


}

@media(min-width: 991px) {
    .books-list {
        grid-template-columns: repeat(4, 1fr);
    }


}

/***/
#tblSearch td {
    background-color: #efefef;
}

.row-active td {
    background-color: var(--primary) !important;
}