/* Detail view */
/* Detail view > custom tabs */
.tabview {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tab-content {
    width: 100%;
}

.tabview .nav_list {
    width: 100%;
    margin-bottom: 10px;
}

.nav_list > .nav_item {
    background: transparent;
    width: auto;
    padding: 7px 11px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--light-gray);
}

.nav_list > .nav_item:is(:hover, :active) {
    border-color: var(--main-color-hover);
}

.nav_list > .nav_item.checked {
    color: var(--main-color);
    font-weight: bold;
    border-color: var(--main-color);
}

.nav_list > .nav_item .icon {
    display: none;
}

.media-body .container {
    padding-left: 0;
}

.media-body .tab-content {
    padding: 0px;
}

.tab {
    margin-top: 10px;
    width: 100%;
    order: 99;
}

.tab.toc div.row {
    margin: 0px;
}

.tab.toc div.row:not(.main) a.entry,
.tab.toc div.row:not(.main) a.pagenumber {
    font-weight: normal;
}

.tab.toc div.row:nth-child(2n + 1) {
    background-color: #e8e8e8;
}

.tab.toc a.entry {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.tab.toc .col-sm-10 {
    padding-left: 11px;
}

.tab.toc .col-sm-2 div.pagenumber {
    display: inline-block;
    text-align: right;
    width: 25px;
}

.tab.toc .col-sm-2 a.download {
    float: right;
}

/* Digitized Collections */
.thumbnail-list {
    max-height: 350px;
    max-width: 648px;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: var(--black);
}

.thumbnail-list.preview {
    background-color: inherit;
    width: fit-content;
}

.tabview.resultlist .thumbnail-list {
    max-height: 105px;
    max-width: 630px;
    overflow-y: hidden;
    position: relative;
}

#placeholderThumbnailPreview {
    color: var(--white);
    cursor: pointer;
    background-color: rgb(0 0 0 / 50%);
    font-size: 15px;
    height: 105px;
    padding-top: 38px;
    position: absolute;
    right: 0;
    text-align: center;
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.7);
    width: 63px;
}

.thumbnail-list.preview .timg {
    background-color: var(--black);
    width: 63px;
}

.thumbnail-list.preview .timg:first-child {
    background-color: inherit;
    width: 0px;
}

.timg {
    display: inline-block;
    vertical-align: top;
    min-height: 105px;
}

.thumbnail-image {
    width: 63px;
}

.thumbnail-image.lazy {
    height: 105px;
}

#preview {
    background-color: var(--black);
    color: white;
    display: none;
    position: absolute;
    z-index: 1001;
    -webkit-box-shadow: 0 0 23px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 23px 4px rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

#preview.loading {
    background: black url('../images/thumbwall_loading.gif') no-repeat scroll center center;
    height: 400px;
    width: 300px;
}

.thumb-pagenum-preview {
    display: none;
    text-align: center;
    width: 100%;
}

#preview .thumb-pagenum-preview {
    display: block;
}

.preview.loading {
    background: url('../images/thumbwall_loading.gif') no-repeat scroll 95% center;
}

/* Digitized Collections > Viewer Button  */
.viewer-btn {
    width: 100%;
    background-color: var(--white);
    border-radius: 4px;
    color: var(--main-color);
    font-size: 12px;
    font-weight: bold;
    border: 1px solid var(--light-gray);
    border-top: 0;
    padding: 4px;
    box-shadow: 0 -6px transparent, 0 6px transparent, -4px 0 4px -4px rgba(0, 0, 0, 0.25), 4px 0 4px -4px rgba(0, 0, 0, 0.25);
    text-align: start;
}

.viewer-btn.collapsed {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

:is(.viewer-btn, .viewer-buttons) a:not(:hover) {
    text-decoration: none;
}

.record-cover-link .fa-chevron-down {
    float: right;
    margin-top: 5px;
}

.record-cover-link .viewer-buttons {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.record-cover-link .viewer-buttons a {
    font-size: 12px;
    font-weight: bold;
    padding: 6px;
    text-align: start;
    width: 100%;
    display: inline-block;
}

.record-cover-link .viewer-buttons a:not(:last-child) {
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 4px;
}

.record-cover-link .viewer-buttons a:last-child {
    padding-top: 4px;
}

/* Zefys */
.vintageChart {
    width: 400px;
    height: 200px;
}

@media (max-width: 1199px) {
    /* Detail view */
    /* Detail view > custom tabs */
    .tabview.resultlist {
        display: none;
    }
}

@media (max-width: 767px) {
    /* Detail view */
    /* Detail view > custom tabs */
    .nav_list > .nav_item {
        width: 100%;
    }

    .nav_list > .nav_item .icon {
        display: inline-block;
        padding-left: 8px;
    }

    /* Zefys */
    .vintageChart {
        width: 200px;
        height: 100px;
    }
}
